Skip to content

Commit

Permalink
fix bbox shift (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoLostanlen authored Jul 6, 2024
1 parent d4fddfe commit 9fea588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def process_bbox(input_str):
width = x1 - x0
height = y1 - y0

new_boxes.append([int(x0 * 100), int(y0 * 100), int(width * 100), int(height * 100)])
new_boxes.append([x0 * 100, y0 * 100, width * 100, height * 100])

return new_boxes

Expand Down

0 comments on commit 9fea588

Please sign in to comment.