forked from Jeffkang-94/pytorch-adversarial-attack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
download.sh
25 lines (21 loc) · 865 Bytes
/
download.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
for VAR in 1zAiPdXLPYkikxVnjXR8zcgEGer8HR3Ca 1iAwkv18spCYaVEOi7IGDDHpgY9EB-MUi 1uEQdXDIK4XPnm7ZkzLFtTrXb0WfAgi54 1xdocjfDQ88LzLjYfkIJVSL9ImzrzUXZB
do
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=$VAR" > /dev/null
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=$VAR" -o "$VAR.pth"
done
mkdir results
for VAR in ResNet WideResNet
do
mkdir results/$VAR
mkdir results/$VAR/clean
mkdir results/$VAR/adv
done
mv 1zAiPdXLPYkikxVnjXR8zcgEGer8HR3Ca.pth best.pth
mv best.pth results/ResNet/clean
mv 1iAwkv18spCYaVEOi7IGDDHpgY9EB-MUi.pth best.pth
mv best.pth results/ResNet/adv
mv 1uEQdXDIK4XPnm7ZkzLFtTrXb0WfAgi54.pth best.pth
mv best.pth results/WideResNet/clean
mv 1xdocjfDQ88LzLjYfkIJVSL9ImzrzUXZB.pth best.pth
mv best.pth results/WideResNet/adv
rm cookie