← all repositories
deepinsight/insightface

A face-recognition toolbox that topped NIST benchmarks

InsightFace bundles detection, recognition, alignment, and even face-swapping into one PyTorch/MXNet toolkit with a new cross-platform GUI.

28.9k stars Python Computer Vision
insightface
Velocity · 7d
+9.0
★ / day
Trend
steady
star history

What it does InsightFace is a comprehensive 2D and 3D face analysis toolbox. It covers face detection (RetinaFace, SCRFD), recognition (ArcFace, Partial FC), alignment, and even face swapping—available through Python packages, a C++ SDK called InspireFace, and now a cross-platform desktop GUI called InsightFace Evaluation Studio.

The interesting bit The project isn’t just academic baggage: its Partial FC approach took 1st place on the NIST-FRVT 1:1 VISA track in 2021, and the authors have kept shipping—recent additions include a lighter Python install (no C++ compiler needed by default) and a desktop app for local evaluation and face-swap trials.

Key highlights

  • Supports PyTorch 1.6+ and MXNet 1.6–1.8 with Python 3.x
  • Pretrained models available via Model-Zoo; training datasets include cleaned MS1M, VGG2, CASIA-Webface
  • Third-party re-implementations span TensorFlow, Caffe, TensorRT, ONNXRuntime, MNN, TNN, NCNN, and Go
  • Face detection includes RetinaFace (CVPR 2020) and SCRFD (ICLR 2022)
  • Code is MIT-licensed; trained models and data are restricted to non-commercial research

Caveats

  • The licensing split is genuinely messy: code is MIT, but models and training data are non-commercial research only, and commercial use of specific model series (inswapper, buffalo_l, InspireFace SDK) requires contacting separate email addresses
  • The README is heavy on news and light on current setup instructions; you’ll need to dig into subdirectories for actual usage

Verdict Worth a look if you’re building face-analysis pipelines and want battle-tested algorithms with pretrained weights. Skip it if you need a clean commercial license out of the box, or if you just want a simple face-detection wrapper—this is a research toolbox, not a drop-in API.

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