Tengine icon indicating copy to clipboard operation
Tengine copied to clipboard

Cannot run mtcnn(with caffemodel) example in v1.9.0

Open gunjupark opened this issue 6 years ago • 1 comments

device : Note 10+, Galaxy S9 Protobuf : prebuilt in tengine ACL : v19.05 Tengine : v1.9.0

When I run the mtcnn network using 'examples/mtcnn' example, Caffe Serializer cannot parsing prototxt and caffemodel.

I tried to debug this issue and I found where error occurred. but I cannot understand why error is occurred.

Error occurred in /tengine/tengine-module/plugin/serializer/caffe/caffe_serializer.cpp 's LoadTextFile & LoadBinaryFile function.

maybe something happened in the android system, when parsing proto with protobuf.

But I ran mtcnn example in Odroid N2 with same config (ACL 19.05, same protobuf, same tengine ver)

And most of all, I can run mtcnn example in Tengine v1.3.2 ... How can I fix this bug... please help

p.s. Can I get the tengine v1.8.0 source code? thank you

gunjupark avatar Dec 05 '19 12:12 gunjupark

Two methods for load caffe model.

  1. you can use convert_tool convert caffemodel to tenginemodel,and change your create_graph function. convert_tool:For version 1.12.0 👍 https://github.com/OAID/Tengine/releases/download/v1.12.0/convert_model_to_tm
    For Version 1.9.0 you need build by yourself. https://github.com/OAID/tengine-module/tree/0d6a9395df7d563b32066d0a0d26476a501fd99b After 1.3.2 the caffe serializer separate from libtengine.so.

LEMON-LM avatar Mar 19 '20 03:03 LEMON-LM