|
a |
|
b/data/scripts/get_coco128.sh |
|
|
1 |
#!/bin/bash |
|
|
2 |
# YOLOv5 🚀 by Ultralytics, AGPL-3.0 license |
|
|
3 |
# Download COCO128 dataset https://www.kaggle.com/ultralytics/coco128 (first 128 images from COCO train2017) |
|
|
4 |
# Example usage: bash data/scripts/get_coco128.sh |
|
|
5 |
# parent |
|
|
6 |
# ├── yolov5 |
|
|
7 |
# └── datasets |
|
|
8 |
# └── coco128 ← downloads here |
|
|
9 |
|
|
|
10 |
# Download/unzip images and labels |
|
|
11 |
d='../datasets' # unzip directory |
|
|
12 |
url=https://github.com/ultralytics/yolov5/releases/download/v1.0/ |
|
|
13 |
f='coco128.zip' # or 'coco128-segments.zip', 68 MB |
|
|
14 |
echo 'Downloading' $url$f ' ...' |
|
|
15 |
curl -L $url$f -o $f -# && unzip -q $f -d $d && rm $f & |
|
|
16 |
|
|
|
17 |
wait # finish background tasks |