-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Failed to create TFLite interpreter from model #65
Comments
I do believe you have to edit your metro.config.js file to configure your project to be able to interoperate .tflite files. Try adding this code to metro.config.js:
|
Already edited my metro config and it's reading the tflite file otherwise it would give below error. However while loading the application I am getting the below error |
did you rebuild pods & rebuild your app after enabling the core ml delegate? |
Hello, @Swikriti0998 did you solve this ? I encounter the exact same issue. |
@Swikriti0998 what framework did you use to build your model? After researches I saw this is related to the model's architecture. This library doesn't seem to take different model architectures into account for the moment (I might be wrong but this is my understanding) |
What's interesting is I also noticed issues with newly trained models, from VertexAI exported as TFLite. My older model from Aug 26 works, but the model from Oct 3 will not load. I tried updating package to newer version. |
I also experiencing the error. Our project is currently on react-native 0.72.6 and react-native-fast-tflite 1.5 1 with delegates enabled (core-ml/nnapi). There are three .tflite files in the repo: Int8, Float16 and Float32. On Android Int8 and Float32 models work great, but Float16 won't load. On iOS all three models are throwing the error. I don't know exact details, about the files, when and how, they were converted. Just pointing the weird behavior, and will keep you updated if any updates on the topic. |
I am trying to load the tensor flow model but its giving me the below error, I have my pose-detection.tflite in assets/pose-detection
error: Failed to load Tensorflow Model 3! [Error: Failed to create TFLite interpreter from model "http://192.168.1.10:8081/assets/?unstable_path=.%2Fassets%2Fpose-detection/pose-detection.tflite?platform=ios&hash=361a28992b649751d6d66cd8cfb1e2a6"!]
I tried both true and false inside the app.config.ts file.
'react-native-fast-tflite',
{
enableCoreMLDelegate: false/true,
}
The text was updated successfully, but these errors were encountered: