Skip to content

Commit 233a109

Browse files
author
Matt Sokoloff
committed
annotation index starts at 1
1 parent cf7fa13 commit 233a109

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labelbox/data/serialization/coco/panoptic_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def process_label(label: Label, idx: Union[int, str], image_root, mask_root, all
6464
categories[annotation.name] = hash_category_name(annotation.name)
6565
if isinstance(annotation.value, Mask):
6666
segment, canvas = (mask_to_coco_segment_info(
67-
canvas, annotation, class_idx ,categories[annotation.name]))
67+
canvas, annotation, class_idx + 1 ,categories[annotation.name]))
6868
segments.append(segment)
6969
is_thing[annotation.name] = 0
7070

0 commit comments

Comments
 (0)