cubert-hyperspectral / cuvis.ai

Apache License 2.0
1 stars 0 forks source link

Cuvis data Labels2TV does not accept segmentation in RLE format #37

Closed muehlbauer-cubert closed 4 months ago

muehlbauer-cubert commented 4 months ago

COCO expects RLE format as segmentation if there are multiple objects of one label in an image.

The data converter to TV does not accept this format.

post_it_segmentation_annotations.json

with open('jsonfile') as f:
    d = json.load(f)
    for ann_id, ann in enumerate(d['annotations']):
        img = d['images'][ann_id]
        size = img["height"], img["width"]
        test = Labels2TV.convert_COCO2TV(ann, size)
manke-cubert commented 4 months ago

Fixed by https://github.com/cubert-hyperspectral/cuvis.ai/pull/40