All Projects → cydonia999 → Vggface2 Pytorch

cydonia999 / Vggface2 Pytorch

Licence: mit
PyTorch Face Recognizer based on 'VGGFace2: A dataset for recognising faces across pose and age'

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Vggface2 Pytorch

realtime-facereccpp
Real time face recognition with tracking (mtcnn detection, kcf tracker, arcface loss)
Stars: ✭ 32 (-88.19%)
Mutual labels:  face-recognition, face-detection
compreface-javascript-sdk
JavaScript SDK for CompreFace - free and open-source face recognition system from Exadel
Stars: ✭ 19 (-92.99%)
Mutual labels:  face-recognition, face-detection
AISecurityCamera
A simple Security Camera example which detects motion and perform face recognition
Stars: ✭ 27 (-90.04%)
Mutual labels:  face-recognition, face-detection
lite.ai.toolkit
🛠 A lite C++ toolkit of awesome AI models with ONNXRuntime, NCNN, MNN and TNN. YOLOX, YOLOP, MODNet, YOLOR, NanoDet, YOLOX, SCRFD, YOLOX . MNN, NCNN, TNN, ONNXRuntime, CPU/GPU.
Stars: ✭ 1,354 (+399.63%)
Mutual labels:  face-recognition, face-detection
Get Me Through
A Free, Offline, Real-Time, Open-source web-app to assist organisers of any event in allowing only authorised/invited people using Face-Recognition Technology or QR Code.
Stars: ✭ 255 (-5.9%)
Mutual labels:  face-detection, face-recognition
zed face
zedboard上基于FPGA+ARM的人脸识别智能监控系统。关键词:linux,zedboard,arm,fpga,人脸检测,人脸识别。
Stars: ✭ 38 (-85.98%)
Mutual labels:  face-recognition, face-detection
FaceRecognition With FaceNet Android
Face Recognition using the FaceNet model and MLKit on Android.
Stars: ✭ 113 (-58.3%)
Mutual labels:  face-recognition, face-detection
Face-X
Demonstration of different algorithms and operations on faces. Join the Discord channel for discussion.
Stars: ✭ 226 (-16.61%)
Mutual labels:  face-recognition, face-detection
PyRecognizer
"A neural network to rule them all, a neural network to find them, a neural network to bring them all and verify if is you !!" (Face recognition tool)
Stars: ✭ 28 (-89.67%)
Mutual labels:  face-recognition, face-detection
iqiyi-vid-challenge
Code for IQIYI-VID(IQIYI Video Person Identification) Challenge Implemented in Python and MXNet
Stars: ✭ 45 (-83.39%)
Mutual labels:  face-recognition, face-detection
facenet-darknet-inference
Face recognition using facenet
Stars: ✭ 29 (-89.3%)
Mutual labels:  face-recognition, face-detection
clockon-clockoff-face-recognition
Face Recognize application. Using FaceNet and CoreML
Stars: ✭ 21 (-92.25%)
Mutual labels:  face-recognition, face-detection
pigallery
PiGallery: AI-powered Self-hosted Secure Multi-user Image Gallery and Detailed Image analysis using Machine Learning, EXIF Parsing and Geo Tagging
Stars: ✭ 35 (-87.08%)
Mutual labels:  face-recognition, face-detection
Contactless-Attendance-System
✨ A Contactless Attendance System where your face is identified for Attendance.
Stars: ✭ 20 (-92.62%)
Mutual labels:  face-recognition, face-detection
shunyaface
Fast Face Recognition on the edge
Stars: ✭ 49 (-81.92%)
Mutual labels:  face-recognition, face-detection
Facial-Recognition-Attendance-System
An attendance system which uses facial recognition to detect which people are present in any image.
Stars: ✭ 48 (-82.29%)
Mutual labels:  face-recognition, face-detection
Look4Face
Demo of Face Recognition web service
Stars: ✭ 23 (-91.51%)
Mutual labels:  face-recognition, face-detection
face-swap
换脸程序
Stars: ✭ 32 (-88.19%)
Mutual labels:  face-recognition, face-detection
retinaface
RetinaFace: Deep Face Detection Library for Python
Stars: ✭ 242 (-10.7%)
Mutual labels:  face-recognition, face-detection
Multi-Face-Comparison
This repo is meant for backend API for face comparision and computer vision. It is built on python flask framework
Stars: ✭ 20 (-92.62%)
Mutual labels:  face-recognition, face-detection

PyTorch Face Recognizer based on 'VGGFace2: A dataset for recognising faces across pose and age'.

