Weights download script minor improvements (#5213)
Browse files* Add nano model to the download list
* Add possibility to also download the "*6" models
* Cleanup
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
data/scripts/download_weights.sh
CHANGED
@@ -11,7 +11,10 @@
|
|
11 |
python - <<EOF
|
12 |
from utils.downloads import attempt_download
|
13 |
|
14 |
-
|
|
|
|
|
|
|
15 |
attempt_download(f'yolov5{x}.pt')
|
16 |
|
17 |
EOF
|
|
|
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
|