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.
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
The example is fully automated. Just run the following comman in the prepared Python environment:
python main.py