Improving the Transferability of Adversarial Attacks on Face Recognition with Diverse Parameters Augmentation
This is the PyTorch implementation of our paper:
[Paper] Improving the Transferability of Adversarial Attacks on Face Recognition with Diverse Parameters Augmentation
Fengfan Zhou, Bangjie Yin, Hefei Ling, Qianyu Zhou, Wenxuan Wang.
The IEEE / CVF Computer Vision and Pattern Recognition Conference (CVPR), 2025
-
Ubuntu, CUDA>=11.7
-
Python>=3.8.12 We recommend you to use Anaconda to create a conda environment:
conda create -n dpa python=3.8.12
Then, activate the environment:
conda activate dpa
-
PyTorch>=2.0.1, torchvision>=0.15.2 (following instructions here
For example, if your CUDA version is 11.7, you could install pytorch and torchvision as following:
pip install torch==2.0.1 torchvision==0.15.2
-
Other requirements
opencv-python~=4.6.0.66
rich~=13.3.1
You can use the following command:
CUDA_VISIBLE_DEVICES=[gpu id] python dpo.py --dataset_path=[path of the dataset]Run the following command to craft the adversarial examples:
CUDA_VISIBLE_DEVICES=2 python hma.py --attacker_img_path=[your attacker image path] --victim_img_path=[your victim image path]This project is based on the following open-source projects. We thank their authors for making the source code publically available.
If you find DPA useful in your research, please consider citing:
@inproceedings{zhou2025improving,
title={Improving the Transferability of Adversarial Attacks on Face Recognition with Diverse Parameters Augmentation},
author={Zhou, Fengfan and Yin, Bangjie and Ling, Hefei and Zhou, Qianyu and Wang, Wenxuan},
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
year={2025}
}