Skip to content

Commit

Permalink
Update darknet_images.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zk2ly authored Sep 10, 2020
1 parent eb0272f commit 05a88b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion darknet_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 05a88b2

Please sign in to comment.