All Projects → chi0tzp → PyVGGFace

chi0tzp / PyVGGFace

Licence: MIT License
VGG-Face CNN descriptor in PyTorch.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to PyVGGFace

facematch
Facematch is a tool to verifies if two photos contain the same person.
Stars: ✭ 62 (+195.24%)
Mutual labels:  identity, face, face-recognition
Cnn Models
ImageNet pre-trained models with batch normalization for the Caffe framework
Stars: ✭ 355 (+1590.48%)
Mutual labels:  vgg, cnn-model
Pychubby
Automated face warping tool.
Stars: ✭ 240 (+1042.86%)
Mutual labels:  face, face-recognition
FaceNet-IOT
IOT implementation for FaceNet project by David Sandberg https://github.com/davidsandberg/facenet
Stars: ✭ 18 (-14.29%)
Mutual labels:  face, face-recognition
Lookatme
VideoView that plays video only when 👀 are open and 👦 is detected with various other features
Stars: ✭ 161 (+666.67%)
Mutual labels:  face, face-recognition
Dockerface
Face detection using deep learning.
Stars: ✭ 173 (+723.81%)
Mutual labels:  face, face-recognition
FaceIDLight
A lightweight face-recognition toolbox and pipeline based on tensorflow-lite
Stars: ✭ 17 (-19.05%)
Mutual labels:  face, face-recognition
Awesome Face
😎 face releated algorithm, dataset and paper
Stars: ✭ 739 (+3419.05%)
Mutual labels:  face, face-recognition
timeline
Timeline - A photo organizer
Stars: ✭ 39 (+85.71%)
Mutual labels:  face, 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 (+42.86%)
Mutual labels:  face, face-recognition
face-recognition
얼굴 인식에 대한 기술 동향 및 관련 모델 자료
Stars: ✭ 38 (+80.95%)
Mutual labels:  face, face-recognition
Face Recognition.js
Simple Node.js package for robust face detection and face recognition. JavaScript and TypeScript API.
Stars: ✭ 1,768 (+8319.05%)
Mutual labels:  face, face-recognition
Maad Face
A face database with a large number of high-quality attribute annotations
Stars: ✭ 112 (+433.33%)
Mutual labels:  face, face-recognition
Faceimagequality
Code and information for face image quality assessment with SER-FIQ
Stars: ✭ 223 (+961.9%)
Mutual labels:  face, face-recognition
Human Detection And Tracking
Human-detection-and-Tracking
Stars: ✭ 753 (+3485.71%)
Mutual labels:  face, face-recognition
Mask-Aware-Face-Recognition-SDK-iOS
Fast, Accurate, Mask-Aware Face Recognition SDK with Liveness Detection
Stars: ✭ 113 (+438.1%)
Mutual labels:  identity, face-recognition
Facecropper
✂️ Crop faces, inside of your image, with iOS 11 Vision api.
Stars: ✭ 479 (+2180.95%)
Mutual labels:  face, face-recognition
Mobileface
A face recognition solution on mobile device.
Stars: ✭ 669 (+3085.71%)
Mutual labels:  face, face-recognition
Look4Face
Demo of Face Recognition web service
Stars: ✭ 23 (+9.52%)
Mutual labels:  face, face-recognition
face
[deprecated] 👽 Face Recognition package for Laravel
Stars: ✭ 37 (+76.19%)
Mutual labels:  face, face-recognition

PyVGGFace

A VGG-Face CNN descriptor implemented in PyTorch.

The VGG-Face CNN descriptors are computed using [1] authors' CNN implementation, based on the VGG-Very-Deep-16 CNN architecture (see [1]), and are evaluated on the Labeled Faces in the Wild [2] and the YouTube Faces [3] datasets. The provided models can be used for non-commercial research purposes under Creative Commons Attribution License.

Step 0: Setup and activate a virtual environment (Python 3.3+), as follows:

$ python3 -m venv venv
$ source venv/bin/activate
$ pip install --upgrade pip
$ pip install -r requirements.txt
$ source venv/bin/activate

Step 1: Convert the original pre-trained LuaTorch weights into PyTorch VGGFace weights and save them at models/vggface.pth by running the following script:

$ python3 convert_weights.py 

After this step, models directory should be as follows:

models/
├── vggface.pth
├── vgg_face_torch
│   └── VGG_FACE.t7
└── vgg_face_torch.tar.gz

Step 2: Run demo script:

$ python3 demo.py 

By default, image data/rm.png is used (use a different image using --img=<image_file>) -- the output should be as follows:

Predicted id: Rooney_Mara (probability: 0.984787964730149)

Rooney Mara

Get VGGFace sub-model

Use the following script for getting a sub-model of VGGFace, e.g., only the convolutional sub-network, and/or rename its layers:

$ python3 get_submodel.py -h
usage: Get (sub)model of VGGFace model [-h] [--model MODEL] [--output OUTPUT]

optional arguments:
  -h, --help       show this help message and exit
  --model MODEL    input VGGFace model file
  --output OUTPUT  output VGGFace (sub)model file

References

[1] Parkhi, Omkar M., Andrea Vedaldi, and Andrew Zisserman. "Deep face recognition." BMVC. Vol. 1. No. 3. 2015.

[2] G. B. Huang, M. Ramesh, T. Berg, E. Learned-Miller Labeled faces in the wild: A database for studying face recognition in unconstrained environments. Technical Report 07-49, University of Massachusetts, Amherst, 2007.

[3] L. Wolf, T. Hassner, I. Maoz "Face Recognition in Unconstrained Videos with Matched Background Similarity." Computer Vision and Pattern Recognition (CVPR), 2011.

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