We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ca384c commit 699c22bCopy full SHA for 699c22b
labelbox/data/serialization/coco/instance_dataset.py
@@ -22,7 +22,7 @@ def mask_to_coco_object_annotation(annotation: ObjectAnnotation, annot_idx: int,
22
# If you need to support holes use the panoptic data format
23
shapely = annotation.value.shapely.simplify(1).buffer(0)
24
if shapely.is_empty:
25
- shapely = annotation.value.shapely.simplify(1).buffer(0.01)
+ shapely = annotation.value.shapely.simplify(1).buffer(0.1)
26
xmin, ymin, xmax, ymax = shapely.bounds
27
# Iterate over polygon once or multiple polygon for each item
28
area = shapely.area
0 commit comments