Skip to content

Commit e14d01e

Browse files
author
Julia Kamelina
authored
model_tools: update installation section (#2863)
* update install section * update openvino-dev installation * add note about pip version
1 parent 4d3fc84 commit e14d01e

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

tools/model_tools/README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,25 @@ Installation from source is as follows:
3434

3535
1. Install Python (version 3.6 or higher), [setuptools](https://pypi.org/project/setuptools/):
3636

37+
2. Install [openvino-dev](https://pypi.org/project/openvino-dev/) python package of the corresponding version:
38+
39+
```sh
40+
pip install openvino-dev[caffe,caffe2,onnx,tensorflow2,pytorch,mxnet]
41+
```
42+
> **NOTE**: For example, if you are using OMZ Tools for 2021.4.2 then install openvino-dev==2021.4.2.
43+
3744
2. Install the tools with the following command:
3845

3946
```sh
40-
python setup.py install
47+
pip install --upgrade pip
48+
pip install .
4149
```
4250

4351
> **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/installation/).
4452
> For example, on Ubuntu execute the following command to get pip installed: `sudo apt install python3-pip`.
53+
> If you are using pip version lower than 21.3, you also need to set OMZ_ROOT variable: `export OMZ_ROOT=<omz_dir>`
4554
46-
For the model converter, you will also need to install the OpenVINO&trade;
47-
toolkit and the prerequisite libraries for Model Optimizer. See the
48-
[OpenVINO toolkit documentation](https://docs.openvinotoolkit.org/) for details.
49-
50-
To convert models from certain frameworks, you will also need to install
55+
To convert models from certain frameworks, you may also need to install
5156
additional dependencies.
5257

5358
For models from Caffe2:

0 commit comments

Comments
 (0)