美文网首页
Stable Diffusion WebUI 安装

Stable Diffusion WebUI 安装

作者: 寓含 | 来源:发表于2024-02-07 15:53 被阅读0次

安装方式:

使用发行包在带有 NVidia-GPU 的 Windows 10/11 上安装

sd.webui.zip从v1.0.0-pre下载并解压其内容。

跑步update.bat。

跑步run.bat。

Windows 上自动安装

安装Python 3.10.6(较新版本的Python不支持torch),选中“Add Python to PATH”。【python一定要是3.10.6】这个版本 (https://www.python.org/downloads/release/python-3106/)

安装git

下载 stable-diffusion-webui 存储库,例如通过运行git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git.

webui-user.bat以普通非管理员用户身份从 Windows 资源管理器运行。【windows用户直接双击webui-user.bat ,就可以了】

常见问题:

(1)如果你使用其他 python版本执行过webui-user.bat,需要删除调stable-diffusion-webui下的venv文件夹。重新安装Python 3.10.6 这个版本的python后重新双击webui-user.bat

(2)在执行:webui-user.bat 时,会报错:RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

   我们可以根据提示进行操作:

点击编辑webui-user.bat ,加上 --skip-torch-cuda-test,如下图所示

Linux 上的自动安装

安装依赖项:

#Debian-based:sudo apt install wget git python3 python3-venv libgl1 libglib2.0-0#Red Hat-based:sudo dnf install wget git python3 gperftools-libs libglvnd-glx#openSUSE-based:sudo zypper install wget git python3 libtcmalloc4 libglvnd#Arch-based:sudo pacman -S wget git python3

导航到您想要安装 WebUI 的目录并执行以下命令:

wget -q https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh

跑步webui.sh。

检查webui-user.sh选项。

相关文章

网友评论

      本文标题:Stable Diffusion WebUI 安装

      本文链接:https://www.haomeiwen.com/subject/oevhadtx.html