# YOLOv5 π by Ultralytics, GPL-3.0 license | |
# 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 | |
models = ['n', 's', 'm', 'l', 'x'] | |
models.extend([x + '6' for x in models]) # add P6 models | |
for x in models: | |
attempt_download(f'yolov5{x}.pt') | |
EOF | |