openvino 在 win10 使用错误 ImportError: cannot import name 'IEPlugin'

工具 kelly_zhang ⋅ 于 2个月前 ⋅ 最后回复由 kelly_zhang 2个月前 ⋅ 896 阅读
  1. 我已经按照官方教程https://docs.openvinotoolkit.org/latest/openvino_docs_install_guides_installing_openvino_windows.html 在 win10配置好openvino组件,并成功运行两个实例demo_squeezenet_download_convert_run.bat和demo_security_barrier_camera.bat。
  2. 将安装openvino文件夹下的python对应python版本(python3.6)中的openvino复制到python编译器中的Lib/site-packages文件夹下
  3. 运行pycharm中的项目,出现如下错误(已配置环境变量setupvars.bat)
    >>> from openvino.inference_engine import IEPlugin
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    ImportError: cannot import name 'IEPlugin'

请问各位,我的问题具体应该怎么解决?谢谢。

回复数量: 2
  • 你好,从2020的版本开始,IEPlugIn已经被弃用!请导入
    from openvino.inference_engine import IECore

    from gloomyfish

    2个月前 1
    • 您好,谢谢你的回复,我已经导入IECore,出现了新的问题,具体如下:
      Traceback (most recent call last):
      File "main.py", line 773, in
      main()
      File "main.py", line 769, in main
      driverMonitoring = MouseController(args)
      File "main.py", line 313, in init
      self.frame_processor = ProcessOnFrame(args)
      File "main.py", line 113, in init
      context.load_plugins(used_devices, args.cpu_lib, args.gpu_lib)
      File "C:\Users\Administrator.DESKTOP-TI37VJ6\Desktop\Computer-Pointer-Controller-master\utils\ie_module.py", line 13, in load_plugins
      plugins = { d: IECore(d) for d in devices }
      File "C:\Users\Administrator.DESKTOP-TI37VJ6\Desktop\Computer-Pointer-Controller-master\utils\ie_module.py", line 13, in
      plugins = { d: IECore(d) for d in devices }
      File "ie_api.pyx", line 225, in openvino.inference_engine.ie_api.IECore.cinit
      RuntimeError: Error loading XML file: CPU:1:0: File was not found
      我刚开始学习这方面的知识,有不懂的地方需要请教,谢谢您的耐心解答,对我是莫大的帮助。

      2个月前
您需要登陆以后才能留下评论!