Skip to content

Commit

Permalink
Update yolov5.py (#3656)
Browse files Browse the repository at this point in the history
fix rect position bug.
  • Loading branch information
hariag committed Mar 27, 2022
1 parent 94beeaf commit 67f52ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/ncnn/model_zoo/yolov5.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ def __call__(self, img):
Detect_Object(
obj[5],
obj[4],
obj[0] / scale,
obj[1] / scale,
(obj[0] - (wpad / 2)) / scale,
(obj[1] - (hpad / 2)) / scale,
(obj[2] - obj[0]) / scale,
(obj[3] - obj[1]) / scale,
)
Expand Down

0 comments on commit 67f52ba

Please sign in to comment.