Skip to content

Commit 699c22b

Browse files
committed
update to the buffer
1 parent 1ca384c commit 699c22b

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
@@ -22,7 +22,7 @@ def mask_to_coco_object_annotation(annotation: ObjectAnnotation, annot_idx: int,
2222
# If you need to support holes use the panoptic data format
2323
shapely = annotation.value.shapely.simplify(1).buffer(0)
2424
if shapely.is_empty:
25-
shapely = annotation.value.shapely.simplify(1).buffer(0.01)
25+
shapely = annotation.value.shapely.simplify(1).buffer(0.1)
2626
xmin, ymin, xmax, ymax = shapely.bounds
2727
# Iterate over polygon once or multiple polygon for each item
2828
area = shapely.area

0 commit comments

Comments
 (0)