You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to do a color segmentation (I have grayscale image, and their labeled image with colors).
I changed mask_color_mode to "rgb", and num_class to 3 (because I have 3 differents colors) in data.py, and I changed input_size from 256,256,1 to 256,256,3 in model.py, but I still have errors..
"expected input_1 to have shape (None,256,256,3) but got array with shape (2,256,256,1).
I rune the debugger and, mask.shape gave me : (2,256,256,3) and omg.shape gave me : (2,256,256,1)
Any idea ? Thanks in advance :)
The text was updated successfully, but these errors were encountered:
I finally decided to go back to grasycale to reduce calculation in my network (I converted RGB to grayscale with nearest interpolation : the depth of the image was not useful).
But, you can bypass this problem by adding this modifications :
Hi, I'm trying to do a color segmentation (I have grayscale image, and their labeled image with colors).
I changed mask_color_mode to "rgb", and num_class to 3 (because I have 3 differents colors) in data.py, and I changed input_size from 256,256,1 to 256,256,3 in model.py, but I still have errors..
"expected input_1 to have shape (None,256,256,3) but got array with shape (2,256,256,1).
I rune the debugger and, mask.shape gave me : (2,256,256,3) and omg.shape gave me : (2,256,256,1)
Any idea ? Thanks in advance :)
The text was updated successfully, but these errors were encountered: