PASCAL VOC2012 Segmentation, Classes

Hi everyone! I am trying to use PASCAL VOC 2012 Segmentation DataSet but i am keep getting device-side assert triggered error.
Same error with :
https://forums.fast.ai/t/error-when-trying-pascal-voc-2012-segmentation/42886
and like the @bdubreu said, it seems to be about the class labels are not being (0, 1, 2 …) like in camvid something different. Did anyone find a solution for this, or have you come across something similar?
I would appreciate any help. I am struggling with creating a databunch for like 3-4 hours so, i really need help :cry: Thanks! :smiley:

I solved it by coming across to this:
https://github.com/keyurparalkar/Semantic-Segmentation-with-UNETs/blob/master/FASTai_UNET.ipynb

just added the argument:
convert_mode=‘P’
to the open method of class SegmentationLabelList

1 Like

your solution also worked for me, thanks!