Week 1 Convolution_model_Application ValueError: Input 0 of layer max_pooling2d_7 is incompatible with the layer: expected ndim=4, found ndim=5. Full shape received: [1, None, 64, 64, 8]



I am getting this error
ValueError: Input 0 of layer max_pooling2d_7 is incompatible with the layer: expected ndim=4, found ndim=5. Full shape received: [1, None, 64, 64, 8]

don’t know how to solve.

I believe this is an exercise for the Functional API.

You learned the Sequential API as the happyModel. The Sequential API is actually a list of layers which should be ‘comma’ separated list.
But, what you are working now, is the Functional API that you do not need to create a list.
So, the first step is to remove “comma” appended to each layer for this Functional API exercise.

1 Like

thank you so much
it worked