1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hmz007 6d24f2138b
Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56)
3 years ago
..
ImageTensorGenerator.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
ImageTensorGenerator.hpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
README.md Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago

README.md

The ImageTensorGenerator

The ImageTensorGenerator is a program for pre-processing a .jpg image before generating a .raw tensor file from it.

Build option: To build ModelAccuracyTool, pass the following options to Cmake:

  • -DBUILD_ARMNN_QUANTIZER=1
Cmd:
-h --help Display help messages
-f --model-format Format of the intended model file that uses the images.Different formats have different image normalization styles.Accepted values (caffe, tensorflow, tflite)
-i --infile Input image file to generate tensor from
-o --outfile Output raw tensor file path
-z --output-type The data type of the output tensors.If unset, defaults to "float" for all defined inputs. Accepted values (float, int or qasymm8)
--new-width Resize image to new width. Keep original width if unspecified
--new-height Resize image to new height. Keep original height if unspecified
-l --layout Output data layout, "NHWC" or "NCHW". Default value: NHWC

Example usage:
./ImageTensorGenerator -i /path/to/image/dog.jpg -o /output/path/dog.raw --new-width 224 --new-height 224