【问题】每次都要手动运行OpenVINO自带的 C:\Program Files (x86)\Intel\openvino_2021.3.394\bin\setupvars.bat来初始化OpenVINO运行时环境,有没有一劳永逸的办法?
【解决方式】设置Windows10 环境变量path,把OpenVINO依赖库都添加进去;设置PYTHONPATH,把OpenVINO Python库都添加进去。
以OpenVINO 2021.3为例:
第一步, 手动添加下面的路径到Windows10环境变量path:
- C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\ngraph\lib;
- C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\inference_engine\external\tbb\bin;
- C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\inference_engine\bin\intel64\Release;
- C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\inference_engine\bin\intel64\Debug;
- C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\inference_engine\external\hddl\bin;
- C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\inference_engine\external\omp\lib;
- C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\inference_engine\external\gna\lib;
- C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\model_optimizer;
- C:\Program Files (x86)\Intel\openvino_2021.3.394\opencv\bin;
第二步:手动添加下面的路径到PYTHONPATH:
- C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\tools\post_training_optimization_toolkit;
- C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\open_model_zoo\tools\accuracy_checker;
- C:\Program Files (x86)\Intel\openvino_2021.3.394\python\python3.8;
- C:\Program Files (x86)\Intel\openvino_2021.3.394\python\python3;
- C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\model_optimizer;
完毕!
网友评论