| 12345678910111213141516171819202122 | #!/bin/bash# COCO 2017 dataset http://cocodataset.org# Download command: bash ./scripts/get_coco.sh# Download/unzip labelsd='./' # unzip directoryurl=https://github.com/ultralytics/yolov5/releases/download/v1.0/f='coco2017labels-segments.zip' # or 'coco2017labels.zip', 68 MBecho 'Downloading' $url$f ' ...'curl -L $url$f -o $f && unzip -q $f -d $d && rm $f & # download, unzip, remove in background# Download/unzip imagesd='./coco/images' # unzip directoryurl=http://images.cocodataset.org/zips/f1='train2017.zip' # 19G, 118k imagesf2='val2017.zip'   # 1G, 5k imagesf3='test2017.zip'  # 7G, 41k images (optional)for f in $f1 $f2 $f3; do  echo 'Downloading' $url$f '...'  curl -L $url$f -o $f && unzip -q $f -d $d && rm $f & # download, unzip, remove in backgrounddonewait # finish background tasks
 |