From 32b54c81d53b432de50b60d12f1cd52a2d0f027b Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Mon, 2 Sep 2019 12:09:00 +0200 Subject: [PATCH] updates Signed-off-by: Glenn Jocher --- models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/models.py b/models.py index 20ef978d..773e31a4 100755 --- a/models.py +++ b/models.py @@ -302,6 +302,7 @@ def load_darknet_weights(self, weights, cutoff=-1): os.system('curl -f ' + url + ' -o ' + weights) except IOError: print(msg) + os.system('rm ' + weights) # remove partial downloads assert os.path.exists(weights), msg # download missing weights from Google Drive # Establish cutoffs