Stable Diffusion ubuntu 部署,问题记录

马肤
这是懒羊羊

问题一

在使用图生图时,报错

Stable Diffusion ubuntu 部署,问题记录,在这里插入图片描述,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,应用,配置,li,第1张

NansException: A tensor with all NaNs was produced in Unet. This could be either because there's not enough precision to represent the picture, or because your video card does not support half type. Try setting the "Upcast cross attention layer to float32" option in Settings > Stable Diffusion or using the --no-half commandline argument to fix this. Use --disable-nan-check commandline argument to disable this check.

解决方案一(我单独改了这个没生效):

1、web页面修改配置

Settings > Stable Diffusion

Stable Diffusion ubuntu 部署,问题记录,在这里插入图片描述,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,应用,配置,li,第2张

应用设置,重新加载

Stable Diffusion ubuntu 部署,问题记录,在这里插入图片描述,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,应用,配置,li,第3张

解决方案二(这种只适合windows 部署的):

另一种解决方法–no-half是从选项开始。

将 webui-user.bat 文件更改为:

更改前的 webui-user.bat (示例)

@echo off
set GIT_PYTHON_REFRESH=quiet
set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=
call webui.bat

COMMANDLINE_ARGS=–no-half添加

更改 webui-user.bat 后(示例)

@echo off
set GIT_PYTHON_REFRESH=quiet
set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--no-half
call webui.bat

解决方案三:

1、在执行启动命令前,设置环境变量

export COMMANDLINE_ARGS="--xformers --no-half-vae"

2、再执行启动命令

./SD_start.sh 

我还修改过这个脚本,但是没生效,不知道是不是改错地方了,stable-diffusion-webui 目录下有个webui-user.sh 文件,stable-diffusion-webui/stable-diffusion-webui/ 下

也有个webui-user.sh 文件,我改的是下面这个目录下的 文件,没生效,最终还是在终端设置环境变量再启动,才生效了

vim stable-diffusion-webui/stable-diffusion-webui/webui-user.sh +13

问题二:

(使用SDXLRonghua_v11.safetensors 模型报错)

Stable Diffusion ubuntu 部署,问题记录,在这里插入图片描述,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,应用,配置,li,第4张

OutOfMemoryError: CUDA out of memory. Tried to allocate 3.96 GiB (GPU 0; 15.75 GiB total capacity; 6.81 GiB already allocated; 3.74 GiB free; 10.99 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

1、在执行启动命令前,设置环境变量

export COMMANDLINE_ARGS="--xformers --no-half-vae"

2、再执行启动命令

./SD_start.sh 

文章版权声明:除非注明,否则均为VPS857原创文章,转载或复制请以超链接形式并注明出处。

发表评论

快捷回复:表情:
评论列表 (暂无评论,0人围观)

还没有评论,来说两句吧...

目录[+]

取消
微信二维码
微信二维码
支付宝二维码