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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot