Giter Site home page Giter Site logo

thuanbvv / eccv20-stdn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yaojieliu/eccv20-stdn

0.0 0.0 0.0 24.79 MB

Source code for ECCV 2020 paper: On Disentangling Spoof Trace for Generic Face Anti-Spoofing

Home Page: http://cvlab.cse.msu.edu/project-face-anti.html

License: Other

Python 98.35% Shell 1.65%

eccv20-stdn's Introduction

On Disentangling Spoof Traces for Generic Face Anti-Spoofing

Yaojie Liu, Joel Stehouwer, Xiaoming Liu

[Paper] [Project]

alt text

Setup

Tested on Python 3.6 & Tensorflow 1.13.0. As it uses the contrib package, the code should work with Tensorflow >1.8.0 and <1.13.0. The code should be easy to transfer to keras package.

Training

First create a folder "./log/". To run the training code:

python train.py

The face-anti-spoofing databases (e.g. SiW-M, SiW, and Oulu-NPU) have to be applied separately. We provide the train/test split we used for SiW-M protocol I. We provide some data samples to illustrate the data format and structure requirement in "./data/" folder. The video should pre-processed into frames of cropped face, saved in one folder under either "live/" or "spoof/". The landmark (68) should be provided in the "XXX.npy" file.

Testing

To run the testing code:

python test.py

It saves the scores in "./log/XXX/test/score.txt" file.

Acknowledge

If you find this code useful, please cite the paper:

@inproceedings{eccv20yaojie,
    title={On Disentangling Spoof Traces for Generic Face Anti-Spoofing},
    author={Yaojie Liu, Joel Stehouwer, Xiaoming Liu},
    booktitle={In Proceeding of European Conference on Computer Vision (ECCV 2020)},
    address={Virtual},
    year={2020}
}

If you have any question, please contact: Yaojie Liu

eccv20-stdn's People

Contributors

yaojieliu avatar t1t0n 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.