angyee / facenet-light

Lighter version of FaceNet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Faster, lighter Facenet for face recognition using PyTorch

The goal is to create a small, fast and highly compatible face recognition model for wide range of devices. Based on original paper "FaceNet: A Unified Embedding for Face Recognition and Clustering", this is a heavily modified model with triplet loss training and reduced number of levels. The final recognition rates are comparable to the original numbers (+- 2%) but the resulting model is faster and smaller.

Made for deployment

As of 2019.05 the OpenCV can load Pytorch models but the support for certain layers is limited. Therefore this model is using only layers which are supported by ONNX and OpenCV DNN.

Conversion

The export.py script is there to convert the trained model into the opencv-compatible onnx format.

References

About

Lighter version of FaceNet


Languages

Language:Python 74.1%Language:Jupyter Notebook 25.9%