-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.cmd
44 lines (30 loc) · 1.32 KB
/
run.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@ECHO OFF
ECHO this file contains demo cmdline examples for your references, DO NOT run it directly
EXIT /B
:imagenet
REM clean
python run_adv_patch.py -M resnet50 -D imagenet
REM attack
python run_adv_patch.py -M resnet50 -D imagenet --ap
python run_adv_patch.py -M resnet50 -D imagenet --ap --ap_pgd
python run_adv_patch.py -M resnet50 -D imagenet --ip
python run_adv_patch.py -M resnet50 -D imagenet --ip --ip_idx 1
REM defense
python run_adv_patch.py -M resnet50 -D imagenet --ap --sac
python run_adv_patch.py -M resnet50 -D imagenet --ap --mae
python run_adv_patch.py -M resnet50 -D imagenet --ap --sac --mae
python run_adv_patch.py -M resnet50 -D imagenet --ap --sac --sac_complete --mae
python run_adv_patch.py -M resnet50 -D imagenet --ip --ip_idx 1 --sac --sac_complete --mae
REM run few batches
python run_adv_patch.py -M resnet50 -D imagenet -L 8 --ap --sac --sac_complete --mae
REM visualize single image
python run_adv_patch.py -M resnet50 -D imagenet --idx 1 --ap --sac --sac_complete --mae --show --show_adv
:cifar10
REM clean
python run_adv_patch.py -M resnet50 -D cifar10
REM attack
python run_adv_patch.py -M resnet50 -D cifar10 --ap
REM defense
python run_adv_patch.py -M resnet50 -D cifar10 --ap --mae
REM visualize single image
python run_adv_patch.py -M resnet50 -D cifar10 --idx 1 --ap --mae --show --show_adv