Cannot convert between a TensorFlowLite tensor with type UINT8 and a Java object
问题 I am using MLKiT for loading custom tensoflow model While reading the model gets following error java.lang.IllegalArgumentException: Cannot convert between a TensorFlowLite tensor with type UINT8 and a Java object of type [[[[F (which is compatible with the TensorFlowLite type FLOAT32). I am using below code for object detection using tlflite file private fun bitmapToInputArray(bitmap: Bitmap): Array<Array<Array<FloatArray>>> { var bitmap = bitmap bitmap = Bitmap.createScaledBitmap(bitmap,