Convolutional Neural Networks: Application (1 week, Prog.Assesment (3/3))

Exercise 2 - convolutional_model. Have an error with dims:

“Input 0 of layer max_pooling2d_35 is incompatible with the layer: expected ndim=4, found ndim=5. Full shape received: [1, None, 64, 64, 8]”.

Try removing input_shape when declaring Z1

just like it was:

“Input 0 of layer max_pooling2d_37 is incompatible with the layer: expected ndim=4, found ndim=5. Full shape received: [1, None, 64, 64, 8]”

You will have to remove the "comma"s at every line. Here you’re using a different method to create a model, previously in the Sequential API, you passed the layers as a single list, thus you used "comma"s there. Here you’re adding one layer at a time.

1 Like

Thank you so much, buddy! I’ve lost my attention completely!

1 Like