Community
cancel
Showing results for 
Search instead for 
Did you mean: 
crisdeodates
Beginner
300 Views

monodepth demo issue

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
294 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/...

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)

 

Iffa_Intel
Moderator
281 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


crisdeodates
Beginner
254 Views

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

Vladimir_Dudnik
Employee
243 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

Iffa_Intel
Moderator
269 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


Reply