Week 3 - Unet Error

Hi,

In the Unet Model, I discovered this message error. Where does it come from ? Which lines of code is corrupted ? :

Test failed
Expected value

[‘Conv2D’, (None, 12, 16, 256), 295168, ‘same’, ‘relu’, ‘HeNormal’]

does not match the input value:

[‘Conv2D’, (None, 12, 16, 192), 221376, ‘same’, ‘relu’, ‘HeNormal’]

AssertionError Traceback (most recent call last)
Input In [15], in <cell line: 7>()
4 num_channels = 3
6 unet = unet_model((img_height, img_width, num_channels))
----> 7 comparator(summary(unet), outputs.unet_model_output)

File /tf/W3A2/test_utils.py:21, in comparator(learner, instructor)
16 if tuple(a) != tuple(b):
17 print(colored(“Test failed”, attrs=[‘bold’]),
18 “\n Expected value \n\n”, colored(f"{b}“, “green”),
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

Thanks for any helps !
Cyrille

1 Like

It means the input size and the number of parameters is not correct.

1 Like

Yes.
I got my mistake. It was about the number of filters.
Instead of taping:

{mentor edit: code removed. The error involved an incorrect multiplier value}

Thank you

2 Likes