FAQ
Python API FAQ
| No. | Error Message | Possible Cause | Solution |
|---|---|---|---|
| 1 | < XX > does not contain value < YY >. | The value of input YY is not within the valid range of aidlite built-in type XX. | Check the input parameter in the error line and make sure the value is within the valid range for the corresponding aidlite built-in type. |
| 2 | <class 'XX'> expected, got <YY: <class 'ZZ'>> instead. | The data type ZZ of input YY does not match the required data type XX for the function. | Check the input parameter in the error line and ensure the data type matches the required type for the function. |
| 3 | None or empty list is not allowed for input_shapes | The value of input_shapes in the set_input_tensor method is None, while the function doesn't allow this. | Ensure the value of input_shapes in set_input_tensor is not None and check the logic for assigning or retrieving this parameter. |
| 4 | None or empty list is not allowed for output_shapes | The value of output_shapes in the set_input_tensor method is None, while the function doesn't allow this. | Ensure the value of output_shapes in set_input_tensor is not None and check the logic for assigning or retrieving this parameter. |
| 5 | The data type of out_tensor_idx must be int | The out_tensor_idx parameter in the get_output_tensor method cannot be of a non-int type. | Check if the data type of out_tensor_idx is correct. |
| 6 | out_tensor_idx should >=0 | The out_tensor_idx parameter in the get_output_tensor method cannot be less than 0. | Ensure the value of out_tensor_idx is correct. |
| 7 | out_tensor_idx cannot get output_tensor | The get_output_tensor method cannot retrieve the corresponding output_tensor through the out_tensor_idx parameter. | Check if the value of out_tensor_idx is correct and whether the inference process has any exceptions. |
| 8 | TYPE_DEFAULT is invalid | The function does not allow the default value for aidlite built-in types in this context. | Modify the function input to set a value within the valid range of aidlite built-in types, excluding the default value. |
C++ API FAQ
| No. | Error Message | Possible Cause | Solution |
|---|---|---|---|
| 1 | realpath [***] failed. errmsg: No such file or directory | The model file path is incorrect or the model file does not exist. | Ensure the model file exists and the path is correct. |
| 2 | model file [***] maybe path abnormal | The model file path is incorrect or the model file does not exist. | Ensure the model file exists and the path is correct. |
| 3 | Read sysbase info file failed | Failed to read the system base information file. | Ensure the /etc/opt/aidlux/aidsys file exists and is readable. |
| 4 | Parse sysbase info failed | The content of the system base information file is abnormal. | Check the content of /etc/opt/aidlux/aidsys for abnormalities. |
| 5 | Current aidlux don't support DLC model | The current Aidlux does not support DLC model inference. | DLC models are only supported on qc8250/qc6490/qc8550 platforms. Check if you're using one of these boards. |
| 6 | Current aidlux don't support RKNN model | The current Aidlux does not support RKNN model inference. | RKNN models are only supported on the rk3588 platform. Check if you're using this board. |
| 7 | Unknown framework type | The FrameworkType type is not set. | Set the correct FrameworkType enumeration value for the model file. |
| 8 | Basic Aidlux don't support DSP/NPU | The Basic version of Aidlux does not support DSP/NPU hardware acceleration. | Use the enterprise version of Aidlux to access DSP/NPU acceleration. |
| 9 | Not support ImplementType::TYPE_&& FrameworkType::TYPE_ | The current Aidlux does not support this ImplementType + FrameworkType combination. | Check and confirm that the correct Aidlite version is installed. |
| 10 | Please activate the device to use DSP/NPU | DSP/NPU hardware acceleration is only available on an activated Aidlux device. | Ensure that Aidlux is activated on your device. |
| 11 | Error while building SNPE object. ***. error_code=204; error_message=Couldn't find name. One or more specified output layers don't exist. | Failed to construct SNPE object. | Check if the snpe_out_names attribute of the Config object is filled correctly with the Node Name attribute from the model file. |
| 12 | fast init attach_ashmem failed | Failed to connect to the services needed by the ImplementType::Fast implementation. | A reboot of the Aidlux platform is usually needed to restart the dependent services. |