GithubHelp home page GithubHelp logo

rshaojimmy / maddog Goto Github PK

View Code? Open in Web Editor NEW
82.0 3.0 14.0 25.06 MB

[CVPR 2019] Pytorch codes for Multi-adversarial Discriminative Deep Domain Generalization for Face Presentation Attack Detection

Python 100.00%
adversarial-learning domain-generalization face-antispoofing

maddog's Introduction

CVPR2019-MADDoG

Pytorch codes for Multi-adversarial Discriminative Deep Domain Generalization for Face Presentation Attack Detection in CVPR 2019

The framework of the proposed method:

Setup

  • Prerequisites: Python 3.6, pytorch 0.4.0, Numpy, TensorboardX, Pillow, SciPy, h5py

  • The source code folders:

    1. "models": Contains the network architectures and the definitions of the loss functions.
    2. "core": Contains the pratraining, training and testing files. Note that we generate score for each frame during the testing.
    3. "datasets": Contains datasets loading
    4. "misc": Contains initialization and some preprocessing functions

Training

To run the main file: python main.py --training_type Train

Testing

To run the main file: python main.py --training_type Test

It will generate a .h5 file that contains the score for each frame. Then, we use these scores to calculate the AUC and HTER.

Acknowledge

Please kindly cite this paper in your publications if it helps your research:

@InProceedings{Shao_2019_CVPR,
author = {Shao, Rui and Lan, Xiangyuan and Li, Jiawei and Yuen, Pong C.},
title = {Multi-Adversarial Discriminative Deep Domain Generalization for Face Presentation Attack Detection},
booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2019}
}

Contact: [email protected]

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.