Go to file
朱瑞 91baeb0f58 first commit 2024-07-04 17:09:13 +08:00
clean_resized_images first commit 2024-07-04 17:09:13 +08:00
torch_nets first commit 2024-07-04 17:09:13 +08:00
Normalize.py first commit 2024-07-04 17:09:13 +08:00
README.md first commit 2024-07-04 17:09:13 +08:00
attack.py first commit 2024-07-04 17:09:13 +08:00
dataset.py first commit 2024-07-04 17:09:13 +08:00
evaluate.py first commit 2024-07-04 17:09:13 +08:00
evaluate_cnn.py first commit 2024-07-04 17:09:13 +08:00
methods.py first commit 2024-07-04 17:09:13 +08:00
model.py first commit 2024-07-04 17:09:13 +08:00
run_evaluate.sh first commit 2024-07-04 17:09:13 +08:00
utils.py first commit 2024-07-04 17:09:13 +08:00

README.md

Requirements

  • Python 3.6.13
  • Pytorch 1.7.1
  • Torchvision 0.8.2
  • Numpy 1.19.2
  • Pillow 8.3.1
  • Timm 0.4.12
  • Scipy 1.5.4

生成对抗样本

python attack.py --attack ADG --batch_size 1 --model_name vit_base_patch16_224

评估成功率

bash run_evaluate.sh model_vit_base_patch16_224-method python evaluate_cnn.py