最近更新于 2025-05-02 20:13
很久没有使用 Stable Diffusion 了,现在计划用它来设计软件的 logo,刚才配置环境报错
C:\tools\stable-diffusion-webui-1.10.1\venv\lib\site-packages\huggingface_hub\file_download.py:896: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
warnings.warn(
Running on local URL: http://127.0.0.1:7860
Traceback (most recent call last):
File "C:\tools\stable-diffusion-webui-1.10.1\launch.py", line 48, in <module>
main()
File "C:\tools\stable-diffusion-webui-1.10.1\launch.py", line 44, in main
start()
File "C:\tools\stable-diffusion-webui-1.10.1\modules\launch_utils.py", line 469, in start
webui.webui()
File "C:\tools\stable-diffusion-webui-1.10.1\webui.py", line 79, in webui
app, local_url, share_url = shared.demo.launch(
File "C:\tools\stable-diffusion-webui-1.10.1\venv\lib\site-packages\gradio\blocks.py", line 1971, in launch
raise ValueError(
ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True or check your proxy settings to allow access to localhost.
Applying attention optimization: Doggettx... done.
Model loaded in 10.6s (load weights from disk: 1.0s, create model: 2.8s, apply weights to model: 5.8s, apply half(): 0.1s, apply dtype to VAE: 0.1s, load textual inversion embeddings: 0.1s, calculate empty prompt: 0.4s).
请按任意键继续. . .
直接原因就是我设置了代理,这个是设置给 cmd 的,cmd 再运行 Stable Diffusion,这个代理会把本地地址一起代理,导致没法正常工作
再加一行
set no_proxy=localhost,127.0.0.1,::1
就可以正常工作了
Stable Diffusion Webui 启动时报错:When localhost is not accessible, a shareable link must be created. Please set share=True or check your proxy settings to allow access to localhost.