From cec59f12c8b0800d00949ea15511469f667d45dd Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sat, 18 Jul 2020 10:48:33 -0700 Subject: [PATCH] =?UTF-8?q?windows=20=E2=80=93-weights=20''=20fix=20#192?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Glenn Jocher --- models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models.py b/models.py index dd2fd656..54742b88 100755 --- a/models.py +++ b/models.py @@ -452,7 +452,7 @@ def convert(cfg='cfg/yolov3-spp.cfg', weights='weights/yolov3-spp.weights'): def attempt_download(weights): # Attempt to download pretrained weights if not found locally - weights = weights.strip() + weights = weights.strip().replace("'", '') msg = weights + ' missing, try downloading from https://drive.google.com/open?id=1LezFG5g3BCW6iYaV89B2i64cqEUZD7e0' if len(weights) > 0 and not os.path.isfile(weights):