Skip to content

Latest commit

 

History

History
 
 

111-yolov5-quantization-migration

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Migrate quantization from POT API to NNCF API

Ultralytics Yolov5 results

This tutorial demonstrates how to migrate quantization pipeline written using the OpenVINO Post-Training Optimization Tool (POT) to NNCF Post-Training Quantization API. This tutorial is based on Ultralytics Yolov5 model and additionally it compares model accuracy between the FP32 precision and quantized INT8 precision models and runs a demo of model inference based on sample code from Ultralytics Yolov5 with the OpenVINO backend.

Notebook Contents

The tutorial consists from the following parts:

  1. Convert YOLOv5 model to OpenVINO IR.
  2. Prepare dataset for quantization.
  3. Configure quantization pipeline.
  4. Perform model optimization.
  5. Compare accuracy FP32 and INT8 models
  6. Run model inference demo
  7. Compare performance FP32 and INt8 models

Installation Instructions

If you have not installed all required dependencies, follow the Installation Guide.