-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Model loading failed: [TypeError: dims[1] must be an integer, got: undefined] #2
Comments
Now I get |
@lakpriya1s same error here happening with Expo on my side: |
Thank you so much for bringing this issue to my attention! I'll be diving into it this week. Please keep in mind that the library is still in its early stages, so some hiccups like this are expected. Your feedback is very valuable, helping me make the project more stable every day! Best, |
Thanks for your work David 🙏 |
I just checked the example app because I thought it might be due to some API changes on Huggingface or Onnx-runtime. It turns out it's working fine on my machine. Since you said you're using it in your react-native app. Could you share a demo repository and the instructions on how you set up your environment so I can take a look? |
Hey im also having the same issue have you found a solution for it? Thanks |
Hi @Flamebamboo, I'm more than happy to help, but I cannot reproduce the error. However, one thing that comes to my mind that might caused the issue is loading the model while it has not yet been fully downloaded. Can you check if that's the case? Best, |
Describe the bug
I'm trying to use this library on my bare react native app, but after downloading the models, I'm getting this error "Model loading failed: [TypeError: dims[1] must be an integer, got: undefined]"
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Load model without any error.
Screenshots
Smartphone (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: