From 3e33adb93502e3b292a43ecd855e6882c8b1bd5d Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sat, 21 Dec 2019 19:23:50 -0800 Subject: [PATCH] updates --- data/get_coco2017.sh | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/data/get_coco2017.sh b/data/get_coco2017.sh index 69a29761..249a5454 100755 --- a/data/get_coco2017.sh +++ b/data/get_coco2017.sh @@ -15,17 +15,10 @@ unzip -q ${filename} # for coco.zip # tar -xzf ${filename} # for coco.tar.gz rm ${filename} -# Download images +# Download and unzip images cd coco/images -curl http://images.cocodataset.org/zips/train2017.zip -o train2017.zip -curl http://images.cocodataset.org/zips/val2017.zip -o val2017.zip - -# Unzip images -unzip -q train2017.zip -unzip -q val2017.zip - -# (optional) Delete zip files -rm -rf *.zip +f="train2017.zip" && curl http://images.cocodataset.org/zips/$f -o $f && unzip -q $f && rm $f +f="val2017.zip" && curl http://images.cocodataset.org/zips/$f -o $f && unzip -q $f && rm $f # cd out cd ../..