mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-23 13:34:23 +08:00

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Adrian Boguszewski <adrian.boguszewski@intel.com>
19 lines
568 B
Bash
Executable File
19 lines
568 B
Bash
Executable File
#!/bin/bash
|
|
# Ultralytics YOLO 🚀, GPL-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
|