C4W2 assignment

Transfer_learning_with_MobileNet_v1 I am three layers less in the output.

AssertionError: The number of layers in the model is incorrect. Expected: 8 Found: 5

Not sure why it is missed.
My output is :slight_smile:
[[‘InputLayer’, [(None, 160, 160, 3)], 0],
[‘Functional’, (None, 5, 5, 1280), 2257984],
[‘GlobalAveragePooling2D’, (None, 1280), 0],
[‘Dropout’, (None, 1280), 0, 0.2],
[‘Dense’, (None, 1), 1281, ‘linear’]]

but the expected output is
[‘InputLayer’, [(None, 160, 160, 3)], 0],
[‘Sequential’, (None, 160, 160, 3), 0],
[‘TensorFlowOpLayer’, [(None, 160, 160, 3)], 0],
[‘TensorFlowOpLayer’, [(None, 160, 160, 3)], 0],
[‘Functional’, (None, 5, 5, 1280), 2257984],
[‘GlobalAveragePooling2D’, (None, 1280), 0],
[‘Dropout’, (None, 1280), 0, 0.2],
[‘Dense’, (None, 1), 1281, ‘linear’]

2nd, 3rd, and 4th layers are missing from my output. Could you please help with this?

Please see this user guide and move your post to the right topic.

It looks like you omitted the data augmentation portion of the logic. Please have another careful look at the instructions. It’s also possible that you wrote the logic, but wrote it incorrectly in such a way that it is not actually included in the compute graph.

1 Like