Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.07 KB

File metadata and controls

39 lines (25 loc) · 1.07 KB

Post-Training Quantization of YOLOv8 OpenVINO Model

This example demonstrates how to use Post-Training Quantization API from Neural Network Compression Framework (NNCF) to quantize YOLOv8n model.

The example includes the following steps:

  • Download and prepare COCO-128-seg dataset.
  • Quantize the model with "AccuracyAwareQuantization" algorithm instead of "DefaultQuantization".
  • Measure accuracy and performance of the floating-point and quantized models.

Install requirements

To run the example you should install the corresponding Python dependencies:

  • Install NNCF from source:

    git clone https://github.com/openvinotoolkit/nncf.git
    cd nncf
    pip install .
  • Install 3rd party dependencies of this example:

    pip install -r requirements.txt

Run Example

The example is fully automated. Just run the following command in the prepared Python environment:

python main.py

See also