Hi folks!
In the second programming assignment of Week 2, the function alpaca_model receives a function as a parameter. The default value for it is “data_augmenter()”
When I try to use the parameter in order to “apply data augmentation to the inputs” the test fails:
x = data_augmentation(inputs)
['Sequential', (None, 160, 160, 3), 0]
does not match the input value:
['Sequential', (None, None, 160, None), 0]
But if call the function directly it works just fine:
x = data_augmenter()(inputs)
All tests passed!
['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']
What am I missing here?