All Projects → YunYang1994 → SphereFace

YunYang1994 / SphereFace

Licence: MIT license
🍑 TensorFlow Code for CVPR 2017 paper "SphereFace: Deep Hypersphere Embedding for Face Recognition"

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to SphereFace

Sphereface
Implementation for <SphereFace: Deep Hypersphere Embedding for Face Recognition> in CVPR'17.
Stars: ✭ 1,483 (+1248.18%)
Mutual labels:  face-recognition, cvpr-2017
FaceLivenessDetection-SDK
3D Passive Face Liveness Detection (Anti-Spoofing) & Deepfake detection. A single image is needed to compute liveness score. 99,67% accuracy on our dataset and perfect scores on multiple public datasets (NUAA, CASIA FASD, MSU...).
Stars: ✭ 85 (-22.73%)
Mutual labels:  face-recognition
GenderRecognizer
Plain Face Detector & Gender Recognizer
Stars: ✭ 57 (-48.18%)
Mutual labels:  face-recognition
face-rec-tools
Media library face recognition tools
Stars: ✭ 14 (-87.27%)
Mutual labels:  face-recognition
SphereFace-TensorFlow
A TensorFlow implementation for SphereFace!The code can be trained on LFW.
Stars: ✭ 17 (-84.55%)
Mutual labels:  face-recognition
loss function search
Loss Function Search for Face Recognition
Stars: ✭ 35 (-68.18%)
Mutual labels:  face-recognition
PLSC
Paddle Large Scale Classification Tools,supports ArcFace, CosFace, PartialFC, Data Parallel + Model Parallel. Model includes ResNet, ViT, DeiT, FaceViT.
Stars: ✭ 113 (+2.73%)
Mutual labels:  face-recognition
aio-rek
Face recognition based attendance system
Stars: ✭ 19 (-82.73%)
Mutual labels:  face-recognition
introduction-to-machine-learning
A document covering machine learning basics. 🤖📊
Stars: ✭ 17 (-84.55%)
Mutual labels:  loss-functions
Facial-Recognition-Using-FaceNet-Siamese-One-Shot-Learning
Implementation of Facial Recognition System Using Facenet based on One Shot Learning Using Siamese Networks
Stars: ✭ 104 (-5.45%)
Mutual labels:  face-recognition
ailia-models
The collection of pre-trained, state-of-the-art AI models for ailia SDK
Stars: ✭ 1,102 (+901.82%)
Mutual labels:  face-recognition
InsightFace
复现 ArcFace 论文
Stars: ✭ 22 (-80%)
Mutual labels:  face-recognition
ClassifierToolbox
A MATLAB toolbox for classifier: Version 1.0.7
Stars: ✭ 72 (-34.55%)
Mutual labels:  face-recognition
SmooFaceEngine
A high-performance demo for face recognition based on DL. (基于深度学习的高性能人脸识别引擎demo)
Stars: ✭ 101 (-8.18%)
Mutual labels:  face-recognition
webFaceID
Use HTML5, Go and Facebox to implement face verification on a website
Stars: ✭ 60 (-45.45%)
Mutual labels:  face-recognition
Face-Recognition-Attendance-System
A simple python script that recognises faces and mark attendance for the recognised faces in an excel sheet.
Stars: ✭ 57 (-48.18%)
Mutual labels:  face-recognition
Face recognition based attendance system
A python GUI integrated attendance system using face recognition to take attendance.
Stars: ✭ 70 (-36.36%)
Mutual labels:  face-recognition
timeline
Timeline - A photo organizer
Stars: ✭ 39 (-64.55%)
Mutual labels:  face-recognition
Nearest-Celebrity-Face
Tensorflow Implementation of FaceNet: A Unified Embedding for Face Recognition and Clustering to find the celebrity whose face matches the closest to yours.
Stars: ✭ 30 (-72.73%)
Mutual labels:  face-recognition
InsightFace-REST
InsightFace REST API for easy deployment of face recognition services with TensorRT in Docker.
Stars: ✭ 308 (+180%)
Mutual labels:  face-recognition

Build Status license

Author YunYang1994
E-mail [email protected]

SphereFace

This is a quick implementation for Deep Hypersphere Embedding for Face Recognition(CVPR 2017).This paper proposed the angular softmax loss that enables convolutional neural networks(CNNs) to learn angularly discriminative features. The main content I replicated contains:

  • 1. mathematical comparison among original softmax, modified softmax and angular softmax;
  • 2. show the accuracy and loss comparison of different softmax in the experiment;
  • 3. 2D and 3D visualization of embeddings learned with different softmax loss on MNIST dataset;
  • 4. I replicated SphereFace-20 model with tensorflow.and here is code and graph.

CNN-network

many current CNNS can viewed as convolution feature learning guided by softmax loss on top. however, softmax is easy to to optimize but does not explicitly encourage large margin between different classes.

on this situation, the author proposed a new loss function that always encourages an angular decision margin between different classes.

softmax loss

softmax formula test acc(MNIST)
original softmax weibo-logo 0.9775
modified softmax weibo-logo 0.9847
angular softmax weibo-logo 0.9896

A toy example on MNIST dataset, CNN features can be visualized by setting the output dimension as 2 or 3, as shown in following figures.

2D visualization

original softmax modified softmax angular softmax
weibo-logo weibo-logo weibo-logo

3D visualization

original softmax modified softmax angular softmax
weibo-logo weibo-logo weibo-logo

loss and accuracy

training loss training accuracy
weibo-logo weibo-logo
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].