download_pix2pix_dataset.sh 488 B

1234567891011121314
  1. FILE=$1
  2. if [[ $FILE != "cityscapes" && $FILE != "edges2handbags" && $FILE != "edges2shoes" && $FILE != "facades" && $FILE != "maps" ]]; then
  3. echo "Available datasets are: edges2handbags, edges2shoes, maps, cityscapes, facades"
  4. exit 1
  5. fi
  6. URL=https://people.eecs.berkeley.edu/~tinghuiz/projects/pix2pix/datasets/$FILE.tar.gz
  7. TAR_FILE=./datasets/$FILE.tar.gz
  8. TARGET_DIR=./datasets/$FILE/
  9. wget -N $URL -O $TAR_FILE
  10. mkdir $TARGET_DIR
  11. tar -zxvf $TAR_FILE -C ./datasets/
  12. rm $TAR_FILE