download_weights.sh 277 B

123456789101112
  1. #!/bin/bash
  2. # Download latest models from https://github.com/ultralytics/yolov5/releases
  3. # Usage:
  4. # $ bash weights/download_weights.sh
  5. python - <<EOF
  6. from utils.google_utils import attempt_download
  7. for x in ['s', 'm', 'l', 'x']:
  8. attempt_download(f'yolov5{x}.pt')
  9. EOF