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

Error: No such file or directory #12

Closed
sloganking opened this issue Nov 15, 2022 · 3 comments
Closed

Error: No such file or directory #12

sloganking opened this issue Nov 15, 2022 · 3 comments

Comments

@sloganking
Copy link

Running

cargo run --example stable-diffusion --features clap -- --prompt "A very rusty robot holding a fire torch." --cpu all

Yields

Error: No such file or directory (os error 2)

But doesn't tell me what directory is missing. I assume it can't find the model weights but have no idea how to fix. Can this error me made more clear?

@sloganking
Copy link
Author

I have solved this by following https://github.com/LaurentMazare/diffusers-rs#getting-the-weights-and-vocab-file

But I still think the error message could be made more clear.

@LaurentMazare
Copy link
Owner

Right, I just made some changes so that the error is more explicit and includes the file name (fwiw it's a long standing debate whether the rust standard library should do that by default, see this issue).

@sloganking
Copy link
Author

I see it now gives

Error: error opening "data/bpe_simple_vocab_16e6.txt"

Caused by:
    No such file or directory (os error 2)

I'm happy with this. So I'll close the issue for now.

You might consider linking to your #getting-the-weights-and-vocab-file section in your readme in the error message, if you want to take it a step further.

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