4.1.2. PTQ Tools Guide¶
The purpose of this section is to introduce the toolkit of the PTQ model conversion scheme provided by the D-Robotics X3 algorithm toolchain.
Tip
It is recommended that you finish the following preparations before reading this section:
Read Toolchain Overview about the PTQ and PTQ Principle and Steps to understand the PTQ scheme and model conversion steps.
Complete the Docker environment installation and configuration as well as the image pulling according to Docker Container Deployment.
Run the model conversion related to the samples described in PTQ Model Conversion Samples Guide.
This section introduces the model conversion toolkit for the D-Robotics PTQ scheme.
The toolkit can be run on a development PC or in a Docker environment.
If you choose to run the toolkit on your development PC, you should run install.sh under ddk/package/host in the horizon_xj3_open_explorer installation package to install the toolkit. Once the installation is complete, run hb_mapper --help to verify the installation.
If you choose to run the toolkit in a Docker container, the above installation steps are not required.
Follow Docker Container Deployment to install the toolkit. Enter the Docker container and run hb_mapper --help to verify the installation.
The following sections will describe the model conversion process and the use of the tools in the toolkit.
- 4.1.2.1. Model Conversion Process
- 4.1.2.1.1. Model Checking (hb_mapper checker)
- 4.1.2.1.2. Calibration Image Preparation
- 4.1.2.1.3. Model Conversion (
hb_mapper makertbin) - 4.1.2.1.4. Single Image Inference
- 4.1.2.1.5. Model Accuracy Evaluations
- 4.1.2.1.6. Model Performance Evaluations
- 4.1.2.1.7. [Reference] Supported Calibration Methods
- 4.1.2.1.8. [Reference] OP List
- 4.1.2.2. The hb_mapper Tools
- 4.1.2.3. The hb_perf Tool
- 4.1.2.4. The vec_diff Tool
- 4.1.2.5. The hb_model_info Tool
- 4.1.2.6. The hb_pack Tool
- 4.1.2.7. The hb_verifier Tool
- 4.1.2.8. The hb_model_modifier Tool
- 4.1.2.9. The hb_custom_op Tool
- 4.1.2.10. The hb_eval_preprocess Tool
- 4.1.2.11. The HB_ONNXRuntime Inference Library
- 4.1.2.12. Accuracy Debug Tool