Rsnet 50 Ex3 Week 2

I am getting the following error

not suppose to attach code.

Test failed

Expected value

[‘Conv2D’, (None, 8, 8, 128), 32896, ‘valid’, ‘linear’, ‘GlorotUniform’]

does not match the input value:

[‘Conv2D’, (None, 8, 8, 28), 7196, ‘valid’, ‘linear’, ‘GlorotUniform’]

AssertionError Traceback (most recent call last)
3 model = ResNet50(input_shape = (64, 64, 3), classes = 6)
----> 5 comparator(summary(model), ResNet50_summary)

/tf/W2A1/ in comparator(learner, instructor)
21 “\n\n does not match the input value: \n\n”,
22 colored(f"{a}", “red”))
—> 23 raise AssertionError(“Error in test”)
24 print(colored(“All tests passed!”, “green”))

AssertionError: Error in test

It looks like the number of channels is incorrect in one of the layers. You can figure out which one it is by comparing the output of the layers of your model with the standard one they are comparing against.

Thanks. got it sorted out

1 Like