gkioxari / RstarCNN

R*CNN
Other
132 stars 53 forks source link

libprotobuf ERROR google/protobuf/text_format.cc:245 #2

Closed da2233 closed 8 years ago

da2233 commented 8 years ago

when I test a R_CNN classifier,I meet with a problem : [libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 401:21: Message type "caffe.LayerParameter" has no field named "roi_pooling_param". WARNING: Logging before InitGoogleLogging() is written to STDERR F1113 15:08:06.049188 13991 upgrade_proto.cpp:928] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: models/VGG16RstarCNN/test.prototxt ** Check failure stack trace: *** Aborted (core dumped)

I had test with mnist dataset and it does not occur any error. I haven't any clue to solve this problem.

gkioxari commented 8 years ago

I suspect that you are not using the caffe submodule. In src/caffe/proto/caffe.proto you should be able to see that roi_pooling_param is registered (l.380). Make sure that this is the caffe you're using when running your models.

da2233 commented 8 years ago

OK. I see. Thanks a lot! It's seems that the master branch doesn't define the roi_pooling_param,but the others define it.

jiaqun123 commented 7 years ago

hi,i I encountered the same problem, can you help me. [libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter:54 :17 Message type "caffe.LayerParameter" has no field named "sparse_ratio". [6189 upgrade_proto.cpp:79]check failed:ReadPorotoFromTextFile(param_file,param)failed to parse NetParameter file: examples/mnist/lenet_train_test_compression_stage1.prototxt image I checked a lot of times and found that the parameters for the above two problems are set correctly,and I have, wether it is the problem that i have two caffe. Hope to get your help.