Stable Diffusion 常见问题汇总

Stable Diffusion 常见问题汇总

Published
June 5, 2023
Tags
Stable Diffusion
Description
总结记录一些遇到的问题及解决方案

如何显示 LORA 等模型的预览图片

 
方法一:在 models/Lora 目录下,存放一张与 Lora 同名的 .png 文件然后 refresh 即可。
注:checkpoints 同理~
 
方法二:在 stable-diffusion 中,使用对应的 Lora 跑一张图,然后鼠标放在那个 Lora 上面,会出现一个 replace preview 按钮,点击即可将预览图替换成当前训练的图片。
具体如下图:
notion image
 

解决 Stable Diffusion 开启共享后无法安装插件的问题

修改 webui-user.bat
@echo off set PYTHON= set GIT= set VENV_DIR= set COMMANDLINE_ARGS=--no-half --disable-nan-check --port=7860 --listen --enable-insecure-extension-access --share call webui.bat
 

Stable Diffusion下载插件、更新不稳定

使用代理软件,获取代理地址(以Clash为例)
notion image
@echo off set PYTHON= set GIT= set VENV_DIR= set COMMANDLINE_ARGS=--no-half --disable-nan-check --port=7860 --listen --enable-insecure-extension-access --share .\venv\Scripts\python.exe -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple git config --global http.proxy http://127.0.0.1:7890 git pull call webui.bat
🛠
当无需代理时 git config --global --unset http.proxy