Skip to content
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

Unable to run the SherpaOnnx2Pass android example project #892

Closed
l3utterfly opened this issue May 19, 2024 · 4 comments
Closed

Unable to run the SherpaOnnx2Pass android example project #892

l3utterfly opened this issue May 19, 2024 · 4 comments

Comments

@l3utterfly
Copy link

I've downloaded the necessary models and configured the path for the 2pass example. I get this error in logcat: Read binary file: Load /data/user/0/com.k2fsa.sherpa.onnx/files/sherpa-onnx-streaming-zipformer-en-2023-06-26/encoder-epoch-99-avg-1-chunk-16-left-128.int8.onnx failed

Where should I copy the file to? I've copied the file to the app's private directory and still get this error. How should I modify the "modelDir"?

@csukuangfj
Copy link
Collaborator

please copy the model dir to your assets dir inside Android Studio

@l3utterfly
Copy link
Author

Is it possible to load the model from my storage instead of the asset directory?

@csukuangfj
Copy link
Collaborator

Is it possible to load the model from my storage instead of the asset directory?

yes, you need to read the code to find out how to do that.

@l3utterfly
Copy link
Author

I have figured it out, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants