Browse Source

Update utils/google_utils.py (#733)

To download weights from v3.0 instead of v2.0
5.0
Quan Lin GitHub 4 years ago
parent
commit
66744a0df1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      utils/google_utils.py

+ 1
- 1
utils/google_utils.py View File

# return # return


try: # GitHub try: # GitHub
url = 'https://github.com/ultralytics/yolov5/releases/download/v2.0/' + file
url = 'https://github.com/ultralytics/yolov5/releases/download/v3.0/' + file
print('Downloading %s to %s...' % (url, weights)) print('Downloading %s to %s...' % (url, weights))
if platform.system() == 'Darwin': # avoid MacOS python requests certificate error if platform.system() == 'Darwin': # avoid MacOS python requests certificate error
r = os.system('curl -L %s -o %s' % (url, weights)) r = os.system('curl -L %s -o %s' % (url, weights))

Loading…
Cancel
Save