solrex/caffe-mobile

can not resolve protobin?

Closed this issue · 2 comments

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.

@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.

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