Picture Inference Tool
The algorithm package provides the tools/infer_hbir.py tool for the inference verification of fixed-point models (only supporting the int-infer stage).
The core part is used to load the quantized HBIR format model, complete the inference with the specified input and visualize the output results, verifying the correctness of the model's inference on the Horizon computing platform.
Usage
Run tools/infer_hbir.py, which supports custom input files or sampling input from the dataset, to complete the visual verification of the inference results. --use-dataset
Parameters Introduction
Usgae Example
Complete fixed-point model inference for resnet50_imagenet using the specified input file, and save the visualization files of inference results to the designated path.
For a detailed introduction to the configuration file, please refer to the [Configuration] section [config configuration] (../config/keywords).
