Hi, I have a problem with combining the U-net model and I dont know why. I passed all the test for functions before so I think they should be okay.

For the first conv_block I used inputs and n_filters, for second block I used the first element ([0]) of the block 1 and n_filters, for the third block first element of the block 2 and 2*n_filters and so on. For the 4th block I added dropout_prob 0.3 ( here is 4*n_filters) . the 5th block has dropout_prob, 8*filters and max_pooling false. ublock6 is programmed as requested and for other ublocks I use the output of the previous ublock as expansive input and second element ([1]) of the corresponding contractive block output (ublock7 = upsampling_block(ublock6, cblock3[1],4*n_filters)). the 9th layer is already stated and the 10th is Conv2D(n_classes, 1, padding=‘same’)(conv9)

I have no idea what could be wrong I tried to change the multiplication of n_filters so that there would be 2*filters in 2nd conv_block and the same with ublocks but I still get the error

Test failed

Expected value

[‘Conv2D’, (None, 48, 64, 64), 18496, ‘same’, ‘relu’, ‘HeNormal’]

does not match the input value:

[‘Conv2D’, (None, 48, 64, 32), 9248, ‘same’, ‘relu’, ‘HeNormal’]

Can you please help me what could be wrong? Thank you.