Giter Club home page Giter Club logo

fas-sgtd's Introduction

FAS-SGTD


Introduction

Main codes of CVPR2020 paper "Deep Spatial Gradient and Temporal Depth Learning for Face Anti-spoofing"

Prerequisite

  • Python 3.6 (numpy, skimage, scipy)

  • TensorFlow >= 1.4

  • opencv2

  • Pillow (PIL)

  • easydict

Train

You can use PRNet to generate the virtual depth maps.

For single-frame stage:

cd fas_sgtd_single_frame && bash train.sh

For multi-frame stage:

cd fas_sgtd_multi_frame && bash train.sh

Test

We provide an example for Protocol 1 of OULU-NPU. You can download the models at BaiduDrive(pwd: luik) and put them into fas_sgtd_multi_frame/model_save/.

cd fas_sgtd_multi_frame && bash test.sh

License

Code: under MIT license.

It is just for research purpose, and commercial use is not allowed

Citation

If you use this code, please consider citing:

@inproceedings{wang2020deep,
    title={Deep Spatial Gradient and Temporal Depth Learning for Face Anti-spoofing},
    author={Wang, Zezheng and Yu, Zitong and Zhao, Chenxu and Zhu, Xiangyu and Qin, Yunxiao and Zhou, Qiusheng and Zhou, Feng and Lei, Zhen},
    booktitle= {CVPR},
    year = {2020}
}

@inproceedings{yu2020searching,
    title={Searching Central Difference Convolutional Networks for Face Anti-Spoofing},
    author={Yu, Zitong and Zhao, Chenxu and Wang, Zezheng and Qin, Yunxiao and Su, Zhuo and Li, Xiaobai and Zhou, Feng and Zhao, Guoying},
    booktitle= {CVPR},
    year = {2020}
}

@inproceedings{qin2019learning,
    title={Learning Meta Model for Zero-and Few-shot Face Anti-spoofing},
    author={Qin, Yunxiao and Zhao, Chenxu and Zhu, Xiangyu and Wang, Zezheng and Yu, Zitong and Fu, Tianyu and Zhou, Feng and Shi, Jingping and Lei, Zhen},
    booktitle= {AAAI},
    year = {2020}
}

fas-sgtd's People

Contributors

clks-wzz avatar

Watchers

 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.