Skip to content

Commit

Permalink
Add get_coco128.sh for downloading the coco128 dataset (#3047)
Browse files Browse the repository at this point in the history
* Add get_coco128.sh

* Update get_coco128.sh

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
  • Loading branch information
zldrobit and glenn-jocher authored May 6, 2021
1 parent b18ca31 commit b8be76f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions data/scripts/get_coco128.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
# COCO128 dataset https://www.kaggle.com/ultralytics/coco128
# Download command: bash data/scripts/get_coco128.sh
# Train command: python train.py --data coco128.yaml
# Default dataset location is next to /yolov5:
# /parent_folder
# /coco128
# /yolov5

# Download/unzip images and labels
d='../' # unzip directory
url=https://github.com/ultralytics/yolov5/releases/download/v1.0/
f='coco128.zip' # or 'coco2017labels-segments.zip', 68 MB
echo 'Downloading' $url$f ' ...'
curl -L $url$f -o $f && unzip -q $f -d $d && rm $f & # download, unzip, remove in background

wait # finish background tasks

0 comments on commit b8be76f

Please sign in to comment.