官方地址:
https://github.com/AUTOMATIC1111/stable-diffusion-webui
配置成功界面:

python版本:
官方要求python版本3.10.6,實(shí)測(cè)python3.9.13可用

安裝教程:
安裝Python
https://www.python.org/downloads/windows/
2. 安裝Git并配置
詳情參考:https://blog.csdn.net/shuang_waiwai/article/details/121108964
3. Clone庫stable-diffusion-webui
直接Git clone:
!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
或:

4. 運(yùn)行配置文件

安裝問題解決:
強(qiáng)烈建議有條件的使用科學(xué)上網(wǎng),可以避免很多問題。
GFPGAN安裝失敗
手動(dòng)下載:
https://github.com/TencentARC/GFPGAN
配置環(huán)境:
打開cmd,cd到GFPGAN-master下。
使用命令f:\\stable-diffusion-webui\venv\Scripts\python.exe -m pip install basicsr facexlib安裝GFPGAN的依賴。
再使用f:\\stable-diffusion-webui\venv\Scripts\python.exe -m pip install -r requirements.txt安裝GFPGAN的依賴。
使用f:\\stable-diffusion-webui\venv\Scripts\python.exe setup.py develop安裝GFPGAN。
2. CLIP安裝失敗
手動(dòng)下載:
https://github.com/openai/CLIP
配置環(huán)境:
打開cmd,cd到GFPGAN-master下。
使用命令f:\\stable-diffusion-webui\venv\Scripts\python.exe -m pip install ftfy regex tqdm
再使用f:\\stable-diffusion-webui\venv\Scripts\python.exe -m pip install -r requirements.txt
使用f:\\stable-diffusion-webui\venv\Scripts\python.exe setup.py develop
3. open_clip安裝失敗
手動(dòng)下載:
https://github.com/mlfoundations/open_clip
配置環(huán)境:
同上
或文章來源:http://www.zghlxwxcb.cn/news/detail-516401.html
!f:\\stable-diffusion-webui\venv\Scripts\python.exe -m pip install git+https://gitee.com/ufhy/open_clip.git@bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b --prefer-binary
測(cè)試:
一只會(huì)打籃球的雞文章來源地址http://www.zghlxwxcb.cn/news/detail-516401.html

到了這里,關(guān)于Windows下stable diffusion webui環(huán)境配置詳細(xì)教程的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!