yolov5 / data /scripts /download_weights.sh
glenn-jocher's picture
Fix rename `utils.google_utils` to `utils.downloads` (#4393)
3e7c59a unverified
raw
history blame
479 Bytes
#!/bin/bash
# YOLOv5 πŸš€ by Ultralytics https://ultralytics.com, licensed under GNU GPL v3.0
# Download latest models from https://github.com/ultralytics/yolov5/releases
# Example usage: bash path/to/download_weights.sh
# parent
# └── yolov5
# β”œβ”€β”€ yolov5s.pt ← downloads here
# β”œβ”€β”€ yolov5m.pt
# └── ...
python - <<EOF
from utils.downloads import attempt_download
for x in ['s', 'm', 'l', 'x']:
attempt_download(f'yolov5{x}.pt')
EOF