Official Implementation
for the paper Fast and Interpretable Face Identification for Out-Of-Distribution Data Using Vision Transformers (WACV 2023) by Hai Phan, Cindy Le, Vu Le, Yihui He, and Anh Nguyen.
If you use this software, please consider citing:
@article{hai2023facevit,
title={Fast and Interpretable Face Identification for Out-Of-Distribution Data Using Vision Transformers},
author={Hai Phan, Cindy Le, Vu Le, Yihui He, Anh Nguyen},
journal={arXiv preprint arXiv:2311.02803},
year={2023}
}
Python >= 3.5
Pytorch > 1.0
Opencv >= 3.4.4
pip install tqmd
pip install mxnet
pip install wandb
Download LFW, out-of-distribution (OOD) LFW test sets: Google Drive
Download CASIA for training: Here
Download pretrained models:
Download arranged pairs: Google Drive
Create the following folders:
mkdir results
mkdir pretrained
Then put pretrained models to results
folder and pretrained
for testing and training, respectively.
Training:
Revise directory in train.py
and config.py
with your own directory. Then, run
python train.py
Testing:
Revise directory in test.py
with your own directory. Then, run
python test.py
MIT