This repo implements training and testing models, and feature extractor based on models for VGGFace2 [1].

Pretrained models for PyTorch are converted from Caffe models authors of [1] provide.

Dataset

To download VGGFace2 dataset, see authors' site.

Preprocessing images

Faces should be detected and cropped from images before face images are fed to this face recognizer(demo.py).

There are several face detection programs based on MTCNN [3].

Pretrained models

The followings are PyTorch models converted from Caffe models authors of [1] provide.

arch_type download link
resnet50_ft link
senet50_ft link
resnet50_scratch link
senet50_scratch link

Extracting features

Usage:

python demo.py extract <options>

Options

  • --arch_type network architecture type (default: resnet50_ft):
    • resnet50_ft ResNet-50 which are first pre-trained on MS1M, and then fine-tuned on VGGFace2
    • senet50_ft SE-ResNet-50 trained like resnet50_ft
    • resnet50_scratch ResNet-50 trained from scratch on VGGFace2
    • senet50_scratch SE-ResNet-50 trained like resnet50_scratch
  • --weight_file weight file converted from Caffe model(see here)
  • --resume checkpoint file used in feature extraction (default: None). If set, --weight_file is ignored.
  • --dataset_dir dataset directory
  • --feature_dir directory where extracted features are saved
  • --test_img_list_file image file for which features are extracted
  • --log_file log file
  • --meta_file Meta information file for VGGFace2, identity_meta.csv in Meta.tar.gz
  • --batch_size batch size (default: 32)
  • --gpu GPU devide id (default: 0)
  • --workers number of data loading workers (default: 4)
  • --horizontal_flip horizontally flip images specified in --test_img_list_file

Testing

Usage:

python demo.py test <options>

Options

  • --arch_type network architecture type (default: resnet50_ft):
    • resnet50_ft ResNet-50 which are first pre-trained on MS1M, and then fine-tuned on VGGFace2
    • senet50_ft SE-ResNet-50 trained like resnet50_ft
    • resnet50_scratch ResNet-50 trained from scratch on VGGFace2
    • senet50_scratch SE-ResNet-50 trained like resnet50_scratch
  • --weight_file weight file converted from Caffe model(see here)
  • --resume checkpoint file used in test (default: None). If set, --weight_file is ignored.
  • --dataset_dir dataset directory
  • --test_img_list_file text file containing image files used for validation, test or feature extraction
  • --log_file log file
  • --meta_file Meta information file for VGGFace2, identity_meta.csv in Meta.tar.gz
  • --batch_size batch size (default: 32)
  • --gpu GPU devide id (default: 0)
  • --workers number of data loading workers (default: 4)

Training

Usage:

python demo.py train <options>

Options

  • --arch_type network architecture type (default: resnet50_ft):
    • resnet50_ft ResNet-50 which are first pre-trained on MS1M, and then fine-tuned on VGGFace2
    • senet50_ft SE-ResNet-50 trained like resnet50_ft
    • resnet50_scratch ResNet-50 trained from scratch on VGGFace2
    • senet50_scratch SE-ResNet-50 trained like resnet50_scratch
  • --weight_file weight file converted from Caffe model(see here), and used for fine-tuning
  • --resume checkpoint file used to resume training (default: None). If set, --weight_file is ignored.
  • --dataset_dir dataset directory
  • --train_img_list_file text file containing image files used for training
  • --test_img_list_file text file containing image files used for validation, test or feature extraction
  • --log_file log file
  • --meta_file Meta information file for VGGFace2, identity_meta.csv in Meta.tar.gz
  • --checkpoint_dir checkpoint output directory
  • --config number of settings and hyperparameters used in training
  • --batch_size batch size (default: 32)
  • --gpu GPU devide id (default: 0)
  • --workers number of data loading workers (default: 4)

Note

VGG-Face dataset, described in [2], is not planned to be supported in this repo. If you are interested in models for VGG-Face, see keras-vggface.

References

  1. ZQ. Cao, L. Shen, W. Xie, O. M. Parkhi, A. Zisserman, VGGFace2: A dataset for recognising faces across pose and age, 2018.
    site, arXiv

  2. Parkhi, O. M. and Vedaldi, A. and Zisserman, A., Deep Face Recognition, British Machine Vision Conference, 2015. site

  3. K. Zhang and Z. Zhang and Z. Li and Y. Qiao, Joint Face Detection and Alignment Using Multitask Cascaded Convolutional Networks, IEEE Signal Processing Letters, 2016. arXiv

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