Tencent / FeatherCNN

FeatherCNN is a high performance inference engine for convolutional neural networks.
1.21k stars 284 forks source link

Model convert error - libprotobuf #42

Open delemelo-mobica opened 5 years ago

delemelo-mobica commented 5 years ago

I am trying to convert some caffe models (prototxt / caffe model upgraded) into feathermodel using tools/feather_convert_caffe, and hit this error.

[libprotobuf FATAL /usr/local/include/google/protobuf/repeated_field.h:1514] CHECK failed: (index) < (currentsize): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) < (currentsize): Aborted (core dumped)

Note: I get this error when trying to convert any converting any caffe model . Also, I am using the experimental branch ( commit - 5023303ac2d4d76e81ee7aa28528224d8706807e ).

Please, do you have any ideas for a solution?

Also, is there a input file for 3x227x227? This is required for some models like AlexNet. Currently, there is only on input file - input_3x224x224.txt. Please, how is this file created.?

delemelo-mobica commented 5 years ago

The issue with the model conversion issue was related to a missing caffe model file.

For example, in the line below, if the file mobilenet.caffemodel does not exist the above error comes up. _./feather_convertcaffe ./mobilenet.prototxt ./mobilenet.caffemodel ./mobilenet

It would be nice to update the conversion tool to terminate and probably notify the user that a file is missing. This would be better than running without adequate inputs and then failing with the error above.

Also,regarding the input file for 3x227x227 (AlexNet)? Is there a tool available for creating the input files?