Skip to content

Commit 7382ac8

Browse files
committed
fix: stop setting mask for non-mask shapes
1 parent d58de6d commit 7382ac8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

labelme/_automation/bbox_from_text.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ def get_shapes_from_bboxes(
124124
[xmin, ymin],
125125
]
126126
else:
127-
mask = masks[i]
128-
points = compute_polygon_from_mask(mask=mask).tolist()
127+
points = compute_polygon_from_mask(mask=masks[i]).tolist()
129128
elif shape_type == "mask":
130129
xmin = int(xmin)
131130
ymin = int(ymin)

0 commit comments

Comments
 (0)