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.

How to Use

hb_eval_preprocess [OPTIONS]

Parameters

PARAMETERDESCRIPTION
-h, --helpDisplays help information and exits.
--versionDisplays version information and exits.
-m, --model_nameSpecifies the model name. You can use the hb_eval_preprocess --help command to see supported models.
-i, --image_dirSpecifies the path of input images.
-o, --output_dirSpecifies the output path.
-v, --val_txtSpecifies the name of the image file required by the evaluation. The preprocessing will use these names to generate images.

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.