glenn-jocher commited on
Commit
a5359f6
·
unverified ·
1 Parent(s): 6b634c6

Update data-autodownload background tasks (#2154)

Browse files
data/scripts/get_coco.sh CHANGED
@@ -10,8 +10,9 @@
10
  # Download/unzip labels
11
  d='../' # unzip directory
12
  url=https://github.com/ultralytics/yolov5/releases/download/v1.0/
13
- f='coco2017labels.zip' # 68 MB
14
- echo 'Downloading' $url$f ' ...' && curl -L $url$f -o $f && unzip -q $f -d $d && rm $f # download, unzip, remove
 
15
 
16
  # Download/unzip images
17
  d='../coco/images' # unzip directory
@@ -20,7 +21,7 @@ f1='train2017.zip' # 19G, 118k images
20
  f2='val2017.zip' # 1G, 5k images
21
  f3='test2017.zip' # 7G, 41k images (optional)
22
  for f in $f1 $f2; do
23
- echo 'Downloading' $url$f '...' && curl -L $url$f -o $f # download, (unzip, remove in background)
24
- unzip -q $f -d $d && rm $f &
25
  done
26
  wait # finish background tasks
 
10
  # Download/unzip labels
11
  d='../' # unzip directory
12
  url=https://github.com/ultralytics/yolov5/releases/download/v1.0/
13
+ f='coco2017labels.zip' # 68 MB
14
+ echo 'Downloading' $url$f ' ...'
15
+ curl -L $url$f -o $f && unzip -q $f -d $d && rm $f & # download, unzip, remove in background
16
 
17
  # Download/unzip images
18
  d='../coco/images' # unzip directory
 
21
  f2='val2017.zip' # 1G, 5k images
22
  f3='test2017.zip' # 7G, 41k images (optional)
23
  for f in $f1 $f2; do
24
+ echo 'Downloading' $url$f '...'
25
+ curl -L $url$f -o $f && unzip -q $f -d $d && rm $f & # download, unzip, remove in background
26
  done
27
  wait # finish background tasks
data/scripts/get_voc.sh CHANGED
@@ -18,8 +18,8 @@ f1=VOCtrainval_06-Nov-2007.zip # 446MB, 5012 images
18
  f2=VOCtest_06-Nov-2007.zip # 438MB, 4953 images
19
  f3=VOCtrainval_11-May-2012.zip # 1.95GB, 17126 images
20
  for f in $f3 $f2 $f1; do
21
- echo 'Downloading' $url$f '...' && curl -L $url$f -o $f # download, (unzip, remove in background)
22
- unzip -q $f -d $d && rm $f &
23
  done
24
  wait # finish background tasks
25
 
 
18
  f2=VOCtest_06-Nov-2007.zip # 438MB, 4953 images
19
  f3=VOCtrainval_11-May-2012.zip # 1.95GB, 17126 images
20
  for f in $f3 $f2 $f1; do
21
+ echo 'Downloading' $url$f '...'
22
+ curl -L $url$f -o $f && unzip -q $f -d $d && rm $f & # download, unzip, remove in background
23
  done
24
  wait # finish background tasks
25