Skip to content

Source-Free Domain Adaptation with Contrastive Domain Alignment and Self-supervised Exploration for Face Anti-Spoofing, ECCV2022

License

Notifications You must be signed in to change notification settings

YuchenLiu98/ECCV2022-SDA-FAS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ECCV2022-SDA-FAS

The implementation of "Source-Free Domain Adaptation with Contrastive Domain Alignment and Self-supervised Exploration for Face Anti-Spoofing", ECCV2022.

The motivation of our proposed SDA-FAS:

The framework of our proposed SDA-FAS:

Congifuration Environment

  • Python 3.7
  • Pytorch 1.7.0
  • torchvision 0.8.1
  • timm 0.3.2

Data Preparation

Dataset

Download the OULU-NPU, CASIA-FASD, Idiap Replay-Attack, MSU-MFSD, and CelebA-Spoof datasets.

Data Pre-processing.

MTCNN is used for face detection and alignment. All the cropped faces are resized as (256,256,3).

Data Organization

└── Data_Dir
   ├── OULU_NPU
   ├── CASIA_MFSD
   ├── REPLAY_ATTACK
   ├── MSU_MFSD
   ├── CelebA-Spoof
   └── ...

Training

Move to the folder $root/SDA-FAS/experiment/testing_scenarios/ and run:

python train_SDAFAS.py

Testing

Move to the folder $root/SDA-FAS/experiment/testing_scenarios/ and run:

python test_SDAFAS.py

Trained Models

Scenarios HTER(%) AUC(%) Trained models
O&C&I to M 5.00 96.60 model
O&M&I to C 2.40 99.42 model
O&C&M to I 2.25 99.64 model
I&C&M to O 5.07 99.00 model

Access code for Baidu is sdaf

Citation

Please cite our paper if the code is helpful to your research.

@inproceedings{liu2022source,
    author = {Liu, Yuchen and Chen, Yabo and Dai, Wenrui and Gou, Mengran and Huang, Chun-Ting and Xiong, Hongkai},
    title = {Source-Free Domain Adaptation with Contrastive Domain Alignment and Self-supervised Exploration for Face Anti-Spoofing},
    booktitle = {ECCV},
    year = {2022}
}

About

Source-Free Domain Adaptation with Contrastive Domain Alignment and Self-supervised Exploration for Face Anti-Spoofing, ECCV2022

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages