Code Monkey home page Code Monkey logo

multiface's Introduction

MultiFace_Pytorch


1. Intro

  • This repo is a implementation of MultiFace
  • Pretrained models are posted, include the MobileFacenet and IR-SE100 in the original paper

2. Pretrained Models & Performance

IR-SE100 @ GoogleDrive

Loss AgeDB-30(%) CFP-FP(%) calfw(%) cplfw(%)
Multi-Arcface(N=2) 98.20 98.30 96.02 93.17
Multi-Cosface(N=2) 98.20 98.40 96.07 93.06

Mobilefacenet @ GoogleDrive

Loss LFW(%) CFP-FP(%) AgeDB-30(%) calfw(%) cplfw(%)
Softmax 99.22 92.84 94.00 93.80 88.30
Multi-Softmax(N=4) 99.40 95.46 95.25 95.15 90.22
Loss LFW(%) CFP-FP(%) AgeDB-30(%) calfw(%) cplfw(%)
Arcface 99.45 92.27 96.03 95.12 87.75
Multi-Arcface(N=2) 99.52 93.41 96.35 95.28 88.65
Cosface 99.43 92.83 95.77 94.97 88.88
Multi-Cosface(N=2) 99.50 93.58 96.17 95.20 89.03
Multi-Cosface(N=4) 99.60 94.11 96.13 95.18 89.47

3. Training and Testing

3.1 Prepare training dataset

download the refined dataset: (emore recommended, our method is suitable for larger dataset )

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

3.2 Training:

'''
# mobilefacenet loss:softmax  num_sphere:2 
python train.py --num_sphere 2 --work_path [save log and model information]

# mobilefacenet loss:arcface  num_sphere:2 
python train.py --num_sphere 2 --arcface_loss --work_path [save log and model information]

# mobilefacenet loss:cosface  num_sphere:2 
python train.py --num_sphere 2 --am_softmax_loss --work_path [save log and model information]

# ir-se100 loss:arcface  num_sphere:2 
python train.py --num_sphere 2 --arcface_loss --net ir_se -depth 100 --work_path [save log and model information]

# ir-se100 loss:cosface  num_sphere:2 
python train.py --num_sphere 2 --am_softmax_loss --net ir_se -depth 100 --work_path [save log and model information]

3.3 Testing

Evaluating the model on LFW, Age-DB, CFP-FP, CALFW, CPLFW

#pretrained mobilefacenet
python train.py --pretrain --pretrained_model_path [mobilefacenet_pretrained_model_path]

#pretrained ir-se 100
python train.py --pretrain -net ir_se -depth 100 --work_path [resnet_pretrained_model_path]

To evaluate on Megaface, please refer to megaface-evaluation.

4. References

Contact

multiface's People

Contributors

kikimormay avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.