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

can not resolve protobin? #60

Closed
peterpaniff opened this issue Nov 13, 2018 · 2 comments
Closed

can not resolve protobin? #60

peterpaniff opened this issue Nov 13, 2018 · 2 comments

Comments

@peterpaniff
Copy link

I train a caffemodel on PC, i use the custom layer. _I test it on PC, It show the correct result. But when i move it to the android, it shows "ReadProtoFromBinaryFile(param_file, param) Failed to parse NetParameter file: /storage/emulated/0/Demo/model/test.protobin". Could you please give me some hint to solve it. Thank you very much.

@solrex
Copy link
Owner

solrex commented Nov 15, 2018

@peterpaniff You should add custom layers to caffe-mobile src/caffe/proto/caffe.proto. Then rebuild caffe-mobile to generate new pb.h/pb.cc and link into the new .so.

@peterpaniff
Copy link
Author

I solved it, the protobin generated by windows environment is different from those by linux. When I change the environment to linux, It works。

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