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

我在用您的caffemodel做测试的时候遇到了如下的问题,请问一下如何解决 #10

Open
gittigxuy opened this issue Aug 5, 2017 · 4 comments

Comments

@gittigxuy
Copy link

WARNING: Logging before InitGoogleLogging() is written to STDERR
W0805 10:26:38.720525 3101 _caffe.cpp:139] DEPRECATION WARNING - deprecated use of Python interface
W0805 10:26:38.720546 3101 _caffe.cpp:140] Use this instead (with the named "weights" parameter):
W0805 10:26:38.720549 3101 _caffe.cpp:142] Net('/home/xuy/桌面/code/python/caffe/Bag_gender_hair_classification/DenseNet_deploy_161.prototxt', 1, weights='/home/xuy/桌面/code/python/caffe/Bag_gender_hair_classification/model/DenseNet_161.caffemodel')
[libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 54:14: Message type "caffe.PoolingParameter" has no field named "ceil_mode".
F0805 10:26:38.740175 3101 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: /home/xuy/桌面/code/python/caffe/Bag_gender_hair_classification/DenseNet_deploy_161.prototxt
*** Check failure stack trace: ***

@shicai
Copy link
Owner

shicai commented Aug 5, 2017

#1

@Ariel-JUAN
Copy link

Hi, I install caffe using the anaconda, and I also have this error. But it looks like the the solution of #1 doesn't fit me, because I can't find the cpp files. Can you give me some advice? Thank you!

@shicai
Copy link
Owner

shicai commented Mar 6, 2018

....
it is a old caffe, please find pooling_layer.h ,pooling_layer.cpp, and caffe.proto to add those lines of code.

@LYC-vio
Copy link

LYC-vio commented Apr 10, 2020

@shicai Hi, I've just found that this problem could be solved by changing the "ceil_mode: false" line to "round_mode: FLOOR" in the prototxt file to fit the new version of Caffe. The new version of Caffe use round_mode: CEIL/FLOOR to choose which mode to use (default CEIL).

I have tested this modification on Densenet161 and it didn't seem to affect the performance.

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

4 participants