Skip to content

Commit

Permalink
Merge pull request AlexeyAB#6642 from zk2ly/zk2ly-patch-1
Browse files Browse the repository at this point in the history
Update darknet_images.py
  • Loading branch information
AlexeyAB authored Sep 25, 2020
2 parents 622b175 + 05a88b2 commit 9db0ed9
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 @@ -140,7 +140,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 9db0ed9

Please sign in to comment.