Valueerror: Input 0 Of Layer Sequential Is Incompatible With The Layer: Expected Axis -1 Of Input Shape To Have Value 1
Title : ValueError: Input 0 of layer sequential is incompatible with the layer: expected axis -1 of input shape to have value 1 but received input with shape [None, None, None, 3]
Solution 1:
Issue is with this line
model.add(Conv2D(NUMB_FILTER_L1, (5, 5),
input_shape=input_shape_val,
padding='same', name='input_tensor'))
If your dataset is of RGB images, input_shape should have 3 channels something like
input_shape =(img_width, img_height, 3)
If in case Grayscale image, use channel value as 1
Post a Comment for "Valueerror: Input 0 Of Layer Sequential Is Incompatible With The Layer: Expected Axis -1 Of Input Shape To Have Value 1"