Executing the Script
In HAT, the functions that you can use and modify directly mainly include tools and configs. The tools are mainly the core functional modules, including training and validation visualization, while configs mainly contains the options and parameters that can be configured during the execution of the functional modules.
This tutorial provides you with a general execution paradigm for config and an introduction to the core functions and external interfaces of tools.
## The Execution Paradigm of config
In most cases, for the execution of tools, a config input is needed, except for some tools related to datasets or single image visualization. Therefore, the general execution paradigm can be summarized as follows:
Here we mainly introduce the core functions and external interfaces of the tools.
Introduction to the Functions and Parameters of the tools Utility
The current tools have some python scripts, each for a different function.
train.py is a training tool with the following major parameters:
predict.py is a predicting tool with the following major parameters:
model_checker.py is a checker tool for checking model executable on the BPU.
validation_hbir.py is an accuracy validation tool that provides fixed-point accuracy and fully aligned results with the on-board situations, with the following major parameters:
calops.py is the network ops calculation tool, with the following major parameters:
compile_perf_hbir.py is the compilation and performance tool, with the following major parameters:
infer_hbir.py is used to perform single image prediction, with the following major parameters:
create_data.py is used to pre-process Kitti3D lidar dataset, with the following major parameters:
export_onnx.py is used to export the model to onnx (only for visualization and does not support inference), with the following major parameters:
export_hbir.py is used to export hbir model, with the following major parameters:
gen_camera_param_nusc.py is used to get camera internal and external parameters from nuscenes, with the following major parameters:
gen_reference_points_nusc.py is used to get model input reference points from nuscenes, with the following major parameters:
homography_generator.pyis used to get ego2img matrix, with the following major parameters:
reference_points_generator.py is used to calculate model input reference points from homography matrix, with the following major parameters:
quant_analysis.py is used to analysis qat training, with the following major parameters:
The datasets directory is for dataset-related packaging and visualization tools.
