Код: Выделить всё
python => 3.11.11< /code>
tensorflow => 2.17.0< /code> < /p>
Аналогично, в стороне Android я использовал следующие совместимые библиотеки
tensorflow Lite => 2.17.0< /code>
tensorflow Lite Gpu => 2.17.0< /code>
tensorflow Lite Task Vision => 0.4.4
Также я использовал следующее, чтобы преобразовать Tensorflow в Litern Model
converter = tf.lite.TFLiteConverter.from_keras_model(model)
converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS]
converter.optimizations = [tf.lite.Optimize.DEFAULT]
tflite_model = converter.convert()
< /code>
But still I am getting the following error
Didn't find op for builtin opcode 'FULLY_CONNECTED' version '12'. An older version of this builtin might be supported. Are you using an old TFLite binary with a newer model?
Error getting native address of native library: task_vision_jni
java.lang.IllegalArgumentException: Error occurred when initializing ImageClassifier: Didn't find op for builtin opcode 'FULLY_CONNECTED' version '12'. An older version of this builtin might be supported. Are you using an old TFLite binary with a newer model?
< /code>
I found some solution in
Internal error: Cannot create interpreter: Didn't find op for builtin opcode 'FULLY_CONNECTED' version '9' with firebase ml kit and tensorflow-lite
but it didn't help me specially for Verison 12
Can any please help me to identify the error and solve this problem ?
Thank you for your time and support.
Подробнее здесь: https://stackoverflow.com/questions/796 ... lly-connec