Fix Google Drive URI for YOLOv5 weights

This commit is contained in:
Trevor Sullivan 2020-06-10 14:26:10 -07:00 committed by GitHub
parent 9b62f9962e
commit ac93e9c811
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):