From bbd6c884e6668f799dad937c3802ac7f4a9d62a7 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 22 Nov 2019 13:27:23 -1000 Subject: [PATCH] updates --- models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/models.py b/models.py index 31350979..cfa4fff9 100755 --- a/models.py +++ b/models.py @@ -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