logologoOpenExplorer
Guide
Horizon Smart Car Developer Community
Horizon Official Website
中文
English
Guide
Horizon Smart Car Developer Community
Horizon Official Website
中文
English
logologoOpenExplorer
OE Document Introduction

Product Introduction

OpenExplorer Introduction
Toolchain Overview
Key Concepts
Environment Deployment

Quick Start

PTQ and QAT Introduction
Algorithm Model PTQ + On-board Deployment Quick Start
Algorithm Model QAT + Deployment Quick Start

Post-training Quantization (PTQ)

PTQ Conversion Principle and Process

PTQ Conversion Tools

PTQ Conversion Tool Overview

The hb_compile Tool

Model Checking
Model Quantized Compilation
Model Modification and HBIR Model Compilation
The hb_model_info Tool
The hb_verifier Tool
The hb_eval_preprocess Tool
The hb_config_generator Tool
The HBRuntime Inference Library
Accuracy Debug Tool

PTQ Conversion Steps

Prepare Floating-point Model
Model Checking
Prepare Calibration Data
Model Quantization and Compilation
Model Performance Analysis
Model Accuracy Analysis

PTQ Conversion Samples

Release Introduction
Common Algorithm Model Samples

FAQ and Common Failure Resolutions

Post-training Quantization (PTQ) FAQ
Common Failure Resolutions

Appendix

Configuration of norm_type
Image Processing Transformer

Quantized Awareness Training (QAT)

Introduction
Terminology
Environmental Dependence
Qucick Start

Tutorial

Floating-point Model Requirements
QConfig in Detail
Prepare in Detail
Calibration Tutorial
Quantized Awareness Training Guide
Accuracy Tuning Tool Guide
Quantization Accuracy Tuning Guide
FAQ
Common Usage Mistakes

Advanced Tutorial

FX Quantization Principle
Operator Fusion

API Reference

March
qconfig
Fake Quantize

QAT

fx.fx_helper.wrap
quantization.fuse_known_modules
quantization.fuse_modules
quantization.prepare

Model Export

quantization.hbdk4.export
quantization.hbdk4.get_hbir_input_flattener
quantization.hbdk4.get_hbir_output_unflattener
ONNX

Horizon Operator

nn.functional.filter
nn.functional.point_pillars_preprocess
nn.BgrToYuv444
nn.Correlation
nn.PointPillarsScatter
nn.MultiScaleDeformableAttention
rgb2bgr
bgr2rgb
bgr2yuv
rgb2yuv
bgr2centered_yuv
rgb2centered_yuv
bgr2gray
rgb2gray
bgr2centered_gray
rgb2centered_gray
Eager Mode

Model Performance/Accuracy Tuning Guide

Model Performance Optimization
PTQ Model Accuracy Optimization
QAT Model Accuracy Optimization

Unify Compute Platform (UCP)

Overview

Vision Process

VP Overview
Quickstart
Module Architecture
Performance Indicator

Vision Algorithm

Overview
Bilateral Filter
Box Filter
Canny
Corner Harris
Cvtcolor
Dilate
Equalizehist
Erode
Filter2d
Flip
Gaussian Blur
Integral
JPEG Codec
Laplacian Filter
Median Blur
OpticalFlowPyrLK
PyrDown
PyrUp
Remap
Resize
Roi Resize
Rotate
SepFilter2d
Sobel
Stitch
Threshold
Transpose
Video Codec
Warp Affine
Warp Perspective

Sample

Overview
Basic Image Processing Sample
Image Conversion Sample
Feature Extraction Sample
Optical Flow Sample
Surround View Image Stitching Sample

VP API Introduction

Overview

Data Structure

hbVPImageFormat
hbVPImageType
hbVPImage
hbVPArray
hbVPRoi
hbVPFilterKernel
hbVPInterpolationType
hbVPBorderType

Function Interface

hbVPGetVersion
hbVPBilateralFilter
hbVPBoxFilter
hbVPCanny
hbVPCvtColor
hbVPCornerHarris
hbVPDilate
hbVPEqualizehist
hbVPErode
hbVPFilter2d
hbVPFlip
hbVPGaussianBlur
hbVPIntegral
hbVPJPEGEncode
hbVPJPEGDecode
hbVPLaplacianFilter
hbVPMedianBlur
hbVPOpticalFlowPyrLK
hbVPPyrDown
hbVPPyrUp
hbVPRemap
hbVPResize
hbVPRoiResize
hbVPRotate
hbVPSepFilter2d
hbVPSobel
hbVPStitch
hbVPThreshold
hbVPTranspose
hbVPVideoEncode
hbVPVideoDecode
hbVPWarpAffine
hbVPWarpPerspective
Environment Variable

