C4W3-Programming Assignement- Image Segmentation with U-Net - Failure in unet_model()

Hi Team,
I have passed conv_block and upsampling_block tests.
To build the model, referring to inline instructions, I have added Contracting and Expanding path.

for contracting path by chaining the first element of the output of each block to be the input of the next conv_block,
like-conv_block(inputs = cblock1[0], n_filters =n_filters*2)

for expanding path, passing upasampling_block and chaining the output of the previous block as expansive_input and the corresponding contractive block output,
like- ublock7 = upsampling_block(ublock6, cblock3[1], n_filters * 4)

Am not sure what is the mistake or error that am doing here. Kindly please help me understand. Thanks

Your code seems to use the correct technique.
The simplest mistake in this assignment is if your n_filters multiplers are not the correct sequence.

Solved it. Error was in conv_block(). Thanks for helping me out.