preddy5 / segnet

A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation

Home Page:http://preddy5.github.io/2016/03/08/segnet-post.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UpSampling2D vs UnPooling2D

mpariente opened this issue · comments

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

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.

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