Update data-autodownload background tasks (#2154)
* Update get_coco.sh * Update get_voc.sh
This commit is contained in:
parent
6b634c6b87
commit
a5359f6c32
|
|
@ -10,8 +10,9 @@
|
||||||
# Download/unzip labels
|
# Download/unzip labels
|
||||||
d='../' # unzip directory
|
d='../' # unzip directory
|
||||||
url=https://github.com/ultralytics/yolov5/releases/download/v1.0/
|
url=https://github.com/ultralytics/yolov5/releases/download/v1.0/
|
||||||
f='coco2017labels.zip' # 68 MB
|
f='coco2017labels.zip' # 68 MB
|
||||||
echo 'Downloading' $url$f ' ...' && curl -L $url$f -o $f && unzip -q $f -d $d && rm $f # download, unzip, remove
|
echo 'Downloading' $url$f ' ...'
|
||||||
|
curl -L $url$f -o $f && unzip -q $f -d $d && rm $f & # download, unzip, remove in background
|
||||||
|
|
||||||
# Download/unzip images
|
# Download/unzip images
|
||||||
d='../coco/images' # unzip directory
|
d='../coco/images' # unzip directory
|
||||||
|
|
@ -20,7 +21,7 @@ f1='train2017.zip' # 19G, 118k images
|
||||||
f2='val2017.zip' # 1G, 5k images
|
f2='val2017.zip' # 1G, 5k images
|
||||||
f3='test2017.zip' # 7G, 41k images (optional)
|
f3='test2017.zip' # 7G, 41k images (optional)
|
||||||
for f in $f1 $f2; do
|
for f in $f1 $f2; do
|
||||||
echo 'Downloading' $url$f '...' && curl -L $url$f -o $f # download, (unzip, remove in background)
|
echo 'Downloading' $url$f '...'
|
||||||
unzip -q $f -d $d && rm $f &
|
curl -L $url$f -o $f && unzip -q $f -d $d && rm $f & # download, unzip, remove in background
|
||||||
done
|
done
|
||||||
wait # finish background tasks
|
wait # finish background tasks
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,8 @@ f1=VOCtrainval_06-Nov-2007.zip # 446MB, 5012 images
|
||||||
f2=VOCtest_06-Nov-2007.zip # 438MB, 4953 images
|
f2=VOCtest_06-Nov-2007.zip # 438MB, 4953 images
|
||||||
f3=VOCtrainval_11-May-2012.zip # 1.95GB, 17126 images
|
f3=VOCtrainval_11-May-2012.zip # 1.95GB, 17126 images
|
||||||
for f in $f3 $f2 $f1; do
|
for f in $f3 $f2 $f1; do
|
||||||
echo 'Downloading' $url$f '...' && curl -L $url$f -o $f # download, (unzip, remove in background)
|
echo 'Downloading' $url$f '...'
|
||||||
unzip -q $f -d $d && rm $f &
|
curl -L $url$f -o $f && unzip -q $f -d $d && rm $f & # download, unzip, remove in background
|
||||||
done
|
done
|
||||||
wait # finish background tasks
|
wait # finish background tasks
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue