I prepare data for semantic segmentation and have a problem. I use Keras Image Generator. I had no problem with binary segmentation. But now I have 7 classes, the images are fine, but the labels are returned in shape [no classes, w, h, 1 or 3] (grayscale or rgb).
To creating labels I used Pixel Annotation tool.
My labels have shape [w,h,1] range of values 0-7
Found 929 images belonging to 1 classes.
Found 929 images belonging to 1 classes.
Found 163 images belonging to 1 classes.
Found 163 images belonging to 1 classes
I check shape of image, or one layer of labels using this code:
Hi,
I prepare data for semantic segmentation and have a problem. I use Keras Image Generator. I had no problem with binary segmentation. But now I have 7 classes, the images are fine, but the labels are returned in shape [no classes, w, h, 1 or 3] (grayscale or rgb). To creating labels I used Pixel Annotation tool. My labels have shape [w,h,1] range of values 0-7
My code:
Return:
I check shape of image, or one layer of labels using this code:
Return: (8, 480, 640, 3) (480, 640, 3)
I expect a shape (480, 640, 8) (480, 640, 3). What am I doing wrong, how can I get this label?
Further code: