From d9146780a9c0069f563836091e5c8d8a483b31a4 Mon Sep 17 00:00:00 2001 From: Jiacong Fang Date: Thu, 6 May 2021 01:53:22 +0000 Subject: [PATCH 1/2] Add get_coco128.sh --- 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..eaf0e1bc99a9 --- /dev/null +++ b/data/scripts/get_coco128.sh @@ -0,0 +1,17 @@ +#!/bin/bash +# COCO 2017 dataset http://cocodataset.org +# 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 \ No newline at end of file From 5ba66ae5913859ed1df86b724eacf3dadf0f202c Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Thu, 6 May 2021 13:42:24 +0200 Subject: [PATCH 2/2] Update get_coco128.sh --- data/scripts/get_coco128.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/scripts/get_coco128.sh b/data/scripts/get_coco128.sh index eaf0e1bc99a9..395043b5b2dc 100644 --- a/data/scripts/get_coco128.sh +++ b/data/scripts/get_coco128.sh @@ -1,5 +1,5 @@ #!/bin/bash -# COCO 2017 dataset http://cocodataset.org +# 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: @@ -14,4 +14,4 @@ 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 \ No newline at end of file +wait # finish background tasks