4.1.3. PTQ Model Conversion Samples Guide

Tip

  1. Before using this manual, we recommend you to read the Toolchain Overview and PTQ Principle And Steps to get a full understanding of the PTQ model conversion scheme (hereafter referred to as the PTQ scheme).

  2. If you want to know how to use the PTQ floating point and fixed point model conversion scheme tool when you perform a custom model conversion. Please read: PTQ Tools Guide.

  3. fter using this guide to complete the model conversion of the PTQ sample package, please continue to use AI_Benchmark Doc and BPU SDK API Doc for embedded development work and deploy the model on the board.

The PTQ sample package helps developers to quickly get started with the PTQ scheme. Using the PTQ sample package, developers can not only experience converting a 32-bit floating-point (FLOAT32) precision sample model to an 8-bit fixed-point integer (INT8) precision bin model that can run on the D-Robotics X3 platform, but also learn how to use the tools provided by the PTQ solution and design custom model conversion business logic scripts based on the sample scripts.

This guide is intended to show developers how to use the D-Robotics X3 algorithm toolchain’s PTQ model transformation sample package (hereafter referred to as the PTQ sample package). You can obtain the PTQ sample package in horizon_xj3_open_explorer at ddk/samples/ai_toolchain/horizon_model_convert_sample.

The next chapter will introduce you the contents of the PTQ sample package.