forked from 12345Matt/input-aware-backdoor-attack-release
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgtsrb_download.sh
15 lines (15 loc) · 821 Bytes
/
gtsrb_download.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
wget -P ./data https://sid.erda.dk/public/archives/daaeac0d7ce1152aea9b61d9f1e19370/GTSRB_Final_Training_Images.zip
wget -P ./data https://sid.erda.dk/public/archives/daaeac0d7ce1152aea9b61d9f1e19370/GTSRB_Final_Test_Images.zip
wget -P ./data https://sid.erda.dk/public/archives/daaeac0d7ce1152aea9b61d9f1e19370/GTSRB_Final_Test_GT.zip
mkdir ./data/GTSRB;
mkdir ./data/GTSRB/Train;
mkdir ./data/GTSRB/Test;
mkdir ./data/temps;
unzip ./data/GTSRB_Final_Training_Images.zip -d ./data/temps/Train;
unzip ./data/GTSRB_Final_Test_Images.zip -d ./data/temps/Test;
mv ./data/temps/Train/GTSRB/Final_Training/Images/* ./data/GTSRB/Train;
mv ./data/temps/Test/GTSRB/Final_Test/Images/* ./data/GTSRB/Test;
unzip ./data/GTSRB_Final_Test_GT.zip -d ./data/GTSRB/Test/;
rm -r ./data/temps;
rm ./data/*.zip;
echo "Download Completed";