CompVis / stable-diffusion

A latent text-to-image diffusion model
https://ommer-lab.com/research/latent-diffusion-models/
Other
66.51k stars 9.97k forks source link

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

Open Ellenke opened 3 months ago

Ellenke commented 3 months ago

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

PlanktonQAQ commented 3 months ago

I have the same problem, do you solve it?

PlanktonQAQ commented 3 months ago

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.

ema7569 commented 2 months ago

spyware