Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 964 Bytes

File metadata and controls

37 lines (23 loc) · 964 Bytes

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 dataset.
  • Quantize the model with NNCF Post-Training Quantization algorithm.
  • 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:
pip install ../../../../
  • Install 3rd party dependencies:
pip install -r requirements.txt

Run Example

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

python main.py

See also