|
#!/bin/bash |
|
|
|
|
|
|
|
|
|
|
|
filename="coco2017labels.zip" |
|
fileid="1cXZR_ckHki6nddOmcysCuuJFM--T-Q6L" |
|
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null |
|
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename} |
|
rm ./cookie |
|
|
|
|
|
unzip -q ${filename} |
|
|
|
rm ${filename} |
|
|
|
|
|
cd coco/images |
|
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 ../.. |
|
|