-
Notifications
You must be signed in to change notification settings - Fork 0
/
4.run_fgsm_attack.sh
executable file
·30 lines (21 loc) · 1.33 KB
/
4.run_fgsm_attack.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
# sysid=A11
# /data/longnv/_saved/models/LA_lcnn_LPSseg_uf_seg600/20230113_161026/model_best.pth
# /data/longnv/_saved/models/LA_lcnnHalf_LPSseg_uf_seg600/20230113_152328/model_best.pth
# /data/longnv/_saved/models/LA_SENet12_LPSseg_uf_seg600/20230113_175511/model_best.pth
# /data/longnv/_saved/models/LA_SENet34_LPSseg_uf_seg600/20230113_185148/model_best.pth
GPU=3
echo adversarial data SENet34, clipped 2k-4k
python fgsm_attack2.py --resume /data/longnv/_saved/models/LA_SENet34_LPSseg_uf_seg600/20230113_185148/model_best.pth \
--protocol_file /data/Dataset/ASVspoof/LA/ASVspoof2019_LA_cm_protocols/ASVspoof2019.LA.cm.eval.trl.txt \
--asv_score_file /data/Dataset/ASVspoof/LA/ASVspoof2019_LA_asv_scores/ASVspoof2019.LA.asv.eval.gi.trl.scores.txt \
--device ${GPU}
echo DONE
exit
GPU=2
echo adversarial data SENet12, clipped 2k-4k
python fgsm_attack2.py --resume /data/longnv/_saved/models/LA_SENet12_LPSseg_uf_seg600/20230113_175511/model_best.pth \
--protocol_file /data/Dataset/ASVspoof/LA/ASVspoof2019_LA_cm_protocols/ASVspoof2019.LA.cm.eval.trl.txt \
--asv_score_file /data/Dataset/ASVspoof/LA/ASVspoof2019_LA_asv_scores/ASVspoof2019.LA.asv.eval.gi.trl.scores.txt \
--device ${GPU}
echo DONE
exit