I have been trying this for a last few days. I have downloaded a sample from here. I have replaced the model Detect.tflite and label file and put my own instead, but ended up with several errors as shown below:
java.lang.IllegalArgumentException: Cannot convert between a TensorFlowLite buffer with 1080000 bytes and a ByteBuffer with 270000 bytes.
And this one:
java.lang.IllegalArgumentException: Cannot copy between a TensorFlowLite tensor with shape [1, 1917, 4] and a Java object with shape [1, 10,4].
Kindly help.