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 load model #82

Open
lex6i opened this issue May 3, 2024 · 4 comments
Open

Unable to load model #82

lex6i opened this issue May 3, 2024 · 4 comments
Labels
question Further information is requested

Comments

@lex6i
Copy link

lex6i commented May 3, 2024

When trying to run any of the samples I get the error "Failed to load Whisper model"
I'm running the project completely unmodified, I've tried different models as well without luck.
Any ideas on how to fix this?
using
unity 2022.3.18f1
windows 10 x64

@lex6i
Copy link
Author

lex6i commented May 3, 2024

It seems as it works if I use the supplied project, but not if I only import the package into a excisting project, which still is problematic since I cannot import it into my current project

@Macoron
Copy link
Owner

Macoron commented May 4, 2024

When installed as a package, you also need to download whisper model weights file .bin. They need to be placed in StreamingAssets folder, same as in example project. For more info check here.

Also make sure that WhisperManager have correct path to model weights that you have downloaded.

Let me know if it doesn't work.

@Macoron Macoron added the question Further information is requested label May 4, 2024
@lex6i
Copy link
Author

lex6i commented May 4, 2024

Yess I did that already and tried with different models, I also confirmed that it's finding the file, but just unable to load it as the error changes to file not found when it's absent

@Macoron
Copy link
Owner

Macoron commented May 6, 2024

Yess I did that already and tried with different models, I also confirmed that it's finding the file, but just unable to load it as the error changes to file not found when it's absent

That's very strange. Sample project should work same as a package. Tried to reproduce this problem locally, but it seems to work fine.

As a workaround, you can just copy package files (including scripts, plugins, etc) into your project. It should work same as sample project.

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

No branches or pull requests

2 participants