Stable Diffusion Webui AMD 安装
准备gitanconda3可选Zludaamd hipTheROck支持原生PyTorch我的显卡没有对应版本感兴趣可以试试前期安装和原本SDW一样适用于AMD的部分会标注出来TheROckhttps://github.com/ROCm/TheRockhttps://github.com/ROCm/TheRock参考https://zhuanlan.zhihu.com/p/609524290https://zhuanlan.zhihu.com/p/609524290https://github.com/lshqqytiger/ZLUDA/blob/master/README.mdhttps://github.com/lshqqytiger/ZLUDA/blob/master/README.mdHIP AMD官方https://www.amd.com/zh-cn/developer/resources/rocm-hub/hip-sdk.htmlhttps://www.amd.com/zh-cn/developer/resources/rocm-hub/hip-sdk.html替换https://github.com/likelovewant/ROCmLibs-for-gfx1103-AMD780M-APUhttps://github.com/likelovewant/ROCmLibs-for-gfx1103-AMD780M-APU查看是否支持和GFX版本https://rocm.docs.amd.com/projects/install-on-windows/en/develop/reference/system-requirements.htmlhttps://rocm.docs.amd.com/projects/install-on-windows/en/develop/reference/system-requirements.html原文件备个份library放入.\Program Files\AMD\ROCm\6.2\bin\rocblasrocblas.dll放入.\Program Files\AMD\ROCm\6.2\bin\设置环境变量为安装ROCm的位置下的bin文件夹举个栗子C:\Program Files\AMD\ROCm\6.2\binStable Diffusion Webui amd如果使用conda安装前把webui-user.bat的set VENV_DIR后面加一根-变成set VENV_DIR-不改就是环境默认装到应用文件夹内安装过程中文件可能下载失败可以复制网址先下载再手动安装pip install XXX.whl启动指令conda activate stablediffusionwebui cd /d G:\Program Files\stable-diffusion-webui python launch.py --use-zluda遇到的问题git clone --config core.filemodefalse网络问题会弹出代码例如下复制粘贴执行git clone --config core.filemodefalse https://github.com/AUTOMATIC1111/stable-diffusion-webui-assets.git G:\Program Files\stable-diffusion-webui\repositories\stable-diffusion-webui-assetsInstalling requirements网络不好可以挂个代理或换源或者参考下面的解决方式RuntimeError: Couldnt clone XXX原因一样网络不好切换源下载过程中不会显示出来理论上挂一晚上就好了?引用下这位大佬的文章轻松解决https://blog.csdn.net/lvhjean/article/details/89600461https://blog.csdn.net/lvhjean/article/details/89600461https://blog.csdn.net/Bankcary/article/details/131237002https://blog.csdn.net/Bankcary/article/details/131237002pip3 install numpy -i https://repo.huaweicloud.com/repository/pypi/simple/ -r requirements.txterror: resolution-too-deep下载了链接里面的安装包安装后检测到下载了但是又没安装解决手动强制安装安装的时候后面加上--force-reinstallpip install 包名.whl --force-reinstall先卸载原来的包再输入安装老版本pip3 install 包名版本号