segmentation_models
segmentation_models copied to clipboard
How to change the depth of the UNet
The default depth of the UNet is 5, which is too deep for images with low resolution.
My question is how can I change the depth of the UNet? I have tried the n_upsample_blocks parameter, it did not work.
Thanks!
I also want to know.
How low is low resolution? It looks like you'd need to adjust n_upsample_blocks manually in the unet.py script as it is hardcoded. Then you'd need to adjust decoder_filters accordingly.
Why is it set to 5 in the first place?
Did anyone get a unet with depth of 4 to work?