From 5b572681fff6cb594705248f1904531814a3be9c Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sun, 17 May 2020 19:28:06 -0700 Subject: [PATCH] pseudo labeling bug fix --- detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detect.py b/detect.py index 3c9dd982..7fc75c08 100644 --- a/detect.py +++ b/detect.py @@ -110,7 +110,7 @@ def detect(save_img=False): save_path = str(Path(out) / Path(p).name) s += '%gx%g ' % img.shape[2:] # print string - gn = torch.tensor(im0s.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 imgsz to im0 size det[:, :4] = scale_coords(img.shape[2:], det[:, :4], im0.shape).round()