From 8a414743e2fd92d2bc471c1f92281f82cf31bc10 Mon Sep 17 00:00:00 2001 From: Chang Lee Date: Mon, 22 Jun 2020 22:07:51 -0400 Subject: [PATCH] Fixed string format error during weight conversion (#1334) --- models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models.py b/models.py index 0323b25e..d5cfc02a 100755 --- a/models.py +++ b/models.py @@ -438,7 +438,7 @@ def convert(cfg='cfg/yolov3-spp.cfg', weights='weights/yolov3-spp.weights'): target = weights.rsplit('.', 1)[0] + '.pt' torch.save(chkpt, target) - print("Success: converted '%s' to 's%'" % (weights, target)) + print("Success: converted '%s' to '%s'" % (weights, target)) else: print('Error: extension not supported.')