mamechin commited on
Commit
5d1f085
1 Parent(s): 48e83a1
Files changed (1) hide show
  1. scripts/get_coco.sh +22 -0
scripts/get_coco.sh ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # COCO 2017 dataset http://cocodataset.org
3
+ # Download command: bash ./scripts/get_coco.sh
4
+
5
+ # Download/unzip labels
6
+ d='./' # unzip directory
7
+ url=https://github.com/ultralytics/yolov5/releases/download/v1.0/
8
+ f='coco2017labels-segments.zip' # or 'coco2017labels.zip', 68 MB
9
+ echo 'Downloading' $url$f ' ...'
10
+ curl -L $url$f -o $f && unzip -q $f -d $d && rm $f & # download, unzip, remove in background
11
+
12
+ # Download/unzip images
13
+ d='./coco/images' # unzip directory
14
+ url=http://images.cocodataset.org/zips/
15
+ f1='train2017.zip' # 19G, 118k images
16
+ f2='val2017.zip' # 1G, 5k images
17
+ f3='test2017.zip' # 7G, 41k images (optional)
18
+ for f in $f1 $f2 $f3; do
19
+ echo 'Downloading' $url$f '...'
20
+ curl -L $url$f -o $f && unzip -q $f -d $d && rm $f & # download, unzip, remove in background
21
+ done
22
+ wait # finish background tasks