Hi all
I keep getting the following error in the unet function:
Test failed
Expected value
['Conv2D', (None, 96, 128, 23), 759, 'same', 'linear', 'GlorotUniform']
does not match the input value:
['Conv2D', (None, 96, 128, 32), 1056, 'same', 'linear', 'GlorotUniform']
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-14-4a1225a2a898> in <module>
5
6 unet = unet_model((img_height, img_width, num_channels))
----> 7 comparator(summary(unet), outputs.unet_model_output)
/tf/W3A2/test_utils.py in comparator(learner, instructor)
17 "\n\n does not match the input value: \n\n",
18 colored(f"{a}", "red"))
---> 19 raise AssertionError("Error in test")
20 print(colored("All tests passed!", "green"))
21
AssertionError: Error in test
I thought I had the shapes figured out - the conv_block function takes only the first element of each previous block as input; the upsampling_block function takes the previous ublock6 and the second element of the cblock as input (trying to describe this in words and not post my code here ). I’ve been playing around with the filter of conv_block(cblock4…) a bit, because I wasn’t sure if it should be n_filters16 or n_filters8. But neither of them gets the correct result.
I’m not sure where the error might be and am grateful for any hints!
If you want me to post code for easier debugging, let me know