scrfd_500m_bn: a small face detector trained on Open Images
A 0.6M-parameter, 0.5 GFLOP SCRFD-style face detector (MobileNetV1 backbone, BatchNorm everywhere, per-stride heads, no keypoints). It was trained from scratch on the CC BY licensed face images of Open Images V7. No InsightFace weights were used for initialisation and no WIDER FACE data was used for training.
Code: https://github.com/jeandudey/pytorch-scrfd (scrfd-train, scrfd-quantize,
scrfd-package, scrfd-webcam, scrfd-bom).
Files
| File | What |
|---|---|
scrfd_500m_bn.pth | float weights (PyTorch state dict, 2.5 MB) |
scrfd_500m_bn-fp32.onnx | float ONNX, fixed 640x640 input |
scrfd_500m_bn-int8.onnx | int8 QDQ ONNX (per-channel), 0.94 MB |
bom.cdx.json, bom.spdx3.json | CycloneDX 1.6 ML-BOM and SPDX 3.0.1 provenance |
ATTRIBUTION.train.csv, ATTRIBUTION.val.csv | author, title and license of every image used |
LICENSE | Apache-2.0 (weights) |
SHA256SUMS | checksums of all files |
Results
WIDER FACE validation, average precision at IoU 0.5, single scale (image letterboxed to 640):
| Model | Easy | Medium | Hard |
|---|---|---|---|
| this model, float | 89.22 | 84.32 | 52.34 |
| this model, int8 | 89.11 | 84.21 | 52.03 |
| SCRFD-0.5GF as published (WIDER FACE training) | 90.57 | 88.12 | 68.51 |
Open Images validation (1,000 images), AP@0.5: 0.8484.
The published figures may use a different evaluation protocol (for example multi-scale), so the comparison is indicative. WIDER FACE was used for evaluation only.
Training
- Data: 327,588 CC BY Open Images V7 train images with "Human face" boxes (1,001,442 faces, no group boxes); 1,000 validation images.
- Recipe: SGD, momentum 0.9, weight decay 5e-4, batch 16, 10 epochs, lr 0.01 for 5 epochs,
0.001 for 3, 0.0001 for 2; ATSS assignment, quality focal loss, DIoU loss; random square crop
biased to large crops (
--crop-bias 2), flip, photometric distortion; 640x640 inputs. - Hardware: one AMD GPU with ROCm. About 12 hours of training.
- Int8: ONNX Runtime static quantization, percentile calibration on 256 Open Images training images.
Limitations
- Open Images does not label every small face, so the model recalls tiny and crowded faces worse than a WIDER FACE trained model: the Hard score is 16 points below the published one.
- Faces only, no landmarks.
- Not evaluated for demographic fairness. Face detection can fail unevenly across skin tones, ages, poses and lighting; test on your own population before relying on it.
- Fixed 640x640 input in the ONNX files.
Licensing and attribution
The weights are released under Apache-2.0 (LICENSE). The training images are all CC BY
2.0 and belong to their authors; the images are not redistributed here, and ATTRIBUTION.*.csv
credits the author of each image with its title and license. The BOMs record the same
provenance in machine-readable form. This is not legal advice.