Spaces:
Running
Running
Download ultralytics/data/scripts/get_coco128.sh from llzzyy233/Defect_detection: direct link, hf CLI and curl.
- Browser
- Download file 636 Bytes
-
https://huggingface.co/spaces/llzzyy233/Defect_detection/resolve/main/ultralytics/data/scripts/get_coco128.sh
- Command line
-
hf download hf://spaces/llzzyy233/Defect_detection/ultralytics/data/scripts/get_coco128.sh
-
curl -L -o get_coco128.sh https://huggingface.co/spaces/llzzyy233/Defect_detection/resolve/main/ultralytics/data/scripts/get_coco128.sh
636 Bytes
| # Ultralytics YOLO ๐, AGPL-3.0 license | |
| # Download COCO128 dataset https://www.kaggle.com/ultralytics/coco128 (first 128 images from COCO train2017) | |
| # Example usage: bash data/scripts/get_coco128.sh | |
| # parent | |
| # โโโ ultralytics | |
| # โโโ datasets | |
| # โโโ coco128 โ downloads here | |
| # Download/unzip images and labels | |
| d='../datasets' # unzip directory | |
| url=https://github.com/ultralytics/yolov5/releases/download/v1.0/ | |
| f='coco128.zip' # or 'coco128-segments.zip', 68 MB | |
| echo 'Downloading' $url$f ' ...' | |
| curl -L $url$f -o $f -# && unzip -q $f -d $d && rm $f & | |
| wait # finish background tasks | |