Skip to content

UniFace

A lightweight, production-ready face analysis library built on ONNX Runtime

PyPI Python License Downloads

Get Started View on GitHub

Face Detection

ONNX-optimized RetinaFace, SCRFD, and YOLOv5-Face models with 5-point landmarks.

Face Recognition

AdaFace, ArcFace, MobileFace, and SphereFace embeddings for identity verification.

Landmarks

Accurate 106-point facial landmark localization for detailed face analysis.

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.

Anti-Spoofing

Face liveness detection with MiniFASNet to prevent fraud.

Privacy

Face anonymization with 5 blur methods for privacy protection.


Installation

pip install uniface
pip install uniface[gpu]
git clone https://github.com/yakhyo/uniface.git
cd uniface
pip install -e .

Next Steps

Quickstart

Get up and running in 5 minutes with common use cases.

Quickstart Guide →

Tutorials

Step-by-step examples for common workflows.

View Tutorials →

API Reference

Explore individual modules and their APIs.

Browse API →

Guides

Learn about the architecture and design principles.

Read Guides →


License

UniFace is released under the MIT License.