6.2.10. The hb_eval_preprocess Tool¶
The hb_eval_preprocess tool is used for preprocessing image data on x86 system.
Preprocessing refers to certain image data operations before being fed into the model, e.g., image resizing, image cropping, image padding, etc.
6.2.10.1. How to Use¶
hb_eval_preprocess [OPTIONS]
6.2.10.2. Parameters¶
- Parameters:
- --version
Displays the version information and exits.
- -m, --model_name
Specifies the model name. You can use the
hb_eval_preprocess --helpcommand to see supported models.- -i, --image_dir
Specifies the path of input images.
- -o, --output_dir
Specifies the output path.
- -v, --val_txt
Specifies the name of the image file required by the evaluation. The preprocessing will use these names to generate images.
- -h, --help
Displays the help information and exits.
6.2.10.3. Output Contents¶
The hb_eval_preprocess tool will generate binary image files in the directory specified by the --output_dir parameter.
Tip
More application samples of the hb_eval_preprocess tool in the accuracy evaluations of on-board models can be found in Data Pre-process.