All Projects → BobLiu20 → FaceRecognition_PyTorch

BobLiu20 / FaceRecognition_PyTorch

Licence: other
Implement Face Recognition Code in PyTorch. Such as SphereFace with A-Softmax.

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to FaceRecognition PyTorch

SphereFace-TensorFlow
A TensorFlow implementation for SphereFace!The code can be trained on LFW.
Stars: ✭ 17 (-41.38%)
Mutual labels:  face-recognition, sphereface
awesome-face-recognition
this repo include paper review, code in face recognition
Stars: ✭ 16 (-44.83%)
Mutual labels:  face-recognition, sphereface
Sphereface
Implementation for <SphereFace: Deep Hypersphere Embedding for Face Recognition> in CVPR'17.
Stars: ✭ 1,483 (+5013.79%)
Mutual labels:  face-recognition, sphereface
Instant-Face-Unlock
Xposed Module's InstantFaceUnlock Code
Stars: ✭ 23 (-20.69%)
Mutual labels:  face-recognition
Face-Recognition-Raspberry-Pi-64-bits
Recognize 2000+ faces on your Raspberry Pi 4 with database auto-fill and anti-spoofing
Stars: ✭ 48 (+65.52%)
Mutual labels:  face-recognition
FaceNet-IOT
IOT implementation for FaceNet project by David Sandberg https://github.com/davidsandberg/facenet
Stars: ✭ 18 (-37.93%)
Mutual labels:  face-recognition
ViewFaceCore
C# 超简单的离线人脸识别库。( 基于 SeetaFace6 )
Stars: ✭ 345 (+1089.66%)
Mutual labels:  face-recognition
Deepstream Project
This is a highly separated deployment project based on Deepstream , including the full range of Yolo and continuously expanding deployment projects such as Ocr.
Stars: ✭ 120 (+313.79%)
Mutual labels:  face-recognition
facenet-pytorch-glint360k
A PyTorch implementation of the 'FaceNet' paper for training a facial recognition model with Triplet Loss using the glint360k dataset. A pre-trained model using Triplet Loss is available for download.
Stars: ✭ 186 (+541.38%)
Mutual labels:  face-recognition
FaceIDLight
A lightweight face-recognition toolbox and pipeline based on tensorflow-lite
Stars: ✭ 17 (-41.38%)
Mutual labels:  face-recognition
Face-Liveness-Detection-SDK-iOS
Robust, Realtime, On-Device Face Liveness Detection (Face Anti Spoofing) For iOS
Stars: ✭ 48 (+65.52%)
Mutual labels:  face-recognition
Detect-Facial-Features
Code example demonstrating how to detect eyes, nose, lips, and jaw with dlib, OpenCV, and Python
Stars: ✭ 42 (+44.83%)
Mutual labels:  face-recognition
face-search
A demonstration of face database search implemented in python
Stars: ✭ 36 (+24.14%)
Mutual labels:  face-recognition
DeepFaceRecognition
Face Recognition with Transfer Learning
Stars: ✭ 16 (-44.83%)
Mutual labels:  face-recognition
FaceRecog
Realtime Facial recognition system using Siamese neural network
Stars: ✭ 47 (+62.07%)
Mutual labels:  face-recognition
Face-Recognition
A Java application for Face Recognition under expressions, occlusions and pose variations.
Stars: ✭ 55 (+89.66%)
Mutual labels:  face-recognition
L Softmax TensorFlow
No description or website provided.
Stars: ✭ 29 (+0%)
Mutual labels:  face-recognition
Face-Recognition-Attendance-System
Face Detection | Recognition | Attendance
Stars: ✭ 289 (+896.55%)
Mutual labels:  face-recognition
Mask-Aware-Face-Recognition-SDK-iOS
Fast, Accurate, Mask-Aware Face Recognition SDK with Liveness Detection
Stars: ✭ 113 (+289.66%)
Mutual labels:  face-recognition
deep utils
An open-source toolkit which is full of handy functions, including the most used models and utilities for deep-learning practitioners!
Stars: ✭ 73 (+151.72%)
Mutual labels:  face-recognition

Face Recognition

Models

  1. SphereFace with A-Softmax
    • Review paper: link

Environment

  • PyTorch 0.3.1
  • Python 2.7.13
  • Option1: TensorboardX (Use for visualization)

Training

In this project, there are two different parallel method have been implemented.

  1. Data Parallel
    A good choice for this way when your class number is less than 300000(Maybe?).
    Start training with this cmd:

    python training.py --input_paths=/your/data/path/10000_caffe_format.lst --working_root=/your/path/sphereface_pytorch --max_epoch=100 --img_size=112 --feature_dim=512 --label_num=10000 --process_num=15 --learning_rate=0.1 --model=SphereFaceNet --model_params='{"lamb_iter":0,"lamb_base":1000,"lamb_gamma":0.0001,"lamb_power":1,"lamb_min":10, "layer_type": "20layer"}' --try=0 --gpu_device=0,1,2,3 --batch_size=128 --parallel_mode='DataParallel'
    
  2. Model Parallel
    We can not fit full model into one GPU when class number is huge in last margin fc layer.
    So? The model parallel is a good idea!!!
    Start training with this cmd:

    python training.py --input_paths=/your/data/path/1000000_caffe_format.lst --working_root=/your/path/sphereface_pytorch --max_epoch=100 --img_size=112 --feature_dim=512 --label_num=1000000 --process_num=15 --learning_rate=0.1 --model=SphereFaceNet --model_params='{"lamb_iter":0,"lamb_base":1000,"lamb_gamma":0.00001,"lamb_power":1,"lamb_min":10, "layer_type": "20layer"}' --try=0 --gpu_device=0,1,2,3 --batch_size=128 --parallel_mode='ModelParallel'
    

Testing & Benchmark

TODO

References

Pytorch
sphereface
sphereface

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].