openvino/tools/pot
Roman Kazantsev aafabb41b8
[MO, POT] Top up upper bounds for TensorFlow and NumPy modules in all requirement files (#12191) (#12628)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-08-19 19:33:25 +04:00
..
compression Update year to 2022 in copyright notice (#9755) 2022-01-19 01:07:49 +03:00
configs Fixed conflicts (#11332) 2022-03-30 16:10:03 +03:00
docs Porting OV Runtime to 2022.2 (#12192) 2022-07-20 11:14:45 +02:00
openvino Porting OV Runtime to 2022.2 (#12192) 2022-07-20 11:14:45 +02:00
tests Nm/outputs quantization scheme (#12035) 2022-07-07 16:08:55 +09:00
tools Update year to 2022 in copyright notice (#9755) 2022-01-19 01:07:49 +03:00
.gitignore Includes in frontends (#9378) 2021-12-23 11:37:06 +03:00
.pylintrc Moved Post-training Optimization Tool to open-source (#7940) 2021-10-15 16:35:35 +03:00
CODEOWNERS Moved Post-training Optimization Tool to open-source (#7940) 2021-10-15 16:35:35 +03:00
README.md Fixed conflicts (#11332) 2022-03-30 16:10:03 +03:00
README_dev.md Fixed duplicated words (#10827) 2022-03-09 08:06:12 +00:00
__init__.py Update year to 2022 in copyright notice (#9755) 2022-01-19 01:07:49 +03:00
main.py Update year to 2022 in copyright notice (#9755) 2022-01-19 01:07:49 +03:00
requirements.txt Moved Post-training Optimization Tool to open-source (#7940) 2021-10-15 16:35:35 +03:00
setup.py [MO, POT] Top up upper bounds for TensorFlow and NumPy modules in all requirement files (#12191) (#12628) 2022-08-19 19:33:25 +04:00

README.md

Post-Training Optimization Tool

Introduction

Post-training Optimization Tool (POT) is designed to accelerate the inference of deep learning models by applying special methods without model retraining or fine-tuning, for example, post-training 8-bit quantization. Therefore, the tool does not require a training dataset or a pipeline. To apply post-training algorithms from the POT, you need:

  • A floating-point precision model, FP32 or FP16, converted into the OpenVINO™ Intermediate Representation (IR) format and run on CPU with the OpenVINO™.
  • A representative calibration dataset representing a use case scenario, for example, 300 samples.

Figure below shows the optimization workflow:

To get started with POT tool refer to the corresponding OpenVINO™ documentation.

Installation

From PyPI

POT is distributed as a part of OpenVINO™ Development Tools package. For installation instruction please refer to this document.

From GitHub

As prerequisites, you should install OpenVINO™ Runtime and other dependencies such as Model Optimizer and Accuracy Checker.

To install POT from source:

  • Clone OpenVINO repository
    git clone --recusive https://github.com/openvinotoolkit/openvino.git
    
  • Navigate to openvino/tools/pot/ folder
  • Install POT package:
    python3 setup.py install
    

After installation POT is available as a Python library under openvino.tools.pot.* and in the command line by the pot alias. To verify it, run pot -h.

Examples

OpenVINO provides several examples to demonstrate the POT optimization workflow:

See Also