Help Center/ Huawei HiLens/ FAQs/ FAQs/ Algorithm Issues/ Why Is Error Code 17 Displayed During Model Inference?
Updated on 2022-08-18 GMT+08:00

Why Is Error Code 17 Displayed During Model Inference?

Cause

The input data size is different from that required by the model. In this case, the model.infer API returns an error code, that is, the number 17 of the INT format.

Solution

Check whether the actual input matches the required model input, for example, the input format (YUV/RGB) and data type (float32/int8).

For the same image, the size of the YUV format is twice that of the RGB format. To convert an RGB image to a YUV image, call the hilens.cvt_color API. For details, see Converting the Image Color Format.