The hb_config_generator Tool
The hb_config_generator is used to support you in obtaining the simplest yaml configuration file and yaml configuration file with all parameter defaults during model compiling. Among them:
- The simplest yaml configuration file contains the minimal parameter configuration which you can use to quickly verify that the model conversion process performs properly.
- The yaml configuration files with all parameter defaults contains all the parameters that have default values when the model is compiled.
How to Use
- Generate a simplest yaml configuration file:
- Generate a simplest yaml configuration file based on model information:
- Generate a yaml configuration file containing all the default values of the parameters:
- Generate a yaml configuration file containing all the default values of the parameters based on model information:
Parameters
| PARAMETER | DESCRIPTION |
-h, --help | Displays help information. |
-s, --simple-yaml | Generate a simplest yaml configuration file that you can use to quickly verify that the model conversion performs properly. |
-f, --full-yaml | Generate a yaml configuration file containing all the default values of the parameters. |
-m, --model | Caffe or ONNX model file. |
-p, --proto | Specify the Prototxt file of the Caffe model. |
--march | BPU's micro architectures, for J6E processor, you should specify it to nash-e, for J6M processor, you should specify it to nash-m, for J6P processor, you should specify it to nash-p. |
Output Contents
The hb_config_generator command will generate the simplest yaml configuration file or the yaml configuration file with default values for all parameters, depending on your configuration.
Attention
Please note that you need to modify the default values in the yaml file that contained the full parameter defaults to your current reality before you can use it.
