test-mobilenet load不了模型
Created by: vincentXiyu
PaddleMobile版本:develop CommitID: 666045db
按照下面文档编译、复现 https://github.com/PaddlePaddle/paddle-mobile/blob/develop/doc/development_android.md (docker实现,docker实现时也有坑,需要直接用./build.sh android, 建议把文档更新一下。)
1、测试test-mobilenet时,利用下面代码 paddle_mobile.Load(std::string("../models/mobilenet") , optimize, false,1, true)
会报下列错误: terminating with uncaught exception of type std::out_of_range: unordered_map::at: key not found /usr/local/google/buildbot/src/android/ndk-release-r17/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:73: abort_message: assertion "terminating with uncaught exception of type std::out_of_range: unordered_map::at: key not found" failed Aborted
2、尝试调用其他模型,比如说yolo的模型,他们的模型数据整体保存为model和params, 利用下面代码进行模型load: paddle_mobile.Load(std::string("../models/yolo") + "/model", std::string("../models/yolo") + "/params", true, false);
会报下面错误: terminating with uncaught exception of type paddle_mobile::PaddleMobileException: paddle mobile C++ Exception: | paddle-mobile enforce | [in file] : /paddle-mobile/src/operators/fusion_conv_add_bn_relu_op.cpp | [on line] : 35 | [detail] : ConvParam is not suitable
/usr/local/google/buildbot/src/android/ndk-release-r17/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:73: abort_message: assertion "terminating with uncaught exception of type paddle_mobile::PaddleMobileException: paddle mobile C++ Exception: | paddle-mobile enforce | [in file] : /paddle-mobile/src/operators/fusion_conv_add_bn_relu_op.cpp | [on line] : 35 | [detail] : ConvParam is not suitable " failed Aborted