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.
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:
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.
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”.
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.