Skip to content

Pytorch code for paper "Learning Generalized Spoof Cues for Face Anti spoofing"

Notifications You must be signed in to change notification settings

aoru45/Learning-Generalized-Spoof-Cues-for-Face-Anti-spoofing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learning Generalized Spoof Cues for Face Anti spoofing

This is an unofficial code for the paper "Learning Generalized Spoof Cues for Face Anti spoofing" in pytorch.

I train the model using our own dataset. The classification accuracy is good but the visualization is not as good as the paper states.

Install

pip install torch torchvision tqdm albumentations

Usage

First, make a dir containing positive and negative folder and place the corresponding image in the folder.

Second, configure data path in dataset.py .

Then run training

python train.py

For visualization,

python demo.py

The visualization effect is as shown in the figure:

viz

It will print the classification score at the same time.

Contributing

PRs accepted.

License

MIT © Aoru xue

About

Pytorch code for paper "Learning Generalized Spoof Cues for Face Anti spoofing"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages