Hello everyone,
I am currently facing a persistent issue with using TensorFlow 2.8.4
, tflite-model-maker
and Python 3.8.16
to train my TFLite models. While I have been able to train my models successfully and obtain TFLite models, I have encountered an error when attempting to use them on Android. Specifically, I receive the error message "java.lang.AssertionError: Error occurred when initializing ObjectDetector: Output tensor at index 0 is expected to have 3 dimensions, found 2."
This error is related to the version of TensorFlow and TFLite that I am using.
Therefore, I am searching for a solution that will allow me to use the latest versions of TensorFlow
and TFLite_Model_Maker
while avoiding these version-related errors. My ultimate goal is to use TFLite models
on Android
without encountering these issues.
Thank you in advance for any assistance you can provide.