CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
hukaixuan19970627

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: hukaixuan19970627/yolov5_obb
Path: blob/master/data/scripts/download_weights.sh
Views: 475
1
#!/bin/bash
2
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license
3
# Download latest models from https://github.com/ultralytics/yolov5/releases
4
# Example usage: bash path/to/download_weights.sh
5
# parent
6
# └── yolov5
7
# ├── yolov5s.pt ← downloads here
8
# ├── yolov5m.pt
9
# └── ...
10
11
python - <<EOF
12
from utils.downloads import attempt_download
13
14
models = ['n', 's', 'm', 'l', 'x']
15
models.extend([x + '6' for x in models]) # add P6 models
16
17
for x in models:
18
attempt_download(f'yolov5{x}.pt')
19
20
EOF
21
22