-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_unit_tests.sh
executable file
·82 lines (76 loc) · 2.02 KB
/
run_unit_tests.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
#!/usr/bin/env bash
# # Check Models
# for attack in fglinf
# do
# for family in 0
# do
# for dataset in 0
# do
# for model in 0 1
# do
# python -u code/run_attack.py $attack -f $family -d $dataset -m $model --samples 1 --epochs 2 -v
# done
# done
# done
# for family in 1
# do
# for dataset in 0
# do
# for model in 1 2 3 4 5 6 7
# do
# python -u code/run_attack.py $attack -f $family -d $dataset -m $model --samples 1 --epochs 2 -v
# done
# done
# done
# done
#Check Our Attacks
for attack in pixel threshold
do
for es in 1 0
do
for family in 0
do
for dataset in 0
do
for model in 0
do
python -u code/run_attack.py $attack -e $es -f $family -d $dataset -m $model --samples 1 --epochs 1 -th 64 -v
done
done
done
for family in 1
do
for dataset in 0
do
for model in 1
do
python -u code/run_attack.py $attack -e $es -f $family -d $dataset -m $model --samples 1 --epochs 1 -th 64 -v
done
done
done
done
done
# #Check Other Attacks
# for attack in bilinf pgdlinf deep newton
# do
# for family in 0
# do
# for dataset in 0
# do
# for model in 0
# do
# python -u code/run_attack.py $attack -f $family -d $dataset -m $model --samples 1 --epochs 2 -v
# done
# done
# done
# for family in 1
# do
# for dataset in 0
# do
# for model in 1
# do
# python -u code/run_attack.py $attack -f $family -d $dataset -m $model --samples 1 --epochs 2 -v
# done
# done
# done
# done