divamgupta / image-segmentation-keras

Implementation of Segnet, FCN, UNet , PSPNet and other models in Keras.
https://divamgupta.com/image-segmentation/2019/06/06/deep-learning-semantic-segmentation-keras.html
MIT License
2.89k stars 1.16k forks source link

Upsampling in Decoder of SegNet #236

Open ilteralp opened 4 years ago

ilteralp commented 4 years ago

Hi all, I was checking decoder implementation of SegNet and saw that Upsampling2D is used here. Keras provides bilinear and nearest upsampling for Upsampling2D according to the docs, so one of them must be used here. But SegNet decoder uses pooling indices computed in max-pooling, how are they provided here ? Thank you.

bobvo23 commented 3 years ago

Seems like the Upsampling2D is the standard upscale technique across models in this repository. For example, in the Unet architecture, Upsampling2D is employed instead of Transposed convolution.

You may refer to the author's answer for a similar question here https://github.com/divamgupta/image-segmentation-keras/issues/17