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

7*7池化的一个问题? #604

Closed
BBuf opened this issue Oct 8, 2018 · 2 comments
Closed

7*7池化的一个问题? #604

BBuf opened this issue Oct 8, 2018 · 2 comments

Comments

@BBuf
Copy link

BBuf commented Oct 8, 2018

为什么我把网络的最后一个全连接层(前一层的大小为77512)换成77平均池化并接,训练得到的结果在caffe预测没问题,在NCNN进行预测却得到错误的结果?并且尝试了44的平均池化发现结果正确。阅读了polling.cpp没有看出玄机,望解答,谢谢。

@BBuf
Copy link
Author

BBuf commented Oct 8, 2018

7乘以7乘以512,然后是4乘4

@nihui
Copy link
Member

nihui commented Feb 25, 2020

7*7 应该是可以的,你看看是否有padding或者什么别的参数
另外,也可以使用 global pooling 参数替代

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