Model Inference Development

Model Inference Application Development Guide

Model Inference API Introduction

Model Inference API Overview

Data Type and Data Structure

HB_DNN_TENSOR_MAX_DIMENSIONS
hbDNNPackedHandle_t
hbDNNHandle_t
hbDNNDataType
hbDNNTensorShape
hbDNNQuantiShift
hbDNNQuantiScale
hbDNNQuantiType
hbDNNTensorProperties
hbDNNTensor
hbDNNRoi

API Interface

Version Info
Model Loading & Releasing
Model Info
Model Inference
Status Code
Alignment Rule
Dynamic input Introduction
NV12 Introduction
Configuration Info
Basic Sample User Guide
AI Benchmark User Guide

Model Inference Tool Introduction

Common Operations
The hrt_model_exec Tool Introduction

High Performance Library

HPL Introduction
Quickstart
Module Architecture
Performance Indicator

High Performance Algorithm

Overview
Fast Fourier Transform
Inverse Fast Fourier Transform
Fast Fourier Transform 2D
Inverse Fast Fourier Transform 2D
Sample

HPL API Introduction

HPL API Introduction

Data Structure

HB_HPL_MAX_DIMS
hbHPLDataType
hbHPLImFormat
hbHPLImaginaryData
hbFFTPointSize

Functional Interface

hbFFT1D
hbIFFT1D
hbFFT2D
hbIFFT2D

UCP Common API Introduction

Overview

Data Structure

Version Information Type
hbUCPTaskHandle_t
hbUCPTaskDoneCb
HB_UCP_ALL_BACKENDS
hbUCPBackend
hbUCPTaskPriority
HB_UCP_INITIALIZE_SCHED_PARAM
hbUCPSchedParam
hbUCPSysMem
hbUCPSysMemFlushFlag

Functional Interface

hbUCPGetVersion
hbUCPGetSocName
hbUCPSubmitTask
hbUCPWaitTaskDone
hbUCPSetTaskDoneCb
hbUCPReleaseTask
hbUCPMalloc
hbUCPMallocCached
hbUCPMemFlush
hbUCPFree
hbUCPGetErrorDesc
Environment Variable
Error Code
FAQ

UCP Performance Analysis Tools

UCP Trace Instructions
The hrt_ucp_monitor Tool Introduction

Advanced Contents

Horizon Torch Samples

Overview

FRAMEWORK

Framework
Execution Engine

TUTORIALS

Quantized Training
Writing Specifications of set_qconfig and Customization of qconfig
How to Turn on AMP
Model Compilation
Registration Mechanism
Config File
Config Construction of FCOS-EfficientNetB0
Overriding Config Parameters Using Commands
FLOPs Tool
Calibration
Start-up Method

EXAMPLES

Docker Image
Executing the Script
Multi-machine Instructions
MobileNetV1 Classification Model Training
FCOS Detection Model Training
UNet Segmentation Model Training
PwcNet Optical Flow Prediction Model Training
PointPillars Detection Model Training
PointPillars Detection Model Training (No config)
PointPillars Detection Model Training (No config and HAT Trainer)
GaNet Lane Line Detection Model Training
FCOS3D Detection Model Training
Motr Multiple Object Track Model Training
CenterPoint Detection Model Training
StereoNet Binocular Depth Estimation Model Training
Bev Multi-task Model Training
Car Keypoint Detection Model Training
lidarMultiTask Model Training
DenseTNT Trajectory Prediction Model Training
Deformable DETR Detection Model Training
MapTR Training
QCNet Trajectory Prediction Model Training
Modelzoo

API REFERENCE

callbacks
data
engine
metrics
models
optimizers
profiler
visualize
DSP Development Documentation
HBDK Tool API Reference
HBIR Operator Definition

Appendix

Toolchain Operator Support Constraint List

ONNX Operator Support List
Torch Operator Support List
Dataset Download
Common Abbreviations
Previous PageMapTR Training
Next pageModelzoo
On This Page
  • Model Training
  • Exporting the Fixed-Point Model
  • Model Validation
  • Model Inference
  • Simulation Onboard Accuracy Validation
  • Fixed-Point Model Check and Compilation
  • Training Details
  • Model Construction
  • Data Loading
  • Training Strategy
  • Quantization-Aware Training
  • Quantization Sensitivity Operator Sorting