Quan Lin
commited on
Update utils/google_utils.py (#733)
Browse filesTo download weights from v3.0 instead of v2.0
- utils/google_utils.py +1 -1
utils/google_utils.py
CHANGED
@@ -28,7 +28,7 @@ def attempt_download(weights):
|
|
28 |
# return
|
29 |
|
30 |
try: # GitHub
|
31 |
-
url = 'https://github.com/ultralytics/yolov5/releases/download/
|
32 |
print('Downloading %s to %s...' % (url, weights))
|
33 |
if platform.system() == 'Darwin': # avoid MacOS python requests certificate error
|
34 |
r = os.system('curl -L %s -o %s' % (url, weights))
|
|
|
28 |
# return
|
29 |
|
30 |
try: # GitHub
|
31 |
+
url = 'https://github.com/ultralytics/yolov5/releases/download/v3.0/' + file
|
32 |
print('Downloading %s to %s...' % (url, weights))
|
33 |
if platform.system() == 'Darwin': # avoid MacOS python requests certificate error
|
34 |
r = os.system('curl -L %s -o %s' % (url, weights))
|