From b8be76f915207ef0759bfb0f1c0707c79877b763 Mon Sep 17 00:00:00 2001 From: Jiacong Fang Date: Thu, 6 May 2021 19:44:14 +0800 Subject: [PATCH] Add get_coco128.sh for downloading the coco128 dataset (#3047) * Add get_coco128.sh * Update get_coco128.sh Co-authored-by: Glenn Jocher --- data/scripts/get_coco128.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 data/scripts/get_coco128.sh diff --git a/data/scripts/get_coco128.sh b/data/scripts/get_coco128.sh new file mode 100644 index 000000000000..395043b5b2dc --- /dev/null +++ b/data/scripts/get_coco128.sh @@ -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