data-autodownload background tasks (#2034)

This commit is contained in:
Glenn Jocher authored and GitHub committed 2021-01-24 18:01:58 -08:00
1 parent 3551b072b3
commit a41d910c5d
2 files changed
+7 -3

No files matched your search

+4 -2
View File
@@ -17,9 +17,11 @@ url=https://github.com/ultralytics/yolov5/releases/download/v1.0/
f1=VOCtrainval_06-Nov-2007.zip # 446MB, 5012 images
f2=VOCtest_06-Nov-2007.zip # 438MB, 4953 images
f3=VOCtrainval_11-May-2012.zip # 1.95GB, 17126 images
for f in $f1 $f2 $f3; do
echo 'Downloading' $url$f ' ...' && curl -L $url$f -o $f && unzip -q $f -d $d && rm $f # download, unzip, remove
for f in $f3 $f2 $f1; do
echo 'Downloading' $url$f '...' && curl -L $url$f -o $f # download, (unzip, remove in background)
unzip -q $f -d $d && rm $f &
done
wait # finish background tasks
end=$(date +%s)
runtime=$((end - start))