浏览代码

Update utils/google_utils.py (#733)

To download weights from v3.0 instead of v2.0
5.0
Quan Lin GitHub 4 年前
父节点
当前提交
66744a0df1
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      utils/google_utils.py

+ 1
- 1
utils/google_utils.py 查看文件

@@ -28,7 +28,7 @@ def attempt_download(weights):
# return

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))
if platform.system() == 'Darwin': # avoid MacOS python requests certificate error
r = os.system('curl -L %s -o %s' % (url, weights))

正在加载...
取消
保存