i figured out point that we have to provide whole ublock like
ublock6 = upsampling_block(cblock5[0], cblock4[1], n_filters8)
ublock7 = upsampling_block(ublock6, cblock3[1], n_filters4)
ublock8 = upsampling_block(ublock7, cblock2[1], n_filters2)
ublock9 = upsampling_block(ublock8, cblock1[1], n_filters1)
its showing error :Expected value
[‘Conv2DTranspose’, (None, 24, 32, 128), 295040]
does not match the input value:
[‘Conv2D’, (None, 12, 16, 32), 73760, ‘same’, ‘relu’, ‘HeNormal’]
AssertionError Traceback (most recent call last)
in
5
6 unet = unet_model((img_height, img_width, num_channels))
----> 7 comparator(summary(unet), outputs.unet_model_output)
~/work/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