All Projects → TreB1eN → Insightface_pytorch

TreB1eN / Insightface_pytorch

Licence: mit
Pytorch0.4.1 codes for InsightFace

Projects that are alternatives of or similar to Insightface pytorch

Fraud detection techniques
Stars: ✭ 60 (-94.59%)
Mutual labels:  jupyter-notebook
Instapy Research
📄 Research repository for InstaPy
Stars: ✭ 60 (-94.59%)
Mutual labels:  jupyter-notebook
Rl Cc
Web-based Reinforcement Learning Control Center
Stars: ✭ 60 (-94.59%)
Mutual labels:  jupyter-notebook
Pyeis
PyEIS: A Python-based Electrochemical Impedance Spectroscopy simulator and analyzer
Stars: ✭ 60 (-94.59%)
Mutual labels:  jupyter-notebook
Ml Dl Projects
Personal projects using machine learning and deep learning techniques
Stars: ✭ 60 (-94.59%)
Mutual labels:  jupyter-notebook
Useful Python
Python code and notebooks for reference
Stars: ✭ 60 (-94.59%)
Mutual labels:  jupyter-notebook
Memory Efficient Maml
Memory efficient MAML using gradient checkpointing
Stars: ✭ 60 (-94.59%)
Mutual labels:  jupyter-notebook
Python4scientificcomputing fundamentals
This repository includes the guidelines and the exercise files of the first part of my lectures on python for scientific programming which is dedicated to a general introduction to Python programming language. These lectures are a part of the "Energy and Environmental Technologies for Building Systems" course offered for M.Sc in Energy Eng. at Politecnico di Milano.
Stars: ✭ 60 (-94.59%)
Mutual labels:  jupyter-notebook
Pycon Ua 2018
Talk at PyCon UA 2018 (Kharkov, Ukraine)
Stars: ✭ 60 (-94.59%)
Mutual labels:  jupyter-notebook
Bayesian Linear Regression
A python tutorial for a Bayesian treatment of Linear Regression: https://zjost.github.io/bayesian-linear-regression/
Stars: ✭ 60 (-94.59%)
Mutual labels:  jupyter-notebook
Pose Guided Image Generation
Implementation of NIPS 2017 paper "Pose Guided Person Image Generation" in PyTorch. https://arxiv.org/abs/1705.09368
Stars: ✭ 60 (-94.59%)
Mutual labels:  jupyter-notebook
Data scientist nanodegree
Stars: ✭ 59 (-94.68%)
Mutual labels:  jupyter-notebook
Embedded gcnn
Embedded Graph Convolutional Neural Networks (EGCNN) in TensorFlow
Stars: ✭ 60 (-94.59%)
Mutual labels:  jupyter-notebook
Pytorchintro
An Absolute Beginners Guide to Machine Learning with PyTorch
Stars: ✭ 60 (-94.59%)
Mutual labels:  jupyter-notebook
Data Science Cookbook
🎓 Jupyter notebooks from UFC data science course
Stars: ✭ 60 (-94.59%)
Mutual labels:  jupyter-notebook
Multimodal Short Video Dataset And Baseline Classification Model
500,000 multimodal short video data and baseline models. 50万条多模态短视频数据集和基线模型(TensorFlow2.0)。
Stars: ✭ 60 (-94.59%)
Mutual labels:  jupyter-notebook
Cats Dogs Cortex Redux
Kaggle Cats & Dogs Redux with Cortex and Resnet50
Stars: ✭ 60 (-94.59%)
Mutual labels:  jupyter-notebook
Silverhand
Micheal Gardner的数据科学笔记
Stars: ✭ 60 (-94.59%)
Mutual labels:  jupyter-notebook
Rpi Docker Tensorflow
Docker container for the Raspberry Pi containing Tensorflow and Jupyter
Stars: ✭ 60 (-94.59%)
Mutual labels:  jupyter-notebook
Vehicle Detection And Tracking
Udacity Self-Driving Car Engineer Nanodegree. Project: Vehicle Detection and Tracking
Stars: ✭ 60 (-94.59%)
Mutual labels:  jupyter-notebook

InsightFace_Pytorch

Pytorch0.4.1 codes for InsightFace


1. Intro

  • This repo is a reimplementation of Arcface(paper), or Insightface(github)
  • For models, including the pytorch implementation of the backbone modules of Arcface and MobileFacenet
  • Codes for transform MXNET data records in Insightface(github) to Image Datafolders are provided
  • Pretrained models are posted, include the MobileFacenet and IR-SE50 in the original paper

2. Pretrained Models & Performance

IR-SE50 @ BaiduNetdisk, IR-SE50 @ Onedrive

LFW(%) CFP-FF(%) CFP-FP(%) AgeDB-30(%) calfw(%) cplfw(%) vgg2_fp(%)
0.9952 0.9962 0.9504 0.9622 0.9557 0.9107 0.9386

Mobilefacenet @ BaiduNetDisk, Mobilefacenet @ OneDrive

LFW(%) CFP-FF(%) CFP-FP(%) AgeDB-30(%) calfw(%) cplfw(%) vgg2_fp(%)
0.9918 0.9891 0.8986 0.9347 0.9402 0.866 0.9100

3. How to use

  • clone

    git clone https://github.com/TropComplique/mtcnn-pytorch.git
    

3.1 Data Preparation

3.1.1 Prepare Facebank (For testing over camera or video)

Provide the face images your want to detect in the data/face_bank folder, and guarantee it have a structure like following:

data/facebank/
        ---> id1/
            ---> id1_1.jpg
        ---> id2/
            ---> id2_1.jpg
        ---> id3/
            ---> id3_1.jpg
           ---> id3_2.jpg

3.1.2 download the pretrained model to work_space/model

If more than 1 image appears in one folder, an average embedding will be calculated

3.2.3 Prepare Dataset ( For training)

download the refined dataset: (emore recommended)

Note: If you use the refined MS1M dataset and the cropped VGG2 dataset, please cite the original papers.

  • after unzip the files to 'data' path, run :

    python prepare_data.py
    

    after the execution, you should find following structure:

faces_emore/
            ---> agedb_30
            ---> calfw
            ---> cfp_ff
            --->  cfp_fp
            ---> cfp_fp
            ---> cplfw
            --->imgs
            ---> lfw
            ---> vgg2_fp

3.2 detect over camera:

- facebank/
         name1/
             photo1.jpg
             photo2.jpg
             ...
         name2/
             photo1.jpg
             photo2.jpg
             ...
         .....
    if more than 1 image appears in the directory, average embedding will be calculated
  • 4 to start

    python face_verify.py 
    

3.3 detect over video:

​```
python infer_on_video.py -f [video file name] -s [save file name]
​```

the video file should be inside the data/face_bank folder

3.4 Training:

​```
python train.py -b [batch_size] -lr [learning rate] -e [epochs]

# python train.py -net mobilefacenet -b 200 -w 4
​```

4. References

PS

  • PRs are welcome, in case that I don't have the resource to train some large models like the 100 and 151 layers model
  • Email : [email protected]
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].