我已按照以下链接中的说明安装并验证了OpenVINO的安装: https ://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_linux.html
我使用的编辑器和技术是:Visual Studio Code、Go Programming Language和AWS Lambda
我正在尝试加载预训练的深度学习模型及其配置:frozen_inference_graph.bin,frozen_inference_graph.xml
这是它的代码:
net := gocv.ReadNet(localModelPath, localModelConfigPath)
if net.Empty() {
glog.Errorf("Error occurred while trying to read DNN model and its configuration from %v. Error message - %v", localModelPath, err)
return err
}
defer net.Close()
net.SetPreferableBackend(gocv.NetBackendDefault)
net.SetPreferableTarget(gocv.NetTargetCPU)
每当我尝试调试程序时,在尝试执行gocv.ReadNet函数后,我都会收到以下错误消息:
/home/jovana/go/src/pipeline/lambda/inferenceLambda/__debug_bin: symbol lookup error: /home/jovana/go/src/pipeline/lambda/inferenceLambda/__debug_bin: undefined symbol: _ZN2cv3dnn14dnn4_v201901227readNetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_S9_
请注意,go/src/pipeline/lambda/inferenceLambda是我要调试的 main.go 脚本的路径。
当我尝试运行main.go脚本时,我得到:
/tmp/go-build091433297/b001/exe/main: symbol lookup error: /tmp/go-build091433297/b001/exe/main: undefined symbol: _ZN2cv3dnn14dnn4_v201901227readNetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_S9_
老实说,我不知道这条消息意味着什么以及从哪里开始修复它。请帮忙。