Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
fix: DIA-722: Fix exporting YOLO Bounding Boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantinKorotaev committed Jan 12, 2024
1 parent 6bde2a0 commit 208f4c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions label_studio_converter/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,9 @@ def convert_to_yolo(
continue

x, y, w, h = xywh
# stub to avoid width or height being more than 100%
w = min(w, 100)
h = min(h, 100)
annotations.append(
[
category_id,
Expand Down

0 comments on commit 208f4c6

Please sign in to comment.