Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clcarwin/sphereface_pytorch
A PyTorch Implementation of SphereFace.
https://github.com/clcarwin/sphereface_pytorch
Last synced: 4 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-02-01T20:56:10.000Z (about 3 years ago)
- Last Synced: 2024-04-20T11:33:49.369Z (10 months ago)
- Language: Python
- Size: 20.6 MB
- Stars: 710
- Watchers: 20
- 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)