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

Correctly apply padding to pooling layers when upgrading from V0 #762

Merged
merged 1 commit into from
Jul 22, 2014

Conversation

rbgirshick
Copy link
Contributor

The pooling layer supports padding for average and max pooling, however the V0 prototext upgrade script doesn't correctly translate pooling layers with padding when upgrading. This fixes that bug.

Currently there is no check that the pooling layer being upgraded uses average or max pooling. I figure it's best to translate the prototxt as is and let downstream operations catch that error (also, in the future padding may be supported for other pooling operations).

@jeffdonahue
Copy link
Contributor

Thanks Ross. I wasn't upgrading pooling layers when I wrote that because at the time the PoolingLayer didn't support padding. Will merge when Travis passes.

@rbgirshick
Copy link
Contributor Author

Makes sense. Thanks!

On Tue, Jul 22, 2014 at 1:04 PM, Jeff Donahue notifications@github.com
wrote:

Thanks Ross. I wasn't upgrading pooling layers when I wrote that because
at the time the PoolingLayer didn't support padding. Will merge when Travis
passes.


Reply to this email directly or view it on GitHub
#762 (comment).

http://www.cs.berkeley.edu/~rbg/

jeffdonahue added a commit that referenced this pull request Jul 22, 2014
Correctly apply padding to pooling layers when upgrading from V0
@jeffdonahue jeffdonahue merged commit c4e6b48 into BVLC:dev Jul 22, 2014
@rbgirshick rbgirshick deleted the upgrade-pad-pooling-layers branch July 23, 2014 03:18
mitmul pushed a commit to mitmul/caffe that referenced this pull request Sep 30, 2014
Correctly apply padding to pooling layers when upgrading from V0
RazvanRanca pushed a commit to RazvanRanca/caffe that referenced this pull request Nov 4, 2014
Correctly apply padding to pooling layers when upgrading from V0
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

Successfully merging this pull request may close these issues.

2 participants