Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max pooling is directly followed by upsampling #16

Open
jackaceuser opened this issue Aug 22, 2018 · 1 comment
Open

Max pooling is directly followed by upsampling #16

jackaceuser opened this issue Aug 22, 2018 · 1 comment

Comments

@jackaceuser
Copy link

The network's structure contains max pooling immediately followed by upsampling.
Maybe I'm missing something but it doesn't seem to make any sense. And just removing it should improved results.

local pool7 = nn.SpatialMaxPooling(2,2,2,2)(conv7_relu)
local unpool00 = nn.SpatialUpSamplingNearest(2)(pool7)

Is there something specific that this structure addresses?

@zouchuhang
Copy link
Owner

@jackaceuser For perspective images with type prediction, the pooling operation is needed for shrinking down the parameters. But I agree with you for general case in solving panoramic/perspective images the max pooling + unsampling is a bit redundant. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants