Skip to content

Commit 0a5a8aa

Browse files
committed
update to shapely geoms
1 parent bb1adab commit 0a5a8aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labelbox/data/serialization/coco/instance_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def mask_to_coco_object_annotation(
3636
image_id=image_id,
3737
category_id=category_id,
3838
segmentation=[
39-
np.array(s.exterior.coords).ravel().tolist() for s in shapely
39+
np.array(s.exterior.coords).ravel().tolist() for s in shapely.geoms
4040
],
4141
area=area,
4242
bbox=[xmin, ymin, xmax - xmin, ymax - ymin],

0 commit comments

Comments
 (0)