`ultralytics 8.0.26` new YOLOv5u models (#771)
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>single_channel
parent
b83374b42d
commit
fa8811dcee
@ -1,22 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Ultralytics YOLO 🚀, GPL-3.0 license
|
# Ultralytics YOLO 🚀, GPL-3.0 license
|
||||||
# Download latest models from https://github.com/ultralytics/yolov5/releases
|
# Download latest models from https://github.com/ultralytics/assets/releases
|
||||||
# Example usage: bash data/scripts/download_weights.sh
|
# Example usage: bash ultralytics/yolo/data/scripts/download_weights.sh
|
||||||
# parent
|
# parent
|
||||||
# └── yolov5
|
# └── weights
|
||||||
# ├── yolov5s.pt ← downloads here
|
# ├── yolov8n.pt ← downloads here
|
||||||
# ├── yolov5m.pt
|
# ├── yolov8s.pt
|
||||||
# └── ...
|
# └── ...
|
||||||
|
|
||||||
python - <<EOF
|
python - <<EOF
|
||||||
from utils.downloads import attempt_download
|
from ultralytics.yolo.utils.downloads import attempt_download_asset
|
||||||
|
|
||||||
p5 = list('nsmlx') # P5 models
|
assets = [f'yolov8{size}{suffix}.pt' for size in 'nsmlx' for suffix in ('', '-cls', '-seg')]
|
||||||
p6 = [f'{x}6' for x in p5] # P6 models
|
for x in assets:
|
||||||
cls = [f'{x}-cls' for x in p5] # classification models
|
attempt_download_asset(f'weights/{x}')
|
||||||
seg = [f'{x}-seg' for x in p5] # classification models
|
|
||||||
|
|
||||||
for x in p5 + p6 + cls + seg:
|
|
||||||
attempt_download(f'weights/yolov5{x}.pt')
|
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
Reference in new issue