Skip to content
A PyTorch Implementation of SphereFace.
Python
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data add lfw evalucation and pre-trained model Oct 24, 2017
images add myphi to replace phi in paper Sep 29, 2017
model add lfw evalucation and pre-trained model Oct 24, 2017
.gitignore add lfw evalucation and pre-trained model Oct 24, 2017
LICENSE Initial commit Sep 27, 2017
README.md add lfw evalucation and pre-trained model Oct 24, 2017
dataset.py init commit Sep 27, 2017
lfw_eval.py add lfw evalucation and pre-trained model Oct 24, 2017
matlab_cp2tform.py
net_sphere.py add myphi to replace phi in paper Sep 29, 2017
train.py add lfw evalucation and pre-trained model Oct 24, 2017

README.md

SphereFace

A PyTorch Implementation of SphereFace. The code can be trained on CASIA-Webface and the best accuracy on LFW is 99.22%.

SphereFace: Deep Hypersphere Embedding for Face Recognition

Train

python train.py

Test

# lfw.tgz to lfw.zip
tar zxf lfw.tgz; cd lfw; zip -r ../lfw.zip *; cd ..

# lfw evaluation
python lfw_eval.py --model model/sphere20a_20171020.pth

Pre-trained models

Model name LFW accuracy Training dataset
20171020 0.9922 CASIA-WebFace

φ

equation

equation

phi

References

sphereface

You can’t perform that action at this time.