-
Notifications
You must be signed in to change notification settings - Fork 106
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
could not invoke TfliteReactNative.loadModel is null models/mobilenet_v1_1.0_224.tflite #12
Comments
I am facing this problem. |
Hi guy. i already sovle this problem( see reneweb/react-native-tensorflow#34).
|
really? TFLite ending is |
I have also the same issue:
This is how I initialize the model:
I'm passing the path to model file and labels as props. This approach is working exactly the same way for react-native-tensorflow but with a .pb file of caurse instead of an .tflite file as in this case. By the way:
but it was due of missing steps from Android part, so I'm adding it here, just in case someone else ends up in the same situation and needs quick help. |
Any updates on how to fix this? I am also getting this same error. I used the example code provided in the repo and have placed the models and labels in the android/app/src/main/assets directory as well, and in a models directory in my react-native code src. |
nope and the project seams not to be updated as frequently as it should to become reliable. |
Hey @Macilias, thanks for the suggestion will look into it as well!
|
@marikani @ShaharyarMaroof |
Hey @robsonpsdesv I was able to get the model up by following these steps which are similar to the ones @ShaharyarMaroof did
Do let us know what your error might have been |
Yes @ShaharyarMaroof succecfuly, tks;) |
Hello, if possible, can you please share your working code? |
My solution is related with emulator. If you are using real device it works. |
Since the official docs do not tell us to create a 'models' directory inside the 'assets' directory, removing 'models' from the path should work.
|
No description provided.
The text was updated successfully, but these errors were encountered: