https://github.com/clcarwin/sphereface_pytorch
A PyTorch Implementation of SphereFace.
https://github.com/clcarwin/sphereface_pytorch
Last synced: 3 months ago
JSON representation
A PyTorch Implementation of SphereFace.
- Host: GitHub
- URL: https://github.com/clcarwin/sphereface_pytorch
- Owner: clcarwin
- License: mit
- Created: 2017-09-27T03:53:12.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-02-01T20:56:10.000Z (over 3 years ago)
- Last Synced: 2024-11-04T18:44:54.313Z (8 months ago)
- Language: Python
- Size: 20.6 MB
- Stars: 715
- Watchers: 19
- Forks: 172
- Open Issues: 33
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://arxiv.org/abs/1704.08063)
# 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](model/sphere20a_20171020.7z) | 0.9922 | CASIA-WebFace |# φ
=1-\frac{x^2}{2!}+\frac{x^4}{4!}-\frac{x^6}{6!}+\frac{x^8}{8!}-\frac{x^9}{9!})

# References
[sphereface](https://github.com/wy1iu/sphereface)