This commit is contained in:
Glenn Jocher 2019-11-22 13:27:23 -10:00
parent e701979862
commit bbd6c884e6
1 changed files with 1 additions and 2 deletions

View File

@ -441,7 +441,6 @@ def attempt_download(weights):
print(msg)
os.system('rm ' + weights) # remove partial downloads
assert os.path.exists(weights), msg # download missing weights from Google Drive
if os.path.getsize(weights) < 5E6: # weights < 5MB (too small), download failed
os.remove(weights) # delete corrupted weightsfile
print(msg)
assert os.path.exists(weights), msg # download missing weights from Google Drive