Coder Social home page Coder Social logo

lizhi-ntu / ockd-facepad Goto Github PK

View Code? Open in Web Editor NEW
22.0 2.0 2.0 18.56 MB

This repo provides PyTorch implementation of the paper One-Class Knowledge Distillation for Face Presentation Attack Detection to appear on IEEE Transactions on Information Forensics & Security (TIFS).

Python 100.00%

ockd-facepad's Introduction

🌼OCKD-FacePAD

This repo provides PyTorch implementation of the paper One-Class Knowledge Distillation for Face Presentation Attack Detection to appear on IEEE Transactions on Information Forensics & Security (TIFS).

πŸ€ Data Preparation

  1. Please request and download the datasets. You may use the following address:

    🌏 NTU ROSE-YOUTU

    🌏 CASIA FASD

    🌍 IDIAP REPLAY-ATTACK

    🌎 MSU MFSD

    🌍 OULU-NPU

  2. Please install dlib(19.24.0) and opencv(4.5.5) in your anaconda environment.

  3. Please download the pretrained shape predictor model from here.

  4. Please use preprocessing.py to get face images from videos. The prepocessed data for client-specific one-class domain adaptation setting are available here.

  5. Please find the data division of the challenging experimental setting here.

πŸ€ Teacher Network Training

πŸ‘€ Please use the example script train_teacher.py to train the Teacher Network.

πŸ€ Student Network Training

πŸ‘€ Please use the example script train_student.py to train the Student Network.

πŸ€ Model Evaluation

πŸ‘€ You may use the example script evaluation_student.py to evalute the pretrained model.

πŸ€ Others

πŸ‘€ Everything in this repo can NOT be used for commercial purpose.

πŸ‘€ If you have any questions, feel free to open an issue or contact me via email.

πŸ‘€ The implementation of sparse learning in our codes is based on library.

πŸ‘€ If you use this repo in your work, please use the following citation.

@ARTICLE{9782427, author={Li, Zhi and Cai, Rizhao and Li, Haoliang and Lam, Kwok-Yan and Hu, Yongjian and Kot, Alex C.}, journal={IEEE Transactions on Information Forensics and Security}, title={One-Class Knowledge Distillation for Face Presentation Attack Detection}, year={2022}, volume={}, number={}, pages={1-1}, doi={10.1109/TIFS.2022.3178240} }

ockd-facepad's People

Contributors

lizhi-ntu avatar

Stargazers

zhangwei avatar  avatar  avatar  avatar Johnny Ho avatar RΓ©mi NGUYEN avatar  avatar Pedro avatar  avatar Davor Jordacevic avatar Yman avatar Yufei Wang avatar chenghao avatar YANG SIYUAN avatar Parth Agarwal avatar Zhang Zongjie avatar 爱可可-ηˆ±η”Ÿζ΄» avatar  avatar Zitong Yu avatar  avatar  avatar CAI, Rizhao avatar

Watchers

Kostas Georgiou avatar  avatar

ockd-facepad's Issues

bad result

Hi,I am interested in your method but I found that the result can't catch up with paper. Is the checkpoint final version?

About Similarity Score

Hi, Can I ask a question? The higher similarity means the input have a high probability of real sense?
image

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.