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