Model Export Tool
The algorithm package provides two model export tools, supporting the export of ONNX and HBIR models
- tools/export_onnx.py: ONNX model export tool. The exported ONNX model is for visualization only and does not support inference.
- tools/export_hbir.py: HBIR model export tool.
Export the ONNX Model
Usage
Run the script tools/export_onnx.py and specify the path to the configuration file. The script will automatically read the model, input, export path and other information from the configuration to complete the export of the ONNX model.
Parameters Introduction
Usgae Example
Take the resnet50_imagenet model as an example:
Export the HBIR Model
Usage
Run the script tools/export_hbir.py and specify the path to the configuration file. The script will automatically read the model, input, export path and other information from the configuration to complete the export of the HBIR model.
If you want to deploy the model provided by the reference algorithm package on nash-p, nash-b, or nash-h, you need to pass the corresponding march parameter.
Parameters Introduction
Usgae Example
Take the resnet50_imagenet model as an example:
For a detailed introduction to the configuration file, please refer to the [Configuration] section [config configuration] (../config/keywords).
