Metadata-Version: 2.1
Name: openvino-dev
Version: 2022.1.0
Summary: OpenVINO(TM) Development Tools
Home-page: https://docs.openvino.ai/latest/index.html
Author: Intel® Corporation
Author-email: openvino_pushbot@intel.com
License: OSI Approved :: Apache Software License
Download-URL: https://github.com/openvinotoolkit/openvino/tags
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: readme.txt
License-File: LICENSE
License-File: dev-third-party-programs.txt
License-File: omz-third-party-programs.txt
Requires-Dist: addict (>=2.4.0)
Requires-Dist: defusedxml (>=0.7.1)
Requires-Dist: fast-ctc-decode (>=0.2.5)
Requires-Dist: jstyleson (~=0.0.2)
Requires-Dist: lmdb (>=1.2.1)
Requires-Dist: nibabel (>=3.2.1)
Requires-Dist: nltk (>=3.5)
Requires-Dist: numpy (<1.20,>=1.16.6)
Requires-Dist: opencv-python (==4.5.*)
Requires-Dist: openvino-telemetry (>=2022.1.0)
Requires-Dist: pandas (~=1.1.5)
Requires-Dist: parasail (>=1.2.4)
Requires-Dist: pillow (>=8.1.2)
Requires-Dist: progress (>=1.5)
Requires-Dist: py-cpuinfo (>=7.0.0)
Requires-Dist: pyclipper (>=1.2.1)
Requires-Dist: pydicom (>=2.1.2)
Requires-Dist: pyyaml (>=5.4.1)
Requires-Dist: rawpy (>=0.16.0)
Requires-Dist: requests (>=2.25.1)
Requires-Dist: scikit-image (>=0.17.2)
Requires-Dist: scikit-learn (~=0.24.1)
Requires-Dist: scipy (~=1.5.4)
Requires-Dist: sentencepiece (>=0.1.95)
Requires-Dist: shapely (>=1.7.1)
Requires-Dist: texttable (~=1.6.3)
Requires-Dist: tokenizers (~=0.10.1)
Requires-Dist: tqdm (>=4.54.1)
Requires-Dist: transformers (>=4.5)
Requires-Dist: openvino (==2022.1.0)
Requires-Dist: imagecodecs (~=2020.5.30) ; python_version < "3.7"
Requires-Dist: numpy (<1.20,>=1.16.6) ; python_version <= "3.6"
Requires-Dist: networkx (~=2.5) ; python_version <= "3.6"
Requires-Dist: imagecodecs (~=2021.11.20) ; python_version == "3.7"
Requires-Dist: networkx (~=2.6) ; python_version > "3.6"
Requires-Dist: numpy (<=1.21,>=1.16.6) ; python_version > "3.6"
Requires-Dist: imagecodecs ; python_version >= "3.8"
Provides-Extra: caffe
Requires-Dist: fastjsonschema (~=2.15.1) ; extra == 'caffe'
Requires-Dist: defusedxml (>=0.7.1) ; extra == 'caffe'
Requires-Dist: protobuf (>=3.15.6) ; extra == 'caffe'
Requires-Dist: numpy (<1.20,>=1.16.6) ; extra == 'caffe'
Requires-Dist: requests (>=2.25.1) ; extra == 'caffe'
Requires-Dist: networkx (~=2.5) ; (python_version <= "3.6") and extra == 'caffe'
Requires-Dist: networkx (~=2.6) ; (python_version > "3.6") and extra == 'caffe'
Provides-Extra: kaldi
Requires-Dist: defusedxml (>=0.7.1) ; extra == 'kaldi'
Requires-Dist: numpy (<1.20,>=1.16.6) ; extra == 'kaldi'
Requires-Dist: fastjsonschema (~=2.15.1) ; extra == 'kaldi'
Requires-Dist: requests (>=2.25.1) ; extra == 'kaldi'
Requires-Dist: networkx (~=2.5) ; (python_version <= "3.6") and extra == 'kaldi'
Requires-Dist: networkx (~=2.6) ; (python_version > "3.6") and extra == 'kaldi'
Provides-Extra: mxnet
Requires-Dist: fastjsonschema (~=2.15.1) ; extra == 'mxnet'
Requires-Dist: defusedxml (>=0.7.1) ; extra == 'mxnet'
Requires-Dist: numpy (<1.20,>=1.16.6) ; extra == 'mxnet'
Requires-Dist: urllib3 (>=1.26.4) ; extra == 'mxnet'
Requires-Dist: requests (>=2.25.1) ; extra == 'mxnet'
Requires-Dist: networkx (~=2.5) ; (python_version <= "3.6") and extra == 'mxnet'
Requires-Dist: networkx (~=2.6) ; (python_version > "3.6") and extra == 'mxnet'
Requires-Dist: mxnet (~=1.7.0.post2) ; (sys_platform != "win32") and extra == 'mxnet'
Requires-Dist: mxnet (~=1.2.0) ; (sys_platform == "win32") and extra == 'mxnet'
Provides-Extra: onnx
Requires-Dist: onnx (>=1.8.1) ; extra == 'onnx'
Requires-Dist: fastjsonschema (~=2.15.1) ; extra == 'onnx'
Requires-Dist: defusedxml (>=0.7.1) ; extra == 'onnx'
Requires-Dist: numpy (<1.20,>=1.16.6) ; extra == 'onnx'
Requires-Dist: requests (>=2.25.1) ; extra == 'onnx'
Requires-Dist: networkx (~=2.5) ; (python_version <= "3.6") and extra == 'onnx'
Requires-Dist: networkx (~=2.6) ; (python_version > "3.6") and extra == 'onnx'
Provides-Extra: paddle
Requires-Dist: paddlepaddle (~=2.2.0) ; extra == 'paddle'
Provides-Extra: pytorch
Requires-Dist: onnx (>=1.8.1) ; extra == 'pytorch'
Requires-Dist: scipy (~=1.5.4) ; extra == 'pytorch'
Requires-Dist: torchvision (==0.9.1) ; extra == 'pytorch'
Requires-Dist: yacs (>=0.1.8) ; extra == 'pytorch'
Requires-Dist: torch (==1.8.1) ; extra == 'pytorch'
Provides-Extra: tensorflow
Requires-Dist: fastjsonschema (~=2.15.1) ; extra == 'tensorflow'
Requires-Dist: defusedxml (>=0.7.1) ; extra == 'tensorflow'
Requires-Dist: numpy (<1.20,>=1.16.6) ; extra == 'tensorflow'
Requires-Dist: tensorflow (<2.6,>=1.15.5) ; extra == 'tensorflow'
Requires-Dist: requests (>=2.25.1) ; extra == 'tensorflow'
Provides-Extra: tensorflow2
Requires-Dist: fastjsonschema (~=2.15.1) ; extra == 'tensorflow2'
Requires-Dist: tensorflow (~=2.5.0) ; extra == 'tensorflow2'
Requires-Dist: defusedxml (>=0.7.1) ; extra == 'tensorflow2'
Requires-Dist: numpy (<1.20,>=1.16.6) ; extra == 'tensorflow2'
Requires-Dist: requests (>=2.25.1) ; extra == 'tensorflow2'
Requires-Dist: tensorflow (~=2.5.0) ; (python_version <= "3.6") and extra == 'tensorflow2'
Requires-Dist: networkx (~=2.5) ; (python_version <= "3.6") and extra == 'tensorflow2'
Requires-Dist: tensorflow (~=2.5.3) ; (python_version > "3.6") and extra == 'tensorflow2'
Requires-Dist: networkx (~=2.6) ; (python_version > "3.6") and extra == 'tensorflow2'
Requires-Dist: networkx (~=2.5) ; (python_version <= "3.6") and extra == 'tensorflow'
Requires-Dist: networkx (~=2.6) ; (python_version > "3.6") and extra == 'tensorflow'

