当前位置:   article > 正文

【Stable-Diffusion本地部署试错简集】_stablediffusion web-ui

stablediffusion web-ui

项目场景:SD本地部署试错简集(Windows10系统)

安装部署环境(准备)配置`:

  1. 硬件:系统内存至少8G,NVIDIA GPU 至少 4GB 显存,至少 10GB 可用硬盘空间,设置8GB以上虚拟内存
  2. 软件:python3.10.6;git更新至最新版本;pip23.3.1;设置系统环境变量(python)

本地部署过程:

检查软件和硬件是否满足配置

在系统命令行移动至指定安装目录后调用【默认C盘,可指定到其他盘,如d:】
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git

指令调用后将在指定目录下创建一个新的目录stable-diffusion-webui,在系统命令行移动至此目录并执行webui.bat文件
cd stable-diffusion-webuid:
webui.bat
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

等待程序加载虚拟安装环境并执行安装

安装完成后会自动在浏览器打开127.0.0.1:端口界面

汉化双语,点击UI界面内Extensions如图输入URL地址后点击install,之后点击installed界面加载后重启UI界面。

部署过程中报错简集及解决方法(不一定通用):

>curl: (7) Failed connect to raw.githubusercontent.com:443; 
>curl: (35) OpenSSL SSL_connect: Connection was reset in connection to gitforwindows.org:443
>网络代理变更或者是网络连接问题

  • 1
  • 2
  • 3
  • 4
1.|git config --global http.proxy 
2.|git config --global --unset http.proxy
3.|git config --global --unset https.proxy
tip:代理使用查询和取消代理
4.|git config--global user.name"name"
5.|git config--global user.email"email"
tip:对git进行重新配置(取消代理没有解决问题再尝试取消代理后进行重新配置)
6.|git update-git-for-windows
tip:解决版本更新引起的连接重置
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
fatal: unable to access 'https://github.com/AUTOMATIC1111/stable-diffusion-webui.git/': Failed to connect to github.com port 443: Timed out
  • 1

网络连接超时问题,安装过程中可能会有多次Runtimeerror警告及各类由于超时引起的安装失败报错问题,多次尝试重连,最好选择在网络流量较低的时间段进行。

RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
  • 1
COMMANDLINE_ARGS= --lowvram --precision full --no-half --skip-torch-cuda-test
修改文件wei-user.bat内变量的变量值,执行程序后再重新继续执行wei.bat
  • 1
  • 2
Stable diffusion model failed to load
  • 1

可以手动下载v1-5-pruned-emaonly.safetensors至指定根目录:\stable-diffusion-webui\models\Stable-diffusion内刷新加载

OSError: Can't load tokenizer for 'openai/clip-vit-large-patch14'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'openai/clip-vit-large-patch14' is the correct path to a directory containing all relevant files for a CLIPTokenizer tokenizer.
  • 1

官方网站huggingface无法连接(故障?)
Stable-diffusion配合从非官方渠道下载models加载的配置文件
openai\clip-vit-large-patch14需要提前在指定根目录:\stable-diffusion-webui\下新建。
配置文件下载后放入,指定根目录:\stable-diffusion-webui\openai\clip-vit-large-patch14

提示:以上是个人本地部署过程中简单的总结,仅供参考。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Guff_9hys/article/detail/870812
推荐阅读
相关标签
  

闽ICP备14008679号