Week-2 Assignment-2 Alpaca model

I am getting an error like this. I think that the sequential layerand the two tensorflowoplayer are missing, even though my code seems perfectly fine. Can someone please help regarding this.

Test failed
Expected value

[‘Sequential’, (None, 160, 160, 3), 0]

does not match the input value:

[‘Functional’, (None, 5, 5, 1280), 2257984]

AssertionError Traceback (most recent call last)
10 [‘Dense’, (None, 1), 1281, ‘linear’]] #linear is the default activation
—> 12 comparator(summary(model2), alpaca_summary)
14 for layer in summary(model2):

~/work/W2A2/test_utils.py in comparator(learner, instructor)
19 “\n\n does not match the input value: \n\n”,
20 colored(f"{a}", “red”))
—> 21 raise AssertionError(“Error in test”)
22 print(colored(“All tests passed!”, “green”))

AssertionError: Error in test

Hey, are you sure you’ve included the data augmentation layer after the input?

1 Like

Yes I have put the data augmentation layer.
This is my code.

[code removed]

Could you dm me the whole function? (I’ve removed your code here)

1 Like

Pointers for others stuck: Check if you’re passing the preprocessed inputs into the base model.

1 Like