From 3d7d97355c8d692a3b60f0f0d298f894c29b8f39 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Tue, 2 Jul 2019 11:44:43 +0200 Subject: [PATCH] Reverse indices to what it should be Signed-off-by: Jim Martens --- src/twomartens/masterthesis/cli.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/twomartens/masterthesis/cli.py b/src/twomartens/masterthesis/cli.py index 7043b67..78558f0 100644 --- a/src/twomartens/masterthesis/cli.py +++ b/src/twomartens/masterthesis/cli.py @@ -385,10 +385,10 @@ def visualise(args: argparse.Namespace) -> None: for instance in labels: bbox = instance['bbox'] # Transform the predicted bounding boxes for the 300x300 image to the original image dimensions. - xmin = bbox[1] - ymin = bbox[0] - xmax = bbox[3] - ymax = bbox[2] + xmin = bbox[0] + ymin = bbox[1] + xmax = bbox[2] + ymax = bbox[3] color = colors[cats_to_classes[int(instance['coco_id'])]] label = f"{cats_to_names[int(instance['coco_id'])]}" current_axis.add_patch(