# OpenVINO™ Development Tools 

## Introduction

OpenVINO™ toolkit is a comprehensive toolkit for quickly developing applications and solutions that solve a variety of tasks including emulation of human vision, automatic speech recognition, natural language processing, recommendation systems, and many others. Based on latest generations of artificial neural networks, including Convolutional Neural Networks (CNNs), recurrent and attention-based networks, the toolkit extends computer vision and non-vision workloads across Intel® hardware, maximizing performance. It accelerates applications with high-performance, AI and deep learning inference deployed from edge to cloud.

**The developer package includes the following components installed by default:**

| Component        | Console Script                                                                   | Description                                                                                                                                                                                                                                                                                                   |  
|------------------|---------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Model Optimizer](https://docs.openvino.ai/latest/openvino_docs_MO_DG_Deep_Learning_Model_Optimizer_DevGuide.html) | `mo` |**Model Optimizer** imports, converts, and optimizes models that were trained in popular frameworks to a format usable by OpenVINO components. <br>Supported frameworks include Caffe\*, TensorFlow\*, MXNet\*, PaddlePaddle\*, and ONNX\*.                                               |
| [Benchmark Tool](https://docs.openvino.ai/latest/openvino_inference_engine_tools_benchmark_tool_README.html)| `benchmark_app` | **Benchmark Application** allows you to estimate deep learning inference performance on supported devices for synchronous and asynchronous modes.                                              |
| [Accuracy Checker](https://docs.openvino.ai/latest/omz_tools_accuracy_checker.html) and <br> [Annotation Converter](https://docs.openvino.ai/latest/omz_tools_accuracy_checker_annotation_converters.html) | `accuracy_check` <br> `convert_annotation` |**Accuracy Checker**  is a deep learning accuracy validation tool that allows you to collect accuracy metrics against popular datasets. The main advantages of the tool are the flexibility of configuration and a set of supported datasets, preprocessing, postprocessing, and metrics. <br> **Annotation Converter** is a utility that prepares datasets for evaluation with Accuracy Checker.                                             |
| [Post-Training Optimization Tool](https://docs.openvino.ai/latest/pot_README.html)| `pot` |**Post-Training Optimization Tool** allows you to optimize trained models with advanced capabilities, such as quantization and low-precision optimizations, without the need to retrain or fine-tune models. Optimizations are also available through the [API](https://docs.openvino.ai/latest/pot_compression_api_README.html).                                            |
| [Model Downloader and other Open Model Zoo tools](https://docs.openvino.ai/latest/omz_tools_downloader.html)| `omz_downloader` <br> `omz_converter` <br> `omz_quantizer` <br> `omz_info_dumper`| **Model Downloader** is a tool for getting access to the collection of high-quality and extremely fast pre-trained deep learning [public](https://docs.openvino.ai/latest/omz_models_group_public.html) and [Intel](https://docs.openvino.ai/latest/omz_models_group_intel.html)-trained models. These free pre-trained models can be used to speed up the development and production deployment process without training your own models. The tool downloads model files from online sources and, if necessary, patches them to make them more usable with Model Optimizer. A number of additional tools are also provided to automate the process of working with downloaded models:<br> **Model Converter** is a tool for converting Open Model Zoo models that are stored in an original deep learning framework format into the OpenVINO Intermediate Representation (IR) using Model Optimizer. <br> **Model Quantizer** is a tool for automatic quantization of full-precision models in the IR format into low-precision versions using the Post-Training Optimization Tool. <br> **Model Information Dumper** is a helper utility for dumping information about the models to a stable, machine-readable format.

The developer package also installs the OpenVINO™ Runtime package as a dependency.

**The runtime package installs the following components:**

| Component                                                                                           | Description                                                                                                                                                                                                                                                                                                   |  
|-----------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [OpenVINO™ Runtime](https://pypi.org/project/openvino)               | This is the engine that runs the deep learning model. It includes a set of libraries for an easy inference integration into your applications.                                                                                                                                                                                                |

## System Requirements
The complete list of supported hardware is available in the [Release Notes](https://www.intel.com/content/www/us/en/developer/articles/release-notes/openvino-relnotes.html).

The table below lists the supported operating systems and Python* versions required to run the installation.

| Supported Operating System                                   | [Python* Version (64-bit)](https://www.python.org/) |
| :------------------------------------------------------------| :---------------------------------------------------|
|   Ubuntu* 18.04 long-term support (LTS), 64-bit              | 3.6, 3.7, 3.8                                       |
|   Ubuntu* 20.04 long-term support (LTS), 64-bit              | 3.6, 3.7, 3.8, 3.9                                  |
|   Red Hat* Enterprise Linux* 8, 64-bit                       | 3.6, 3.8                                            |
|   macOS* 10.15.x                                             | 3.6, 3.7, 3.8, 3.9                                  |
|   Windows 10*, 64-bit                                        | 3.6, 3.7, 3.8, 3.9                                  |

> **NOTE**: This package can be installed on other versions of macOS, Linux and Windows, but only the specific versions above are fully validated.

> **NOTE**: The current version of the OpenVINO™ Runtime for macOS* supports inference on Intel® CPUs only.

## Install the OpenVINO™ Development Tools Package

### Step 1. Set Up Python Virtual Environment

To avoid dependency conflicts, use a virtual environment. Skip this
   step only if you do want to install all dependencies globally.

Create virtual environment:

```sh
python -m pip install --user virtualenv 
python -m venv openvino_env
```

> **NOTE**: On Linux and macOS, you may need to type `python3` instead of
`python`. You may also need to [install pip](https://pip.pypa.io/en/stable/installing/). For example, on Ubuntu execute the following command to get pip installed: `sudo apt install python3-venv python3-pip`.

### Step 2. Activate Virtual Environment

On Linux and macOS:
```sh
source openvino_env/bin/activate
```
On Windows:
```sh
openvino_env\Scripts\activate
```

### Step 3. Set Up and Update PIP to the Highest Version

Run the command below:
```sh
python -m pip install --upgrade pip
```

### Step 4. Install the Package

To install and configure the components of the development package for working with specific frameworks, use the `pip install openvino-dev[extras]` command, where `extras` is a list of extras from the table below: 

| DL Framework                                                                     | Extra                           |
| :------------------------------------------------------------------------------- | :-------------------------------|
|   [Caffe*](https://caffe.berkeleyvision.org/)                                    | caffe                           |
|   [Kaldi*](https://github.com/kaldi-asr/kaldi)                                   | kaldi                           |
|   [MXNet*](https://mxnet.apache.org/)                                            | mxnet                           |
|   [ONNX*](https://github.com/microsoft/onnxruntime/)                             | onnx                            |
|   [PyTorch*](https://pytorch.org/)                                               | pytorch                         |
|   [TensorFlow* 1.x](https://www.tensorflow.org/versions#tensorflow_1)            | tensorflow                      |
|   [TensorFlow* 2.x](https://www.tensorflow.org/versions#tensorflow_2)            | tensorflow2                     |

For example, to install and configure the components for working with TensorFlow 2.x, MXNet and Caffe, use the following command:  
   ```sh
   pip install openvino-dev[tensorflow2,mxnet,caffe]
   ```
**NOTE**: Support of MO in TensorFlow 1.x environment is deprecated. Use TensorFlow 2.x environment to convert both TensorFlow 1.x and 2.x models

### Step 5. Verify that the Package Is Installed

- To verify that the **developer package** is properly installed, run the command below (this may take a few seconds):
   ```sh
   mo -h
   ```
   You will see the help message for Model Optimizer if installation finished successfully.

- To verify that OpenVINO Runtime from the **runtime package** is available, run the command below:
   ```sh
   python -c "from openvino.runtime import Core"
   ```
   If installation was successful, you will not see any error messages (no console output).

## Troubleshooting


### zsh: no matches found : openvino-dev[...]

If you use zsh (Z shell) interpreter, that is the default shell for macOS starting with version 10.15 (Catalina), you may encounter the following error while installing `openvino-dev` package with extras:

```sh
pip install openvino-dev[tensorflow2,mxnet,caffe]
zsh: no matches found: openvino-dev[tensorflow2,mxnet,caffe]
```

By default zsh interprets square brackets as an expression for pattern matching. To resolve this issue, you need to escape the command with quotes: 

```sh
pip install 'openvino-dev[tensorflow2,mxnet,caffe]'
```

To avoid such issues you can also disable globbing for PIP commands by defining an alias in `~/.zshrc` file:

```sh
alias pip='noglob pip'
```

### Error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio"

On Windows* some dependencies may require compilation from source when installing. To resolve this issue, you need to install [Build Tools for Visual Studio* 2019](https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019) and repeat package installation.

### ImportError: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory

To resolve missing external dependency on Ubuntu* 18.04, execute the following command:
```sh
sudo apt-get install libpython3.7
```

## Additional Resources

- [Intel® Distribution of OpenVINO™ toolkit](https://software.intel.com/en-us/openvino-toolkit)
- [OpenVINO™ toolkit online documentation](https://docs.openvino.ai)
- [OpenVINO™ Notebooks](https://github.com/openvinotoolkit/openvino_notebooks)

Copyright © 2018-2022 Intel Corporation
> **LEGAL NOTICE**: Your use of this software and any required dependent software (the
“Software Package”) is subject to the terms and conditions of the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0.html) for the Software Package, which may also include notices, disclaimers, or
license terms for third party or open source software included in or with the Software Package, and your use indicates your acceptance of all such terms. Please refer to the “third-party-programs.txt” or other similarly-named text file included with the Software Package for additional details.

>Intel is committed to the respect of human rights and avoiding complicity in human rights abuses, a policy reflected in the [Intel Global Human Rights Principles](https://www.intel.com/content/www/us/en/policy/policy-human-rights.html). Accordingly, by accessing the Intel material on this platform you agree that you will not use the material in a product or application that causes or contributes to a violation of an internationally recognized human right.


