facebookresearch / ov-seg

This is the official PyTorch implementation of the paper Open-Vocabulary Semantic Segmentation with Mask-adapted CLIP.
Other
689 stars 61 forks source link

Customer dataset error: ValueError: not enough values to unpack (expected 3, got 2) #30

Open JiayuanWang-JW opened 9 months ago

JiayuanWang-JW commented 9 months ago

Thanks for your fantastic work.

I encountered an issue when I changed the dataset to my own dataset. This error is not always present but sometimes happens when evaluating the model on val dataset.

I think the issue is my dataset includes empty mask which means this image does not include any object, only the background in the mask. The whole mask pixel value only has 255. But I am not sure.

image

Please let me know any suggestions about this issue. Thanks!