Face Detector
Collection
4 items β’ Updated

| Model | Architecture | Target Use Case | mAP50β95 | AP50 | Latency |
|---|---|---|---|---|---|
FaceDetector Large closed |
SCRFD-10G |
Maximum precision, rare & hard cases (extreme angles, occlusions, distant/tiny faces) | 78.2% | 92.7% | 3.64 ms |
| FaceDetector Medium | SCRFD-1G |
High-precision box localization, recognition cropping & everyday complex scenes | 72.6% | 91.5% | 2.45 ms |
| FaceDetector Small | YuNet-N |
Real-time video streams, mobile apps & multi-stream tracking | 62.2% | 90.1% | 1.35 ms |
| FaceDetector Tiny | YuNet-S |
CPU-only inference, low-power edge devices & close-range tasks | 56.4% | 87.6% | 1.11 ms |
pip install insightface onnxruntime opencv-python huggingface_hub
import cv2
from huggingface_hub import snapshot_download
from insightface.model_zoo import get_model
model_dir = snapshot_download("metrika-labs/FaceDetector-medium")
detector = get_model(f"{model_dir}/model.onnx")
detector.prepare(ctx_id=0, input_size=(640, 640))
bboxes, _ = detector.detect(cv2.imread("image.jpg"))
The face detection model family includes three models based on the SCRFD and YuNet architectures, trained by Metrika Labs on 160K images from the Google Open Images dataset with our own carefully prepared annotations. The models combine high speed and accuracy, making them suitable for real-time applications, including mobile and edge devices. Available in ONNX (OpenCV), TFLite, and libfacedetection (C++) formats.
Models are released under the Apache 2.0 license.