Skip to content

Joyako/SphereFace-pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SphereFace in Pytorch

An implementation of SphereFace:Deep Hypersphere Embedding for Face Recognition. This project use MNIST as train data, which include network SphereFace4, SphereFace20 etc. and take shortcut connection implementation.

Install & Run:

1.Download

git clone [email protected]:Joyako/SphereFace-pytorch.git
  1. Execution
python train.py

Result

Angular softmax loss feature map in MNIST.
Train:
train features
Test:
test features

Formula

1.The original softmax loss is defined as:
Original Softmax Loss

2.The L-Softmax loss is defined as:
L-Softmax Loss

3.Modified softmax loss(Normalization: ||w|| = 1, bais = 0):
Modified softmax loss

4.A-Softmax loss:
A-Softmax loss

Network

SphereFace20 network framework: network

About

Implement SphereFace in Pytorch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published