* OV new package structure * Fixes * More fixes * Fixed code style in ngraph tests * Fixes * Paths to setupvars inside demo scripts * Fixed demo_security_barrier_camera.sh * Added setupvars.sh to old location as well * Fixed path * Fixed MO install path in .co * Fixed install of public headers * Fixed frontends installation * Updated DM config files * Keep opencv in the root * Improvements * Fixes for demo scripts * Added path to TBB * Fix for MO unit-tests * Fixed tests on Windows * Reverted arch * Removed arch * Reverted arch back: second attemp * System type * Fix for Windows * Resolve merge conflicts * Fixed path * Path for Windows * Added debug for Windows * Added requirements_dev.txt to install * Fixed wheel's setup.py * Fixed lin build * Fixes after merge * Fix 2 * Fixes * Frontends path * Fixed deployment manager * Fixed Windows * Added cldnn unit tests installation * Install samples * Fix samples * Fix path for samples * Proper path * Try to fix MO hardcodes * samples binary location * MO print * Added install for libopencv_c_wrapper.so * Added library destination * Fixed install rule for samples * Updated demo scripts readme.md * Samples * Keep source permissions for Python samples * Fixed python * Updated path to fast run scripts * Fixed C samples tests * Removed debug output * Small fixes * Try to unify prefix
7.2 KiB
OpenVINO™ Deployment Manager Guide
The Deployment Manager of Intel® Distribution of OpenVINO™ creates a deployment package by assembling the model, IR files, your application, and associated dependencies into a runtime package for your target device.
The Deployment Manager is a Python* command-line tool that is delivered within the Intel® Distribution of OpenVINO™ toolkit for Linux* and Windows* release packages and available after installation in the <INSTALL_DIR>/tools/deployment_manager directory.
Pre-Requisites
- Intel® Distribution of OpenVINO™ toolkit for Linux* (version 2019 R3 or higher) or Intel® Distribution of OpenVINO™ toolkit for Windows* (version 2019 R4 or higher) installed on your development machine.
- Python* 3.6 or higher is required to run the Deployment Manager.
- To run inference on a target device other than CPU, device drivers must be pre-installed:
- For Linux, see the following sections in the installation instructions for Linux:
- Steps for Intel® Processor Graphics (GPU) section
- Steps for Intel® Neural Compute Stick 2 section
- Steps for Intel® Vision Accelerator Design with Intel® Movidius™ VPUs
- For Windows, see the following sections in the installation instructions for Windows:
- Steps for Intel® Processor Graphics (GPU)
- Steps for the Intel® Vision Accelerator Design with Intel® Movidius™ VPUs
- For Linux, see the following sections in the installation instructions for Linux:
Important
: The operating system on the target host must be the same as the development system on which you are creating the package. For example, if the target system is Ubuntu 18.04, the deployment package must be created from the OpenVINO™ toolkit installed on Ubuntu 18.04.
Create Deployment Package Using Deployment Manager
There are two ways to create a deployment package that includes inference-related components of the OpenVINO™ toolkit: you can run the Deployment Manager tool in either interactive or standard CLI mode.
Run Interactive Mode
Click to expand/collapse
Interactive mode provides a user-friendly command-line interface that will guide you through the process with text prompts.
- To launch the Deployment Manager in the interactive mode, open a new terminal window, go to the Deployment Manager tool directory and run the tool script without parameters:
<INSTALL_DIR>/tools/deployment_manager./deployment_manager.py - The target device selection dialog is displayed:
Use the options provided on the screen to complete selection of the target devices and press Enter to proceed to the package generation dialog. if you want to interrupt the generation process and exit the program, type q and press Enter. - Once you accept the selection, the package generation dialog is displayed:
-
The target devices you have selected at the previous step appear on the screen. If you want to change the selection, type b and press Enter to go back to the previous screen.
-
Use the options provided to configure the generation process, or use the default settings.
-
Once all the parameters are set, type g and press Enter to generate the package for the selected target devices. If you want to interrupt the generation process and exit the program, type q and press Enter.
-
The script successfully completes and the deployment package is generated in the output directory specified.
Run Standard CLI Mode
Click to expand/collapse
Alternatively, you can run the Deployment Manager tool in the standard CLI mode. In this mode, you specify the target devices and other parameters as command-line arguments of the Deployment Manager Python script. This mode facilitates integrating the tool in an automation pipeline.
To launch the Deployment Manager tool in the standard mode, open a new terminal window, go to the Deployment Manager tool directory and run the tool command with the following syntax:
./deployment_manager.py <--targets> [--output_dir] [--archive_name] [--user_data]
The following options are available:
-
<--targets>— (Mandatory) List of target devices to run inference. To specify more than one target, separate them with spaces. For example:--targets cpu gpu vpu. You can get a list of currently available targets running the tool's help:./deployment_manager.py -h -
[--output_dir]— (Optional) Path to the output directory. By default, it set to your home directory. -
[--archive_name]— (Optional) Deployment archive name without extension. By default, it is set toopenvino_deployment_package. -
[--user_data]— (Optional) Path to a directory with user data (IRs, models, datasets, etc.) required for inference. By default, it's set toNone, which means that the user data are already present on the target host machine.
The script successfully completes and the deployment package is generated in the output directory specified.
Deploy Package on Target Hosts
After the Deployment Manager has successfully completed, you can find the generated .tar.gz (for Linux) or .zip (for Windows) package in the output directory you specified.
To deploy the Inference Engine components from the development machine to the target host, perform the following steps:
-
Transfer the generated archive to the target host using your preferred method.
-
Unpack the archive into the destination directory on the target host (if your archive name is different from the default shown below, replace the
openvino_deployment_packagewith the name you use).- For Linux:
tar xf openvino_deployment_package.tar.gz -C <destination_dir>- For Windows, use an archiver your prefer.
The package is unpacked to the destination directory and the following files and subdirectories are created:
setupvars.sh— copy ofsetupvars.shruntime— Contains the OpenVINO runtime binary files.install_dependencies— Snapshot of theinstall_dependenciesdirectory from the OpenVINO installation directory.<user_data>— The directory with the user data (IRs, datasets, etc.) you specified while configuring the package.
-
For Linux, to run inference on a target Intel® GPU, Intel® Movidius™ VPU, or Intel® Vision Accelerator Design with Intel® Movidius™ VPUs, you need to install additional dependencies by running the
install_openvino_dependencies.shscript:cd <destination_dir>/openvino/install_dependenciessudo -E ./install_openvino_dependencies.sh -
Set up the environment variables:
- For Linux:
cd <destination_dir>/openvino/source ./setupvars.sh- For Windows:
cd <destination_dir>\openvino\.\setupvars.bat
Congratulations, you have finished the deployment of the Inference Engine components to the target host.