Part Number: MSPM0G5187
hi,
tvmgen_default.h from LENET5, the input format is as below.
/* Input feature normalization parameters:
* input_int = clip(((int32_t)((input_float + bias) * scale)) >> shift, min, max)
* where (min, max) = (-128, 127) if int8 type, (0, 255) if uint8 type
*/
#define TVMGEN_DEFAULT_BIAS_LEN 1
#define TVMGEN_DEFAULT_SCALE_LEN 1
#define TVMGEN_DEFAULT_SHIFT_LEN 1
extern const float tvmgen_default_bias_data[] __attribute__((weak)) = {-0.710783};
extern const int32_t tvmgen_default_scale_data[] __attribute__((weak)) = {229};
extern const int32_t tvmgen_default_shift_data[] __attribute__((weak)) = {2};
so, the input data format is float.
normally, the data from image sensor is 8bit(0-255). It takes time to do convert. If don't convert format as mentioned in tvmgen_default.h, what happen?
Or how to input the image with 8bit format?
BR,
frank