W2 assignment (alpaca), exercise 2, wrong input layer dimensions


I’m having this error on cell 35 (the model summary comparator):

Test failed
Expected value
[‘InputLayer’, [(None, 160, 160, 3)], 0]
does not match the input value:
[‘InputLayer’, [(1, 160, 160, 3)], 0]

I’m passing shape=input_shape as an argument to tf.keras.Input().
Any idea of what could be wrong?

Thanks a lot,

Your comment has nothing to do with this topic’s question. Can you please remove it and post it in a new topic? Thanks.

Hi fabio.borges,

Note that the InputLayer that is tested is from the base_model. So the error may be due to the way in which you apply data augmentation or perform data preprocessing. You can also try running all previous cells anew, in case you made changes to them or forgot to run them.

Hope this helps.