From 84f9bb5d92dd8ae453df3c712d2092344d29ad90 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Tue, 8 Dec 2020 18:44:13 -0800 Subject: [PATCH] Normalized mosaic plotting bug fix (#1647) --- utils/plots.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/plots.py b/utils/plots.py index bdc78c0e3c3d..d3dff65b5188 100644 --- a/utils/plots.py +++ b/utils/plots.py @@ -141,7 +141,7 @@ def plot_images(images, targets, paths=None, fname='images.jpg', names=None, max conf = None if labels else image_targets[:, 6] # check for confidence presence (label vs pred) if boxes.shape[1]: - if boxes.max() <= 1: # if normalized + if boxes.max() <= 1.01: # if normalized with tolerance 0.01 boxes[[0, 2]] *= w # scale to pixels boxes[[1, 3]] *= h elif scale_factor < 1: # absolute coords need scale if image scales