Skip to content

Commit 142713c

Browse files
author
kmbae
committed
Add file to download dataset
1 parent ad1d615 commit 142713c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

data/download_dataset.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Code from https://github.com/phillipi/pix2pix/blob/master/datasets/download_dataset.sh
2+
FILE=$1
3+
URL=https://people.eecs.berkeley.edu/~tinghuiz/projects/pix2pix/datasets/$FILE.tar.gz
4+
TAR_FILE=./data/$FILE.tar.gz
5+
TARGET_DIR=./data/$FILE/
6+
wget -N $URL -O $TAR_FILE
7+
mkdir $TARGET_DIR
8+
tar -zxvf $TAR_FILE -C ./data/
9+
rm $TAR_FILE

0 commit comments

Comments
 (0)