Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

monodepth demo issue

crisdeodates
Beginner
851 Views
I am having quite some trouble with the monodepth_demo of OpenVINO.
 
OpenVINO environment was set up by referring to this article: https://docs.openvinotoolkit.org/2020.4/index.html, ran the Verification Scripts to Verify the Installation part to confirm that everything is installed correctly and also set up the environment vars using "source /opt/intel/openvino/bin/setupvars.sh".
 
However, it produces the following output:
 
dev@devs:/opt/intel/openvino_2020.4.287/deployment_tools/open_model_zoo/demos/python_demos/monodepth_demo$ python monodepth_demo.py
Traceback (most recent call last):
  File "monodepth_demo.py", line 8, in <module>
    from openvino.inference_engine import IECore
  File "/opt/intel/openvino_2020.4.287/python/python3.6/openvino/inference_engine/__init__.py", line 1, in <module>
    from .ie_api import *
ImportError: dynamic module does not define init function (initie_api) 
dev@devs:/opt/intel/openvino_2020.4.287/deployment_tools/open_model_zoo/demos/python_demos/monodepth_demo$ sudo python monodepth_demo.py
Traceback (most recent call last):
  File "monodepth_demo.py", line 8, in <module>
    from openvino.inference_engine import IECore
ImportError: No module named openvino.inference_engine
Any advice that could help me here?
0 Kudos
5 Replies
crisdeodates
Beginner
845 Views

Found a workaround here (Thanks to @raymondlo84 for pointing this out): https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/New-3D-human-pose-estimation-demo/m-p/1183637

However, this leads to another issue as well, for the monodepth_demo:

dev@devs:/opt/intel/openvino_2020.4.287/deployment_tools/open_model_zoo/demos/python_demos/monodepth_demo$ python monodepth_demo.py 
Traceback (most recent call last):
  File "monodepth_demo.py", line 8, in <module>
    from openvino.inference_engine import IECore
  File "/opt/intel/openvino_2020.4.287/python/python3.6/openvino/inference_engine/__init__.py", line 1, in <module>
    from .ie_api import *
ImportError: dynamic module does not define init function (initie_api)

 

0 Kudos
Iffa_Intel
Moderator
832 Views

Greetings,


you need to load your model in the command.

Notice that if you type in command python3 monodepth_demo.py -h, you can see a list of command that can be used with this.


python3 monodepth_demo.py -m (your model) -i(your input) -l(cpu extension,this is optional) -d(device:cpu,gpu,etc)


These can be found on the official documentation: https://docs.openvinotoolkit.org/2020.4/omz_demos_python_demos_monodepth_demo_README.html


Sincerely,

Iffa


Sincerely,

Iffa


0 Kudos
crisdeodates
Beginner
805 Views

Thanks. Could you please give a direction as to where I could access a pre-trained model for trying the demo? 

0 Kudos
Vladimir_Dudnik
Employee
794 Views

Hi,

note, since the time you were looking at OpenVINO 2020.4, we have released the next version, OpenVINO 2021.1. It might make sense you to focus on the latest available OpenVINO release to get access to the latest optimizations and improvements.

Regarding your question, we provide Open Model Zoo as a component of OpenVINO product (and it also is available on github), it is collection of pre-trained models and associated demo applications which has been validated to work with corresponding OpenVINO release.

Please find set of pre-trained Intel and public models (including midasnet monodepth model) in OpenVINO online documentation.

Regards,
  Vladimir

0 Kudos
Iffa_Intel
Moderator
820 Views

Greetings,


Intel will no longer monitor this thread since this issue has been resolved. If you need any additional information from Intel, please submit a new question.


Sincerely,

Iffa


0 Kudos
Reply