All Projects → cvtower → Seesawfacenet_pytorch

cvtower / Seesawfacenet_pytorch

Licence: mit
offical seesawfacenet pytorch implement, https://arxiv.org/abs/1908.09124

Projects that are alternatives of or similar to Seesawfacenet pytorch

Organic
Code repo for optimizing distributions of molecules.
Stars: ✭ 99 (-1%)
Mutual labels:  jupyter-notebook
Junosautomation
To contain example scripts for different tools.
Stars: ✭ 99 (-1%)
Mutual labels:  jupyter-notebook
Dopamine
Dopamine is a research framework for fast prototyping of reinforcement learning algorithms.
Stars: ✭ 9,681 (+9581%)
Mutual labels:  jupyter-notebook
Pyspark Predictive Maintenance
Predictive Maintenance using Pyspark
Stars: ✭ 99 (-1%)
Mutual labels:  jupyter-notebook
Deeplearning
Python implementation of Deep Learning book
Stars: ✭ 99 (-1%)
Mutual labels:  jupyter-notebook
Advisor
Open-source implementation of Google Vizier for hyper parameters tuning
Stars: ✭ 1,359 (+1259%)
Mutual labels:  jupyter-notebook
Math of machine learning
This is the code for "Mathematcs of Machine Learning" by Siraj Raval on Youtube
Stars: ✭ 99 (-1%)
Mutual labels:  jupyter-notebook
Bottom Up Attention.pytorch
An PyTorch reimplementation of bottom-up-attention models
Stars: ✭ 100 (+0%)
Mutual labels:  jupyter-notebook
Bayarea Dl Summerschool
Torch notebooks and slides for the Bay Area Deep Learning Summer School
Stars: ✭ 99 (-1%)
Mutual labels:  jupyter-notebook
Recommenders
Best Practices on Recommendation Systems
Stars: ✭ 11,818 (+11718%)
Mutual labels:  jupyter-notebook
Btctrading
Time Series Forecast with Bitcoin value, to detect upward/down trends with Machine Learning Algorithms
Stars: ✭ 99 (-1%)
Mutual labels:  jupyter-notebook
Noisy labels
TRAINING DEEP NEURAL-NETWORKS USING A NOISE ADAPTATION LAYER
Stars: ✭ 99 (-1%)
Mutual labels:  jupyter-notebook
Neural Tangents
Fast and Easy Infinite Neural Networks in Python
Stars: ✭ 1,357 (+1257%)
Mutual labels:  jupyter-notebook
Mv3d tf
Tensorflow implementation of Multi-View 3D Object Detection Network (in progress)
Stars: ✭ 99 (-1%)
Mutual labels:  jupyter-notebook
Fortran magic
An extension for IPython/Jupyter that helps to use Fortran in your interactive session.
Stars: ✭ 99 (-1%)
Mutual labels:  jupyter-notebook
Delf enhanced
Wrapper of DELF Tensorflow Model
Stars: ✭ 98 (-2%)
Mutual labels:  jupyter-notebook
Quant at
Python version of Dr. Ernie Chan's Matlab code and some inspired from Robert Carver's, plus some raw data downloaders
Stars: ✭ 99 (-1%)
Mutual labels:  jupyter-notebook
Machinelearning
Machine learning and artificial intelligence
Stars: ✭ 99 (-1%)
Mutual labels:  jupyter-notebook
Synaptic Flow
Stars: ✭ 100 (+0%)
Mutual labels:  jupyter-notebook
Hands On Machine Learning
A series of Jupyter notebooks with Chinese comment that walk you through the fundamentals of Machine Learning and Deep Learning in python using Scikit-Learn and TensorFlow.
Stars: ✭ 1,363 (+1263%)
Mutual labels:  jupyter-notebook

offical pytorch implement of seesawfacenet


1. Intro

  • This repo is a reimplementation of seesawfacenet(paper)
  • For models, including the pytorch implementation of the backbone modules of Arcface/MobileFacenet/seesawfacenet(including seesaw_shareFaceNet,seesaw_shuffleFaceNet, DW_seesawFaceNetv1, DW_seesawFaceNetv2)
  • We build build this repo based on the work of @TreB1eN(https://github.com/TreB1eN/InsightFace_Pytorch), and fixed few bugs before usage.
  • Pretrained models are posted, include the MobileFacenet in the original paper

2. Pretrained Models & training logs & Performance

seesawfacenet @ googledrive seesawfacenet @ baidudisk extraction code:exiy Image text Image text

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 (MS1MV2(face_emore, refined MS1M...whatever we call it) For training refer to the original paper)

download the MS1MV2 dataset:

Note: If you use MS1MV2 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:

    1. download the desired weights to model folder:
  • 2 to take a picture, run

    python take_pic.py -n name
    

    press q to take a picture, it will only capture 1 highest possibility face if more than 1 person appear in the camera

  • 3 or you can put any preexisting photo into the facebank directory, the file structure is as following:

- 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

previous work on mtcnn for android platform and face cropping

3.4 Training:

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

# python train.py -net mobilefacenet -b 256 -w 24
​```

4. References

PS

Citation

Please cite our papers in your publications if it helps your research:

@misc{zhang2019seesawnet, title={Seesaw-Net: Convolution Neural Network With Uneven Group Convolution}, author={Jintao Zhang}, year={2019}, eprint={1905.03672}, archivePrefix={arXiv}, primaryClass={cs.CV} }

@misc{zhang2019seesawfacenets, title={SeesawFaceNets: sparse and robust face verification model for mobile platform}, author={Jintao Zhang}, year={2019}, eprint={1908.09124}, archivePrefix={arXiv}, primaryClass={cs.CV} }

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