mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

[LLM][falcon_cpu]Failed to run on Android Device (internal:Failed to initialize engine: %s Failed to create engine: INTERNAL:;RET_CHECK failure(mediapipe/tasks/cc/genai/inference/utils/xnn_utils/tflite_weight_accessor.cc:102)tflite_model_

Open charles-cloud opened this issue 1 year ago • 2 comments

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)

None

OS Platform and Distribution

Android 12

MediaPipe Tasks SDK version

MEDIAPIPE_FULL_VERSION = "0.10.15"

Task name (e.g. Image classification, Gesture recognition etc.)

LLM

Programming Language and version (e.g. C++, Python, Java)

java

Describe the actual behavior

Failed to execute it on device

Describe the expected behaviour

It should run on device.

Standalone code/steps you may have used to try to get what you need

1. Convert the model to tflite and change the model path in Inference.kt
2. Create APK
3. Run it on device

Other info / Complete Logs

No response

charles-cloud avatar Sep 02 '24 04:09 charles-cloud