preddy5 / segnet

A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation
http://preddy5.github.io/2016/03/08/segnet-post.html
205 stars 106 forks source link

UpSampling2D vs UnPooling2D #10

Closed mpariente closed 7 years ago

mpariente commented 7 years ago

Hey, thanks for the example!

I found the code on your blog post first and there you're using the custom layer UnPooling2D but here you define it as well but then use the build-in UpSampling2D.

Do they perform exactly the same operation? Why did you change? I understand the code for UnPooling2D but I'm a little bit confused by the code of UpSampling2D..

Thanks in advance

preddy5 commented 7 years ago

Hey @pianomanu, at the time I was coding Keras UpSampling2D layer was buggy so I wrote my own layer, later when the bug was fixed I changed the code to use UpSampling2D layer.

mpariente commented 7 years ago

Thanks for the quick answer :) I'll use UpSampling2D then!