← all repositories
serengil/retinaface

The InsightFace detector, repackaged to drop mxnet

It repackages the RetinaFace detector into a PyPI-friendly Python library that finds faces and landmarks, sparing you the original mxnet dependency.

2k stars Python Computer Vision
retinaface
Not currently ranked — collecting fresh signals.
star history

What it does

RetinaFace finds faces in photos and returns bounding boxes, confidence scores, and five landmarks per face: both eyes, nose, and the corners of the mouth. It can also extract aligned face chips, which the authors claim boosts downstream recognition accuracy by roughly one percent. The library stops there; for a full recognition pipeline the authors nudge you toward their separate deepface package.

The interesting bit

This repo is mostly plumbing. The original InsightFace detector ran on mxnet; a later TensorFlow re-implementation by Stanislas Bertrand made it more approachable, and this project strips that down further into a PyPI-friendly package. The model architecture and pre-trained weights are identical to Bertrand’s version, so you get the same detections without the upstream ceremony.

Key highlights

  • Returns bounding boxes plus five facial landmarks with confidence scores.
  • Can extract and align face chips for downstream recognition tasks.
  • Repackages Bertrand’s TensorFlow implementation into a simplified, PyPI-friendly form.
  • Explicitly scoped as a detection module; authors recommend deepface for end-to-end face verification.
  • MIT licensed.

Caveats

  • The detection function expects an exact file path; the README does not mention support for in-memory images or buffers.
  • Because the code is simplified and the weights are borrowed unchanged, anyone needing the full InsightFace toolchain should probably go upstream.

Verdict

Grab this if you need a quick, PyPI-friendly face detector that throws in landmarks and alignment without forcing you to wrangle mxnet. Skip it if you are looking for original research, batch-inference APIs, or a complete recognition stack in one box.

Frequently asked

What is serengil/retinaface?
It repackages the RetinaFace detector into a PyPI-friendly Python library that finds faces and landmarks, sparing you the original mxnet dependency.
Is retinaface open source?
Yes — serengil/retinaface is open source, released under the MIT license.
What language is retinaface written in?
serengil/retinaface is primarily written in Python.
How popular is retinaface?
serengil/retinaface has 2k stars on GitHub.
Where can I find retinaface?
serengil/retinaface is on GitHub at https://github.com/serengil/retinaface.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.