Update download_weights.sh (#1338)
Browse files
weights/download_weights.sh
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
#!/bin/bash
|
2 |
-
# Download
|
3 |
|
4 |
-
python -
|
5 |
-
from utils.google_utils import
|
6 |
-
|
7 |
-
|
8 |
-
attempt_download('
|
9 |
-
|
10 |
-
|
|
|
1 |
#!/bin/bash
|
2 |
+
# Download latest model from https://github.com/ultralytics/yolov5/releases
|
3 |
|
4 |
+
python - <<EOF
|
5 |
+
from utils.google_utils import attempt_download
|
6 |
+
|
7 |
+
for x in ['s', 'm', 'l', 'x']:
|
8 |
+
attempt_download(f'yolov5{x}.pt')
|
9 |
+
|
10 |
+
EOF
|