瀏覽代碼

Merge pull request #35 from pcgeek86/patch-1

Fix Google Drive URI for YOLOv5 weights
5.0
Glenn Jocher GitHub 4 年之前
父節點
當前提交
bb56ed4d05
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      utils/google_utils.py

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

@@ -10,7 +10,7 @@ from pathlib import Path
def attempt_download(weights):
# Attempt to download pretrained weights if not found locally
weights = weights.strip()
msg = weights + ' missing, try downloading from https://drive.google.com/open?id=1LezFG5g3BCW6iYaV89B2i64cqEUZD7e0'
msg = weights + ' missing, try downloading from https://drive.google.com/drive/folders/1Drs_Aiu7xx6S-ix95f9kNsA6ueKRpN2J'

r = 1
if len(weights) > 0 and not os.path.isfile(weights):

Loading…
取消
儲存