ArcFace in PyTorch, for the MXNET-weary
A PyTorch reimplementation of the InsightFace face-recognition stack so you can skip MXNET.

What it does This repo ports the ArcFace/InsightFace face-recognition pipeline to PyTorch 0.4.1. It bundles the backbone architectures—IR-SE50 and MobileFacenet—with pretrained weights that hit competitive accuracy on standard benchmarks like LFW and CFP-FP. You can enroll identities by dropping images into folders, average their embeddings, and run verification against a live camera or video feed.
The interesting bit The author includes a converter that turns the original MXNET record files into plain image folders, which lowers the barrier if you are migrating from the reference implementation. It is essentially a compatibility layer with batteries included.
Key highlights
- Pretrained IR-SE50 and MobileFacenet models posted to BaiduNetDisk and OneDrive
- Benchmarked on seven standard face-recognition datasets (LFW, CFP-FF, CFP-FP, AgeDB-30, calfw, cplfw, vgg2_fp)
- Supports facebank-style enrollment: drop images into folders and the model averages embeddings per identity
- Camera and video inference modes included
- Training code provided for both backbones
Caveats
- Locked to PyTorch 0.4.1, which is several major releases behind current stable versions
- The README’s clone command accidentally points to a different MTCNN repository, suggesting the docs have some copy-paste drift
- Author notes they lack compute to train the deeper 100-layer and 151-layer variants
Verdict Useful for researchers or hobbyists who want a working PyTorch face-recognition baseline without wrestling with MXNET. Skip it if you need modern PyTorch features or the latest large-scale backbones.
Frequently asked
- What is TreB1eN/InsightFace_Pytorch?
- A PyTorch reimplementation of the InsightFace face-recognition stack so you can skip MXNET.
- Is InsightFace_Pytorch open source?
- Yes — TreB1eN/InsightFace_Pytorch is open source, released under the MIT license.
- What language is InsightFace_Pytorch written in?
- TreB1eN/InsightFace_Pytorch is primarily written in Jupyter Notebook.
- How popular is InsightFace_Pytorch?
- TreB1eN/InsightFace_Pytorch has 1.9k stars on GitHub.
- Where can I find InsightFace_Pytorch?
- TreB1eN/InsightFace_Pytorch is on GitHub at https://github.com/TreB1eN/InsightFace_Pytorch.