Face Detection
RetinaFace, SCRFD, and YOLO detectors with 5-point landmarks.
Face Recognition
AdaFace, ArcFace, EdgeFace, MobileFace, and SphereFace embeddings for identity verification.
Landmarks
Dense facial landmark localization — 106-point (2d106det) and 98 / 68-point (PIPNet) variants.
Attributes
Age, gender, race (FairFace), and emotion detection from faces.
Face Parsing
BiSeNet semantic segmentation with 19 facial component classes.
Gaze Estimation
Real-time gaze direction prediction with MobileGaze models.
Head Pose
3D head orientation (pitch, yaw, roll) estimation with 6D rotation models.
Tracking
Multi-object tracking with BYTETracker for persistent face IDs across video frames.
Anti-Spoofing
Face liveness detection with MiniFASNet to prevent fraud.
Privacy
Face anonymization with 5 blur methods for privacy protection.
Vector Indexing
FAISS-backed embedding store for fast multi-identity face search.
Installation
UniFace uses portable model runtimes for consistent inference across macOS, Linux, and Windows. Most core components run through ONNX Runtime, while optional components may use PyTorch where appropriate.
CPU / Apple Silicon
GPU (NVIDIA CUDA)
From Source
git clone https://github.com/yakhyo/uniface.git
cd uniface
pip install -e ".[cpu]" # or .[gpu] for CUDA
Next Steps
License
UniFace is released under the MIT License.