Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 18 additions & 12 deletions download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,31 @@ FILE=$1

if [ $FILE == 'CelebA' ]
then
URL=https://www.dropbox.com/s/3e5cmqgplchz85o/CelebA_nocrop.zip?dl=0
ZIP_FILE=./data/CelebA.zip
#I have removed URL for the both the zip files as it doesn't work anymore as the files are deleted in that
pass
# URL=https://www.dropbox.com/s/3e5cmqgplchz85o/CelebA_nocrop.zip?dl=0
# ZIP_FILE=./data/CelebA.zip

elif [ $FILE == 'LSUN' ]
then
URL=https://www.dropbox.com/s/zt7d2hchrw7cp9p/church_outdoor_train_lmdb.zip?dl=0
ZIP_FILE=./data/church_outdoor_train_lmdb.zip
pass
# URL=https://www.dropbox.com/s/zt7d2hchrw7cp9p/church_outdoor_train_lmdb.zip?dl=0
# ZIP_FILE=./data/church_outdoor_train_lmdb.zip
else
echo "Available datasets are: CelebA and LSUN"
exit 1
fi

mkdir -p ./data/
wget -N $URL -O $ZIP_FILE
unzip $ZIP_FILE -d ./data/
#Commented the bottom code as it should only work when the above URL is modified to a new one

if [ $FILE == 'CelebA' ]
then
mv ./data/CelebA_nocrop ./data/CelebA
fi
# mkdir -p ./data/
# wget -N $URL -O $ZIP_FILE
# unzip $ZIP_FILE -d ./data/

# if [ $FILE == 'CelebA' ]
# then
# # mv ./data/CelebA_nocrop ./data/CelebA
# pass
# fi

rm $ZIP_FILE
# rm $ZIP_FILE