updates
This commit is contained in:
parent
6bd2c22523
commit
f02ac89122
|
@ -1,11 +1,17 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# https://stackoverflow.com/questions/48133080/how-to-download-a-google-drive-url-via-curl-or-wget/48133859
|
# https://stackoverflow.com/questions/48133080/how-to-download-a-google-drive-url-via-curl-or-wget/48133859
|
||||||
|
|
||||||
# Download COCO dataset
|
# Set fileid and filename
|
||||||
fileid="1HaXkef9z6y5l4vUnCYgdmEAj61c6bfWO"
|
filename="coco.zip"
|
||||||
filename="coco_gdrive.zip"
|
fileid="1HaXkef9z6y5l4vUnCYgdmEAj61c6bfWO" # coco2014.zip
|
||||||
|
# filename="coco.tar.gz"
|
||||||
|
# fileid="1HaXkef9z6y5l4vUnCYgdmEAj61c6bfWO" # coco.tar.gz
|
||||||
|
|
||||||
|
# Download from Google Drive, accepting presented query
|
||||||
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null
|
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}
|
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename}
|
||||||
|
rm ./cookie
|
||||||
|
|
||||||
# Unzip
|
# Unzip
|
||||||
unzip -q coco_gdrive.zip
|
unzip -q ${filename}
|
||||||
|
# tar -xzf ${filename}
|
||||||
|
|
Loading…
Reference in New Issue