You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
569 B
19 lines
569 B
#!/bin/bash
|
|
# Ultralytics YOLO 🚀, AGPL-3.0 license
|
|
# Download latest models from https://github.com/ultralytics/assets/releases
|
|
# Example usage: bash ultralytics/yolo/data/scripts/download_weights.sh
|
|
# parent
|
|
# └── weights
|
|
# ├── yolov8n.pt ← downloads here
|
|
# ├── yolov8s.pt
|
|
# └── ...
|
|
|
|
python - <<EOF
|
|
from ultralytics.yolo.utils.downloads import attempt_download_asset
|
|
|
|
assets = [f'yolov8{size}{suffix}.pt' for size in 'nsmlx' for suffix in ('', '-cls', '-seg')]
|
|
for x in assets:
|
|
attempt_download_asset(f'weights/{x}')
|
|
|
|
EOF
|