Cristi Fati glenn-jocher commited on
Commit
fee83c1
·
unverified ·
1 Parent(s): e0c3f42

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>

Files changed (1) hide show
  1. data/scripts/download_weights.sh +4 -1
data/scripts/download_weights.sh CHANGED
@@ -11,7 +11,10 @@
11
  python - <<EOF
12
  from utils.downloads import attempt_download
13
 
14
- for x in ['s', 'm', 'l', 'x']:
 
 
 
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