download_dataset.sh 824 B

123456789101112131415
  1. mkdir datasets
  2. FILE=$1
  3. if [[ $FILE != "ae_photos" && $FILE != "apple2orange" && $FILE != "summer2winter_yosemite" && $FILE != "horse2zebra" && $FILE != "monet2photo" && $FILE != "cezanne2photo" && $FILE != "ukiyoe2photo" && $FILE != "vangogh2photo" && $FILE != "maps" && $FILE != "cityscapes" && $FILE != "facades" && $FILE != "iphone2dslr_flower" && $FILE != "ae_photos" ]]; then
  4. echo "Available datasets are: apple2orange, summer2winter_yosemite, horse2zebra, monet2photo, cezanne2photo, ukiyoe2photo, vangogh2photo, maps, cityscapes, facades, iphone2dslr_flower, ae_photos"
  5. exit 1
  6. fi
  7. URL=https://people.eecs.berkeley.edu/~taesung_park/CycleGAN/datasets/$FILE.zip
  8. ZIP_FILE=./datasets/$FILE.zip
  9. TARGET_DIR=./datasets/$FILE/
  10. wget -N $URL -O $ZIP_FILE
  11. mkdir $TARGET_DIR
  12. unzip $ZIP_FILE -d ./datasets/
  13. rm $ZIP_FILE