Skip to content

Latest commit

 

History

History
 
 

yolov8_quantize_with_accuracy_control

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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