openvino运行demo_squeezenet_download_convert_run.sh demo时报错

环境:运行环境在docker容器中,推荐将dockerfile中的基础镜像更换为vnc相关镜像(官方提供的第二个demo https://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_linux.html#run-the-demos需要GUI支持)。

# docker镜像地址:https://hub.docker.com/r/cortexica/openvino/dockerfile

 

下面是报错详细:
 

###################################################

Run Inference Engine classification sample

Run ./classification_sample_async -d CPU -i /opt/intel/openvino/deployment_tools/demo/car.png -m /root/openvino_models/ir/FP16//public/squeezenet1.1/squeezenet1.1.xml

[ INFO ] InferenceEngine:
        API version ............ 2.1
        Build .................. custom_releases/2019/R3_cb6cad9663aea3d282e0e8b3e0bf359df665d5d0
        Description ....... API
[ INFO ] Parsing input parameters
[ INFO ] Parsing input parameters
[ INFO ] Files were added: 1
[ INFO ]     /opt/intel/openvino/deployment_tools/demo/car.png
[ INFO ] Creating Inference Engine
        CPU
        MKLDNNPlugin version ......... 2.1
        Build ........... 30677

[ INFO ] Loading network files
[ ERROR ] Error loading xmlfile: /root/openvino_models/ir/FP16//public/squeezenet1.1/squeezenet1.1.xml, File was not found at line: 1 pos: 0
Error on or near line 239; exiting with status 1

由于第一次运行失败,第一次失败日志没来及保存就被缓存覆盖。第一次失败的修复命令是:

pip3 install networkx==2.3

# 参考详见链接:https://forums.intel.com/s/question/0D50P00004Tweig/error-loading-xmlfile-cuserstwodocumentsintelopenvinoopenvinomodelsirfp16publicsqueezenet11squeezenet11xml-file-was-not-found-at-line-1-pos-0i-want-to-know-how-to-fix-this-bug?language=en_US

第二次报错为本文顶部错误信息,原因是由于第一次运行失败,产生了/root/openvino_models/ir/FP16//public/squeezenet1.1目录但没有生成目录下的文件,导致第二次判断失误,故删除此目录即可。

rm -rf /root/openvino_models/ir/FP16//public/squeezenet1.1

再次运行即可看到demo运行成功:

Top 10 results:

Image /opt/intel/openvino/deployment_tools/demo/car.png

classid probability label
------- ----------- -----
817     0.8364178   sports car, sport car
511     0.0945683   convertible
479     0.0419195   car wheel
751     0.0091233   racer, race car, racing car
436     0.0068038   beach wagon, station wagon, wagon, estate car, beach waggon, station waggon, waggon
656     0.0037315   minivan
586     0.0025940   half track
717     0.0016044   pickup, pickup truck
864     0.0012045   tow truck, tow car, wrecker
581     0.0005833   grille, radiator grille

[ INFO ] Execution successful

[ INFO ] This sample is an API example, for any performance measurements please use the dedicated benchmark_app tool


###################################################

Demo completed successfully.

 

  • 3
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值