cd /news/computer-vision/best-free-production-grade-model-for… · home topics computer-vision article
[ARTICLE · art-123099] src=discuss.huggingface.co ↗ pub= topic=computer-vision verified=true sentiment=↑ positive

Best free/production-grade model for simple face-detection (yes/no + confidence) in a Python microservice?

In a benchmark of face-detection models for a Python microservice, YuNet outperformed RetinaFace and MTCNN, achieving 97.67% accuracy, 95.45% precision, 100% recall, and a 97.67% F1 score at a 0.8 confidence threshold, with only 1 false positive across 43 images. YuNet averaged 11.6 ms per image on CPU, making it roughly 15× faster than MTCNN (175 ms) and 90× faster than RetinaFace (1051 ms). The user noted the dataset is small and plans further testing on larger, more diverse data.

read1 min views3 publishedSep 8, 2026

Thanks for the recommendation! I followed your suggestion and benchmarked YuNet against RetinaFace and MTCNN on my dataset.

The results were quite interesting. YuNet performed the best overall for my use case. At a confidence threshold of 0.8, YuNet achieved 97.67% accuracy, 95.45% precision, 100% recall, and a 97.67% F1 score, with only 1 false positive out of 43 images.

I also measured inference time on CPU. YuNet averaged around 11.6 ms per image, compared with about 175 ms for MTCNN and approximately 1051 ms for RetinaFace. So YuNet was roughly 15× faster than MTCNN and 90× faster than RetinaFace in my testing.

I also tested different confidence thresholds. Interestingly, 0.8 gave the best balance for my current dataset, while 0.9 eliminated the false positive but started missing actual faces. This also reinforced your point that the confidence score shouldn’t automatically be interpreted as a calibrated probability.

The dataset is still small (43 images), so I don’t consider these production-level accuracy numbers yet. My next step is to test YuNet on a much larger and more diverse dataset and determine the final threshold based on the acceptable false-positive/false-negative tradeoff.

Thanks again — your suggestion to start with YuNet was very helpful!

── more in #computer-vision 4 stories · sorted by recency
── more on @yunet 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/best-free-production…] indexed:0 read:1min 2026-09-08 ·