Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Pooling formula seems wrong to cause Googlenetv1 not working #3457

Closed
zhenlinluo opened this issue Oct 6, 2016 · 7 comments
Closed

Pooling formula seems wrong to cause Googlenetv1 not working #3457

zhenlinluo opened this issue Oct 6, 2016 · 7 comments

Comments

@zhenlinluo
Copy link
Contributor

zhenlinluo commented Oct 6, 2016

If trying https://github.com/soumith/convnet-benchmarks/blob/master/mxnet/gnetv1.py using mxnet, the error report
mxnet.base.MXNetError: InferShape Error in pooling4: [13:02:47] src/operator/./pooling-inl.h:200: Check failed: param_.kernel[0] <= dshape[2] + 2 * param_.pad[0] && param_.kernel[1] <= dshape[3] + 2 * param_.pad[1] kernel size exceed input

I think the reason is that the pooling formula in Mxnet may be wrong? If change the formula to
oshape[2] = 1 + (dshape[2] + 2 * param_.pad[0] - param_.kernel[0] + param_.stride[0] - 1) / param_.stride[0];
Then it run well.

Are you aware of this issue?

@sxjscience
Copy link
Member

Yes, we are trying to make the pooling compatible to Caffe by adding a new option. It should be fixed after #3438 gets merged.

@zhenlinluo
Copy link
Contributor Author

I don't think these two things are the same thing. Since #3458 is not changing the formula. Maybe I should submit a separate PR for this?

@sxjscience
Copy link
Member

@zhenlinluo We have this PR (#3392), which is included in #3438.

@piiswrong
Copy link
Contributor

@zhenlinluo btw we have dmlc/mxnet-deepmark for benchmarking

@zhenlinluo
Copy link
Contributor Author

I try #3458 using convnet gnetv1 but it is stil failed. In deepmark, there have no googlenetv1 symbol yet. @sxjscience @piiswrong Did you test it in your side? Can you share your gnetv1 symbol?

https://raw.githubusercontent.com/soumith/convnet-benchmarks/master/mxnet/gnetv1.py

@sxjscience
Copy link
Member

@zhenlinluo Could you help verify if it works after applying the changes described in #3392 and use pooling_convention='full' for all the pooling layers?

@yajiedesign
Copy link
Contributor

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!

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

No branches or pull requests

4 participants