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

Commit

Permalink
Fix the key error 'x' when export pascal VOC
Browse files Browse the repository at this point in the history
  • Loading branch information
Sishxo committed Sep 18, 2023
1 parent c78118f commit 9f1f941
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion label_studio_converter/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,10 @@ def create_child_node(doc, tag, attr, parent_node):
)
if key is None or len(bbox[key]) == 0:
continue


if 'x' not in bbox and bbox['format']=='rle' and bbox['type']=='RectangleLabels':
continue

name = bbox[key][0]
x = int(bbox['x'] / 100 * width)
y = int(bbox['y'] / 100 * height)
Expand Down

0 comments on commit 9f1f941

Please sign in to comment.