为 Windows OpenVINO™ 10 永久设置工具套件®变量

文档

安装与设置

000033440

2021 年 07 月 30 日

您可以在 Windows OpenVINO™ 10 中®环境变量。在 Windows® 10 系统中,转到 控制面板 > 系统和安全> 高级>系统设置 >环境变量。在 System 变量中以下作为 变量添加,其相应的 如下所示:

变量名称可变值笔记
INTEL_OPENVINO_DIRC:\Program Files (x86)\Intel\openvino_2021.4.582您的工具套件OpenVINO™路径
GNA_DIR%INTEL_OPENVINO_DIR%\deployment_tools\inference_engine\external\gna\lib 
INTEL_CVSDK_DIR%INTEL_OPENVINO_DIR% 
ngraph_DIR%INTEL_OPENVINO_DIR%\deployment_tools\ngraph\cmake 
OpenCV_DIR%INTEL_OPENVINO_DIR%\opencv\cmake 
OPENMP_DIR%INTEL_OPENVINO_DIR%\deployment_tools\inference_engine\external\omp\lib 
OPENVINO_LIB_PATHS%INTEL_OPENVINO_DIR%\deployment_tools\ngraph\lib
%INTEL_OPENVINO_DIR%\deployment_tools\inference_engine\external\tbb\bin
%INTEL_OPENVINO_DIR%\deployment_tools\inference_engine\bin\intel64\Release
%INTEL_OPENVINO_DIR%\deployment_tools\inference_engine\bin\intel64\Debug
%INTEL_OPENVINO_DIR%\deployment_tools\inference_engine\external\hddl\bin
%INTEL_OPENVINO_DIR%\deployment_tools\inference_engine\external\omp\lib
%INTEL_OPENVINO_DIR%\deployment_tools\inference_engine\external\gna\lib
至您的OPENVINO_LIB_PATHS
InferenceEngine_DIR%INTEL_OPENVINO_DIR%\deployment_tools\inference_engine\share 
HDDL_INSTALL_DIR %INTEL_OPENVINO_DIR%\deployment_tools\inference_engine\external\hddl 
PYTHONPATH%INTEL_OPENVINO_DIR%\deployment_tools\tools\post_training_optimization_toolkit
%INTEL_OPENVINO_DIR%\deployment_tools\open_model_zoo\tools\accuracy_checker
%INTEL_OPENVINO_DIR%\python\python3.8
%INTEL_OPENVINO_DIR%\python\python3
%INTEL_OPENVINO_DIR%\deployment_tools\model_optimizer
检查 Python* 版本并 调整 条目
%INTEL_OPENVINO_DIR% 
SCRIPT_NAMEsetupvars.bat 
TBB_DIR%INTEL_OPENVINO_DIR%\deployment_tools\inference_engine\external\tbb\cmake
 
 

还需要在系统变量下编辑Path 变量并添加以下条目:

%INTEL_OPENVINO_DIR%\deployment_tools\ngraph\lib
%INTEL_OPENVINO_DIR%\deployment_tools\inference_engine\external\tbb\bin
%INTEL_OPENVINO_DIR%\deployment_tools\inference_engine\bin\intel64\Release
%INTEL_OPENVINO_DIR%\deployment_tools\inference_engine\bin\intel64\Debug
%INTEL_OPENVINO_DIR%\deployment_tools\inference_engine\external\hddl\bin
%INTEL_OPENVINO_DIR%\deployment_tools\inference_engine\external\omp\lib
%INTEL_OPENVINO_DIR%\deployment_tools\inference_engine\external\gna\lib
%INTEL_OPENVINO_DIR%\deployment_tools\model_optimizer
%INTEL_OPENVINO_DIR%\opencv\bin

 

注意这适用于 2021.4 版OpenVINO™工具包。
 更改生效可能需要重新启动。