From 05a88b261439c70565cd6a862dd7fa5f7382f221 Mon Sep 17 00:00:00 2001 From: zk2ly <56818387+zk2ly@users.noreply.github.com> Date: Thu, 10 Sep 2020 15:28:21 +0800 Subject: [PATCH] Update darknet_images.py --- darknet_images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/darknet_images.py b/darknet_images.py index 471a99ba75b..113489e2340 100644 --- a/darknet_images.py +++ b/darknet_images.py @@ -139,7 +139,7 @@ def convert2relative(image, bbox): YOLO format use relative coordinates for annotation """ x, y, w, h = bbox - width, height, _ = image.shape + height, width, _ = image.shape return x/width, y/height, w/width, h/height