您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

22 行
926B

  1. #!/bin/bash
  2. # COCO 2017 dataset http://cocodataset.org
  3. # Download command: bash data/scripts/get_coco.sh
  4. # Train command: python train.py --data coco.yaml
  5. # Default dataset location is next to /yolov5:
  6. # /parent_folder
  7. # /coco
  8. # /yolov5
  9. # Download/unzip labels
  10. echo 'Downloading COCO 2017 labels ...'
  11. d='../' # unzip directory
  12. f='coco2017labels.zip' && curl -L https://github.com/ultralytics/yolov5/releases/download/v1.0/$f -o $f
  13. unzip -q $f -d $d && rm $f
  14. # Download/unzip images
  15. echo 'Downloading COCO 2017 images ...'
  16. d='../coco/images' # unzip directory
  17. f='train2017.zip' && curl http://images.cocodataset.org/zips/$f -o $f && unzip -q $f -d $d && rm $f # 19G, 118k images
  18. f='val2017.zip' && curl http://images.cocodataset.org/zips/$f -o $f && unzip -q $f -d $d && rm $f # 1G, 5k images
  19. # f='test2017.zip' && curl http://images.cocodataset.org/zips/$f -o $f && unzip -q $f -d $d && rm $f # 7G, 41k images