一,安裝環(huán)境:
????????1,Python Release Python 3.10.6 | Python.org
????????一定要安裝 Python3.10.6 以上版本,并配好環(huán)境變量。
? ? ?
? ? ? ? 2,Pytorch?&&?CUDA Toolkit Archive | NVIDIA Developer
? ? ? ? ? ? ??安裝CUDA,下載如下部署電腦截圖的對應版本。
? ? ? ? ? ? ? ?
? ? ????????安裝Pytorch?。
????????pip install torch==2.0.0+cu118 torchvision==0.15.1+cu118 -f ????????https://download.pytorch.org/whl/cu118/torch_stable.html
????????驗證CUDA與Pytorch是否正常:
????????python -c "import torch; print(torch.cuda.is_available())" 返回ture為安裝正常
3,https://git-scm.com/downloads
? ? ?安裝Git工具,這個自己網上搞定
二,下載stable-diffusion-webui代碼
??????????git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
三,cmd運行? ? ? ? ?
?????????webui-user.bat
出現(xiàn)如上問題,證明運行OK。?
四,問題
? ? ? ? 1,github下載不了,
解決辦法:編輯根目錄下launch.py
文件
將https://github.com
替換為https://ghproxy.com/https://github.com
,即使用Ghproxy代理,加速國內Git。
? ? ? ?2,般顯卡不達標,報顯存溢出了,解決辦法就是編輯根目錄下webui-user.bat
文件,試一下修改參數(shù)COMMANDLINE_ARGS
即可。
set COMMANDLINE_ARGS=--lowvram --precision full --no-half --skip-torch-cuda-test
set COMMANDLINE_ARGS=--lowvram --precision full --no-half
set COMMANDLINE_ARGS=--lowvram
? ? ? ? 3,部署后,域名解析訪問,會有如下異常:
? ?解決辦法COMMANDLINE_ARGS參數(shù)加上,--no-gradio-queue
?完整的文章來源:http://www.zghlxwxcb.cn/news/detail-594270.html
set COMMANDLINE_ARGS=--precision full --no-half --lowvram --always-batch-cond-uncond --listen --gradio-auth test:123456 --no-gradio-queue --api文章來源地址http://www.zghlxwxcb.cn/news/detail-594270.html
到了這里,關于Window 10搭建AI繪畫平臺-stable-diffusion-webui的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!