File size: 523 Bytes
1e84a23
24bea5e
6ff0d91
3fef117
0ad6301
 
 
 
 
1e84a23
27138c2
3e7c59a
27138c2
fee83c1
 
 
 
27138c2
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# YOLOv5 πŸš€ by Ultralytics, GPL-3.0 license
# Download latest models from https://github.com/ultralytics/yolov5/releases
# Example usage: bash path/to/download_weights.sh
# parent
# └── yolov5
#     β”œβ”€β”€ yolov5s.pt  ← downloads here
#     β”œβ”€β”€ yolov5m.pt
#     └── ...

python - <<EOF
from utils.downloads import attempt_download

models = ['n', 's', 'm', 'l', 'x']
models.extend([x + '6' for x in models])  # add P6 models

for x in models:
    attempt_download(f'yolov5{x}.pt')

EOF