From d56efafee1b8e6e6e8f68936d3e8c26e3d12acda Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sat, 21 Dec 2019 19:30:22 -0800 Subject: [PATCH] updates --- data/get_coco2014.sh | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/data/get_coco2014.sh b/data/get_coco2014.sh index cb2fe21e..300b690b 100755 --- a/data/get_coco2014.sh +++ b/data/get_coco2014.sh @@ -16,18 +16,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/train2014.zip -o train2014.zip -curl http://images.cocodataset.org/zips/val2014.zip -o val2014.zip - -# Unzip images -unzip -q train2014.zip -unzip -q val2014.zip - -# (optional) Delete zip files -rm -rf *.zip +f="train2014.zip" && curl http://images.cocodataset.org/zips/$f -o $f && unzip -q $f && rm $f +f="val2014.zip" && curl http://images.cocodataset.org/zips/$f -o $f && unzip -q $f && rm $f # cd out cd ../.. -