赞
踩
https://www.python.org/ftp/python/3.10.6/python-3.10.6-amd64.exe
pip换源
pip config set global.index-url https://mirror.baidu.com/pypi/simple
升级pip
python.exe -m pip install --upgrade pip
安装git
https://github.com/git-for-windows/git/releases/download/v2.39.2.windows.1/Git-2.39.2-64-bit.exe
克隆项目
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
编辑webui-user.bat
set COMMANDLINE_ARGS=--autolaunch --share --xformers
安装visual studio(防止安装cuda toolkit时报错)
https://c2rsetup.officeapps.live.com/c2r/downloadVS.aspx?sku=community&channel=Release&version=VS2022&source=VSLandingPage
勾选使用c++的桌面开发安装即可
升级最新nvidia驱动
https://www.nvidia.cn/Download/index.aspx?lang=cn
安装nvidia cuda toolkit
https://developer.nvidia.com/cuda-downloadshttps://developer.download.nvidia.com/compute/cuda/12.4.0/local_installers/cuda_12.4.0_551.61_windows.exe
===========================开始执行===========================
执行方法1:双击webui-user.bat(会创建虚拟环境,根目录下会生成venv文件夹)
执行方法2:python launch.py(不会创建虚拟环境)
根目录下创建openai目录,进入后克隆(防止生成图片时报错)
git clone https://www.modelscope.cn/AI-ModelScope/clip-vit-large-patch14.git
如果安装了roop还是controlnet插件,需要安装visual studio,勾选c++的桌面开发安装
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。