Reputation: 3
making a model for image segmentation using keras in python but getting error at first layer which is Conv2D. In code this line is as:
model.add(Conv2D(32,kernel_size=(3, 3),padding='same',input_shape=(1,500,366,3)))
but getting following error:
ValueError: Input 0 is incompatible with layer conv2d_1: expected ndim=4, found ndim=5
I am making this model initially for one image.
Upvotes: 0
Views: 96
Reputation: 8527
try removing your first dimension like this:
model.add(Conv2D(32,kernel_size=(3, 3),padding='same',input_shape=(500,366,3)))
Upvotes: 1