in def unet_model there seems to be quite a lot of ambiguities regarding the explanations and hints:
-
expanding path (decoding) here is the explanation:
Note that you must use the second element of the contractive block before the max pooling layer.
We have the same hint in coding block:# Note that you must use the second element of the contractive block i.e before the maxpooling layer.I thought we only employ max pooling in expanding block, i.e., decoding!
Where exactly is the max pooling layer in upsampling path? Is it confusing for all or am I missing something?! -
after
cblock1 = conv_block(inputs, n_filters), there is this hint:# Double the number of filters at each new step. if we follow this hint pattern, I believe we should end up with16*n_filtersforcblock5and accordingly we start with16*n_filtersinublock6and NOT8*n_filtersas given in the explanation text! -
in upsampling block, it would have been nice to provide a hint in which we should follow
ublockXasexpansive_inputandcblockYascontractive_inputstarting fromublock7to avoid error for tensor size.
Cheers,
