-
Notifications
You must be signed in to change notification settings - Fork 2
/
scripts.sh
99 lines (83 loc) · 3.14 KB
/
scripts.sh
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
export CUDA_VISIBLE_DEVICES=0
for attack in cw-li; do
for eps in 0.{1..9..2}; do
python craft_adv_examples.py -d derm -a $attack -b 100 -e $eps -c 100
done
done
for attack in cw-li; do
for eps in 0.{1..9..2}; do
python craft_adv_examples.py -d cxr -a $attack -b 100 -e $eps -c 100
done
done
CUDA_VISIBLE_DEVICES=0 python craft_adv_examples.py -d derm -a cw-li -b 64 -e 1 -c 100
CUDA_VISIBLE_DEVICES=0 python craft_adv_examples.py -d cxr -a cw-li -b 64 -e 1 -c 100
CUDA_VISIBLE_DEVICES=1 python craft_adv_examples.py -d dr -a cw-li -b 64 -e 1 -c 100
export CUDA_VISIBLE_DEVICES=1
for attack in cw-li; do
for eps in 0.{1..9..2}; do
python craft_adv_examples.py -d dr -a $attack -b 100 -e $eps -c 100
done
done
http://bwc.buaa.edu.cn/info/1026/1741.htm
export CUDA_VISIBLE_DEVICES=0
for ds in derm cxr; do
for attack in pgd pgd_bb ; do
echo python extract_features.py -d $ds -a $attack -b 100 >> log/history.log
python extract_features.py -d $ds -a $attack -b 100
python extract_characteristics.py -d $ds -a $attack -b 100 -r lid
python extract_characteristics.py -d $ds -a $attack -b 100 -r bu
python extract_characteristics.py -d $ds -a $attack -b 100 -r kd
done
done
export CUDA_VISIBLE_DEVICES=0
for ds in cxr; do
for attack in bim bim_bb pgd pgd_bb ; do
python extract_characteristics.py -d $ds -a $attack -b 100 -r kd
done
done
export CUDA_VISIBLE_DEVICES=1
for ds in cxr; do
for attack in fgsm deepfool deepfool_bb; do
python extract_characteristics.py -d $ds -a $attack -b 100 -r kd
done
done
for ds in dr; do
for attack in pgd pgd_bb ; do
echo python extract_features.py -d $ds -a $attack -b 100 >> log/history.log
python extract_features.py -d $ds -a $attack -b 100
python extract_characteristics.py -d $ds -a $attack -b 100 -r lid
python extract_characteristics.py -d $ds -a $attack -b 100 -r bu
python extract_characteristics.py -d $ds -a $attack -b 100 -r kd
done
done
export CUDA_VISIBLE_DEVICES=1
for ds in dr; do
for attack in cw-li ; do
echo python extract_features.py -d $ds -a $attack -b 60 -c 100 >> log/history.log
python extract_features.py -d $ds -a $attack -b 60 -c 100
python extract_characteristics.py -d $ds -a $attack -b 60 -r lid -c 100
python extract_characteristics.py -d $ds -a $attack -b 60 -r bu -c 100
python extract_characteristics.py -d $ds -a $attack -b 60 -r kd -c 100
done
done
export CUDA_VISIBLE_DEVICES=1
for dataset in cxr05 cxr056 cxr0456; do
for attack in fgsm; do
for eps in 0.{1..9..2} {1..10}; do
python craft_adv_examples.py -d $dataset -a $attack -b 100 -e $eps
done
done
for attack in bim pgd; do
for eps in 0.{1..9} 1.0; do
python craft_adv_examples.py -d $dataset -a $attack -b 100 -e $eps
done
done
done
export CUDA_VISIBLE_DEVICES=1
for dataset in cxr05 cxr056 cxr0456; do
for attack in cw-li; do
for eps in 0.{1..9} 1.0; do
python craft_adv_examples.py -d $dataset -a $attack -c 100 -b 100 -e $eps
done
done
done