From 954deadff358183ded9efaa6883929d76aec781c Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Tue, 16 Jul 2019 01:03:15 +0200 Subject: [PATCH] updates --- models.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/models.py b/models.py index c68aaad7..1c2c8972 100755 --- a/models.py +++ b/models.py @@ -254,9 +254,6 @@ def load_darknet_weights(self, weights, cutoff=-1): url = 'https://pjreddie.com/media/files/' + weights_file print('Downloading ' + url + ' to ' + weights) os.system('curl ' + url + ' -o ' + weights) - import requests - r = requests.get(url) - except IOError: print(weights + ' not found.\nTry https://drive.google.com/drive/folders/1uxgUBemJVw9wZsdpboYbzUN4bcRhsuAI')