Ov ep docx update 22.2 (#11296)

* Update eps.md

* Update OpenVINOExecutionProvider.md

* Update OpenVINOExecutionProvider.md
This commit is contained in:
sfatimar 2022-04-27 22:19:44 +05:30 committed by GitHub
parent 7b36e8d4ed
commit 370c4c5672
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 4 deletions

4
docs/build/eps.md vendored
View file

@ -229,7 +229,7 @@ See more information on the OpenVINO Execution Provider [here](../execution-prov
### Prerequisites
{: .no_toc }
1. Install the Intel<sup>®</sup> Distribution of OpenVINO<sup>TM</sup> Toolkit **Release 2022.1** for the appropriate OS and target hardware:
1. Install the openvino offline/online installer from Intel<sup>®</sup> Distribution of OpenVINO<sup>TM</sup> Toolkit **Release 2022.1** for the appropriate OS and target hardware:
* [Linux - CPU, GPU, VPU, VAD-M](https://software.intel.com/en-us/openvino-toolkit/choose-download/free-download-linux)
* [Windows - CPU, GPU, VPU, VAD-M](https://software.intel.com/en-us/openvino-toolkit/choose-download/free-download-windows).
@ -243,7 +243,7 @@ See more information on the OpenVINO Execution Provider [here](../execution-prov
* To configure Intel<sup>®</sup> Movidius<sup>TM</sup> USB, please follow this getting started guide: [Linux](https://docs.openvino.ai/latest/openvino_docs_install_guides_installing_openvino_linux.html#additional-NCS-steps)
* To configure Intel<sup>®</sup> Vision Accelerator Design based on 8 Movidius<sup>TM</sup> MyriadX VPUs, please follow this configuration guide: [Windows](https://docs.openvino.ai/latest/openvino_docs_install_guides_installing_openvino_windows.html#hddl-myriad), [Linux](https://docs.openvino.ai/2021.4/openvino_docs_install_guides_installing_openvino_linux.html#install-VPU). Follow steps 3 and 4 to complete the configuration.
3. Initialize the OpenVINO environment by running the setupvars script as shown below:
3. Initialize the OpenVINO environment by running the setupvars script as shown below. This is a required step:
* For Linux run till OpenVINO 2021.4 version:
```
$ source <openvino_install_directory>/bin/setupvars.sh

View file

@ -20,8 +20,8 @@ Accelerate ONNX models on Intel CPUs, GPUs and VPUs with ONNX Runtime and the In
## Install
Pre-built packages and Docker images are published for ONNX Runtime with OpenVINO by Intel for each release.
* OpenVINO-EP Release page: [Latest v4.0 Release](https://github.com/intel/onnxruntime/releases)
* Python wheels: [intel/onnxruntime](https://github.com/intel/onnxruntime/releases)
* OpenVINO-EP Release page: [Latest v4.0 Release](https://github.com/intel/onnxruntime/releases)
* Python wheels Ubuntu/Windows: [intel/onnxruntime](https://github.com/intel/onnxruntime/releases)
* Docker image: [openvino/onnxruntime_ep_ubuntu18](https://hub.docker.com/r/openvino/onnxruntime_ep_ubuntu18)
## Requirements
@ -47,6 +47,29 @@ OpenVINO 2022.1.
## Usage
**OpenVINO Environment**
Before running any ort samples(Python/C++/C#) with the OpenVINOExecutionProvider it is must to set up the OpenVINO Environment Variables using the full installer package of OpenVINO.
Initialize the OpenVINO environment by running the setupvars script as shown below. This is a required step:
* For Linux run till OpenVINO 2021.4 version:
```
$ source <openvino_install_directory>/bin/setupvars.sh
```
* For Linux run from OpenVINO 2022.1 version:
```
$ source <openvino_install_directory>/setupvars.sh
```
* For Windows run till OpenVINO 2021.4 version:
```
C:\ <openvino_install_directory>\bin\setupvars.bat
```
* For Windows run from OpenVINO 2022.1 version:
```
C:\ <openvino_install_directory>\setupvars.bat
```
**Note:** If you are using a dockerfile to use OpenVINO-EP, sourcing OpenVINO won't be possible within the dockerfile. You would have to explicitly set the LD_LIBRARY_PATH to point to OpenVINO libraries location. Refer our [dockerfile].(https://github.com/microsoft/onnxruntime/blob/master/dockerfiles/Dockerfile.openvino)
**C#**
To use csharp api for openvino execution provider create a custom nuget package. Follow the instructions [here](../build/inferencing.md#build-nuget-packages) to install prerequisites for nuget creation. Once prerequisites are installed follow the instructions to [build openvino](../build/eps.md#openvino) and add an extra flag `--build_nuget` to create nuget packages. Two nuget packages will be created Microsoft.ML.OnnxRuntime.Managed and Microsoft.ML.OnnxRuntime.Openvino.