diff --git a/utils/google_utils.py b/utils/google_utils.py index 92fde590..cbfa3ec6 100644 --- a/utils/google_utils.py +++ b/utils/google_utils.py @@ -23,7 +23,7 @@ def gdrive_download(id='1HaXkef9z6y5l4vUnCYgdmEAj61c6bfWO', name='coco.zip'): "curl -Lb ./cookie -s \"https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=%s\" -o %s" % ( id, name), 'rm ./cookie'] - r = sum([os.system(x) for x in s]) # run commands, get return zeros + r = sum([os.system(x) for x in s][:2]) # run commands, get return zeros # Attempt small file download if not os.path.exists(name): # file size < 40MB