stable-diffusion icon indicating copy to clipboard operation
stable-diffusion copied to clipboard

run 'python scripts/txt2img.py --prompt "a photograph of an astronaut riding a horse" --plms ' fail

Open Ellenke opened this issue 11 months ago • 3 comments

After i run the code 'python scripts/txt2img.py --prompt "a photograph of an astronaut riding a horse" --plms ' it occurs the problem: OSError: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like CompVis/stable-diffusion-safety-checker is not the path to a directory containing a file named preprocessor_config.json. Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.

HOW TO SOLVE IT

Ellenke avatar Mar 26 '24 15:03 Ellenke

I have the same problem, do you solve it?

PlanktonQAQ avatar Mar 28 '24 03:03 PlanktonQAQ

Because the terminal can not connect the 'https://huggingface.co/', maybe you can use a proxy and also set the terminal to use the proxy to solve the problem.

PlanktonQAQ avatar Apr 03 '24 05:04 PlanktonQAQ

spyware

ema7569 avatar Apr 13 '24 21:04 ema7569