chrise96 / image-to-coco-json-converter

Convert segmentation RGB mask images to COCO JSON format
199 stars 57 forks source link

Keyerror '(1, 1, 1)' #16

Closed shounak873 closed 1 year ago

shounak873 commented 1 year ago

Hi, I have a mask with values "(2, 2, 2)": 0 which I added in the category_colors. Why is it giving me a key error of "(1, 1, 1)" ? The pixel values in my mask are either (0, 0, 0) for background or (2, 2, 2) for mask. Thanks