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

DL Workbench error

resh
Beginner
343 Views

reshu@reshu-GL63-8RC:/opt/intel/openvino_2021.3.394/deployment_tools/tools/benchmark_tool$ python benchmark_app.py -m /home/reshu/Desktop/fp16/saved_model.xml -d CPU
Traceback (most recent call last):
File "benchmark_app.py", line 20, in <module>
from openvino.tools.benchmark.main import main
ImportError: No module named openvino.tools.benchmark.main

 

How to resolve this? I have already added the paths in .bashrc.

0 Kudos
4 Replies
artyom_tugaryov
Employee
288 Views

Hello @resh 

Thank you for your question!

I guess you didn't initialize the OpenVINO environment in the terminal session. 

To initialize the environment you have to use the following command:

source /opt/intel/openvino_2021/bin/setupvars.sh

This command sets all necessary environment variables like LD_LIBRARY_PATH, PYTHONPATH, and e.t.c.

 

Please, try this command and let us know if you have any questions.

 

Regards,

Artyom Tugarev

Peh_Intel
Moderator
260 Views

Hello resh,


Thanks for reaching out to us.


I also noticed that you used “python benchmark_app.py” in your command. By default, if “python” used in the command, it will use Python version 2.x. Hence, you should use “python3 benchmark_app.py”.



Regards,

Peh


resh
Beginner
251 Views

Thanks, The issue is resolved now!

Peh_Intel
Moderator
232 Views

Hello resh,


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



Regards,

Peh


Reply