Skip to content

This is an unofficial implementation of "On Disentangling Spoof Traces for Generic Face Anti-Spoofing" in PyTorch

License

Notifications You must be signed in to change notification settings

gazeai/STDN-PyTorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STDN-PyTorch

This is an unofficial implementation of "On Disentangling Spoof Traces for Generic Face Anti-Spoofing" in PyTorch

[Paper] [Official Implementation in TensorFlow]

Requirements

  • python 3.6+
  • PyTorch 1.6.0
  • easydict
  • TensorFlow 2+

Data Preparation

Configurations

To change your configurations, open config.py and for setting up data paths, change in flags.data_config. You can change other parameters too based on your need.

How to train?

Once data preparation is done, and data path is created, run the following code:

python train.py

All your checkpoints will be saved under the directory ckpts. However, you can change the path from config.py. the file names will be in the following format:

model_epoch-number_val-accuracy_val-apcer_val-bpcer.pth

How to test?

Still in progress.

Help taken from

  1. On Disentangling Spoof Traces for Generic Face Anti-Spoofing [1].
  2. [Official Implementation in TensorFlow(https://github.com/yaojieliu/ECCV20-STDN)]

Citations

[1] Yaojie Liu, Joel Stehouwer, Xiaoming Liu.

About

This is an unofficial implementation of "On Disentangling Spoof Traces for Generic Face Anti-Spoofing" in PyTorch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages