From 0d5065d3b9e50507578ff338cd74896e466a2542 Mon Sep 17 00:00:00 2001 From: Russ Ferriday Date: Mon, 29 Jun 2020 12:56:40 +0100 Subject: [PATCH] Remove non-ascii that breaks pdb single-stepping --- detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detect.py b/detect.py index 69a37de..988a002 100644 --- a/detect.py +++ b/detect.py @@ -82,7 +82,7 @@ def detect(save_img=False): save_path = str(Path(out) / Path(p).name) txt_path = str(Path(out) / Path(p).stem) + ('_%g' % dataset.frame if dataset.mode == 'video' else '') s += '%gx%g ' % img.shape[2:] # print string - gn = torch.tensor(im0.shape)[[1, 0, 1, 0]] #  normalization gain whwh + gn = torch.tensor(im0.shape)[[1, 0, 1, 0]] # normalization gain whwh if det is not None and len(det): # Rescale boxes from img_size to im0 size det[:, :4] = scale_coords(img.shape[2:], det[:, :4], im0.shape).round()