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
568 B
19 lines
568 B
2 years ago
|
#!/bin/bash
|
||
2 years ago
|
# Ultralytics YOLO 🚀, AGPL-3.0 license
|
||
2 years ago
|
# Download latest models from https://github.com/ultralytics/assets/releases
|
||
1 year ago
|
# Example usage: bash ultralytics/data/scripts/download_weights.sh
|
||
2 years ago
|
# parent
|
||
2 years ago
|
# └── weights
|
||
|
# ├── yolov8n.pt ← downloads here
|
||
|
# ├── yolov8s.pt
|
||
2 years ago
|
# └── ...
|
||
|
|
||
|
python - <<EOF
|
||
1 year ago
|
from ultralytics.utils.downloads import attempt_download_asset
|
||
2 years ago
|
|
||
1 year ago
|
assets = [f'yolov8{size}{suffix}.pt' for size in 'nsmlx' for suffix in ('', '-cls', '-seg', '-pose')]
|
||
2 years ago
|
for x in assets:
|
||
|
attempt_download_asset(f'weights/{x}')
|
||
2 years ago
|
|
||
|
EOF
|