-
Notifications
You must be signed in to change notification settings - Fork 0
/
attack_live_dbcnn.sh
120 lines (94 loc) · 3.91 KB
/
attack_live_dbcnn.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
loop=20
seed=919
profile_fore='.outputs/LIVE_result_DBCNN_'
profile_aft='_l'$loop'_sd'${seed}
record_name_fore='.outputs/record/LIVE_result_DBCNN_'
record_name_aft='_sd'${seed}'_l'
action='incr'
profile1=${profile_fore}${action}${profile_aft}
record_name1=${record_name_fore}${action}${record_name_aft}
action2='decr'
profile2=${profile_fore}${action2}${profile_aft}
record_name2=${record_name_fore}${action2}${record_name_aft}
start=5
CUDA_VISIBLE_DEVICES=2 nohup python attack_LIVE.py -s ${start} -m dbcnn -l ${loop} --seed ${seed} -incr \
-o ${profile1} \
> ${record_name1}${loop}_s${start}.txt 2>&1 &
start=6
CUDA_VISIBLE_DEVICES=1 nohup python attack_LIVE.py -s ${start} -m dbcnn -l ${loop} --seed ${seed} -incr \
-o ${profile1} \
> ${record_name1}${loop}_s${start}.txt 2>&1 &
start=7
CUDA_VISIBLE_DEVICES=2 nohup python attack_LIVE.py -s ${start} -m dbcnn -l ${loop} --seed ${seed} -incr \
-o ${profile1} \
> ${record_name1}${loop}_s${start}.txt 2>&1 &
start=8
CUDA_VISIBLE_DEVICES=2 nohup python attack_LIVE.py -s ${start} -m dbcnn -l ${loop} --seed ${seed} -incr \
-o ${profile1} \
> ${record_name1}${loop}_s${start}.txt 2>&1 &
start=9
CUDA_VISIBLE_DEVICES=1 nohup python attack_LIVE.py -s ${start} -m dbcnn -l ${loop} --seed ${seed} -incr \
-o ${profile1} \
> ${record_name1}${loop}_s${start}.txt 2>&1 &
start=5
CUDA_VISIBLE_DEVICES=1 nohup python attack_LIVE.py -s ${start} -m dbcnn -l ${loop} --seed ${seed} \
-o ${profile2} \
> ${record_name2}${loop}_s${start}.txt 2>&1 &
start=6
CUDA_VISIBLE_DEVICES=0 nohup python attack_LIVE.py -s ${start} -m dbcnn -l ${loop} --seed ${seed} \
-o ${profile2} \
> ${record_name2}${loop}_s${start}.txt 2>&1 &
start=7
CUDA_VISIBLE_DEVICES=0 nohup python attack_LIVE.py -s ${start} -m dbcnn -l ${loop} --seed ${seed} \
-o ${profile2} \
> ${record_name2}${loop}_s${start}.txt 2>&1 &
start=8
CUDA_VISIBLE_DEVICES=0 nohup python attack_LIVE.py -s ${start} -m dbcnn -l ${loop} --seed ${seed} \
-o ${profile2} \
> ${record_name2}${loop}_s${start}.txt 2>&1 &
start=9
CUDA_VISIBLE_DEVICES=1 nohup python attack_LIVE.py -s ${start} -m dbcnn -l ${loop} --seed ${seed} \
-o ${profile2} \
> ${record_name2}${loop}_s${start}.txt 2>&1 &
echo ${profile1}' + '${profile2}
echo $(date +%Y-%m-%d\ %H:%M:%S)
start=0
CUDA_VISIBLE_DEVICES=2 nohup python attack_LIVE.py -s ${start} -m dbcnn -l ${loop} --seed ${seed} -incr \
-o ${profile1} \
> ${record_name1}${loop}_s${start}.txt 2>&1 &
start=1
CUDA_VISIBLE_DEVICES=0 nohup python attack_LIVE.py -s ${start} -m dbcnn -l ${loop} --seed ${seed} -incr \
-o ${profile1} \
> ${record_name1}${loop}_s${start}.txt 2>&1 &
start=2
CUDA_VISIBLE_DEVICES=0 nohup python attack_LIVE.py -s ${start} -m dbcnn -l ${loop} --seed ${seed} -incr \
-o ${profile1} \
> ${record_name1}${loop}_s${start}.txt 2>&1 &
start=3
CUDA_VISIBLE_DEVICES=0 nohup python attack_LIVE.py -s ${start} -m dbcnn -l ${loop} --seed ${seed} -incr \
-o ${profile1} \
> ${record_name1}${loop}_s${start}.txt 2>&1 &
start=4
CUDA_VISIBLE_DEVICES=1 nohup python attack_LIVE.py -s ${start} -m dbcnn -l ${loop} --seed ${seed} -incr \
-o ${profile1} \
> ${record_name1}${loop}_s${start}.txt 2>&1 &
start=0
CUDA_VISIBLE_DEVICES=1 nohup python attack_LIVE.py -s ${start} -m dbcnn -l ${loop} --seed ${seed} \
-o ${profile2} \
> ${record_name2}${loop}_s${start}.txt 2>&1 &
start=1
CUDA_VISIBLE_DEVICES=1 nohup python attack_LIVE.py -s ${start} -m dbcnn -l ${loop} --seed ${seed} \
-o ${profile2} \
> ${record_name2}${loop}_s${start}.txt 2>&1 &
start=2
CUDA_VISIBLE_DEVICES=2 nohup python attack_LIVE.py -s ${start} -m dbcnn -l ${loop} --seed ${seed} \
-o ${profile2} \
> ${record_name2}${loop}_s${start}.txt 2>&1 &
start=3
CUDA_VISIBLE_DEVICES=2 nohup python attack_LIVE.py -s ${start} -m dbcnn -l ${loop} --seed ${seed} \
-o ${profile2} \
> ${record_name2}${loop}_s${start}.txt 2>&1 &
start=4
CUDA_VISIBLE_DEVICES=2 nohup python attack_LIVE.py -s ${start} -m dbcnn -l ${loop} --seed ${seed} \
-o ${profile2} \
> ${record_name2}${loop}_s${start}.txt 2>&1 &