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.
6404 Discussions

安装Post-Training Optimization工具报错

yujf
Beginner
502 Views

在使用openvino的量化工具前需要先配置下环境。
在~/intel/openvino/deployment_tools/open_model_zoo/tools/accuracy_checker目录下执行以下命令:
python setup.py install

在~/intel/openvino/deployment_tools/tools/post_training_optimization_toolkit目录下执行以下命令:
python setup.py install

配置好环境后,在终端中就可以直接使用pot指令(在后面量化过程中会使用到):
pot -c <path_to_config_file>

我按照步骤环境配置好了,但是在检查pot是否可用时,输入pot -h,出现了错误ModuleNotFoundError: No module named‘from mo.graph.graph import Node’,在我将mo文件夹复制过去之后出现了ModuleNotFoundError: No module named 'ConfigParser',直接pip安装ConfigParser也没用

yujf_1-1659496267381.png

有没有遇到一样问题的好兄弟能够说一下怎么解决

 

Labels (1)
0 Kudos
2 Replies
Peh_Intel
Moderator
478 Views

Hi Yujf,

 

Thanks for reaching out to us.

 

First of all, you’re getting the error: “ModuleNotFoundError: No module named‘from mo.graph.graph import Node” due to you do not update the OpenVINO environment variables (run setupvars.bat). Copying the mo folder is not a proper way, hence results in the next error.

 

I would suggest you to delete all the copied mo folder and just run setupvars.bat.

 

 

Regards,

Peh

 

0 Kudos
Peh_Intel
Moderator
460 Views

Hi Yujf,


This thread will no longer be monitored since we have provided a solution. If you need any additional information from Intel, please submit a new question. 



Regards,

Peh


0 Kudos
Reply