?一、No module ‘xformers’. Proceeding without it.
這是因?yàn)闆]有安裝xformers導(dǎo)致的。
解決辦法:
在webui-user.bat文件這添加一行:
set COMMANDLINE_ARGS=--xformers
如下圖所示:
試著點(diǎn)擊webui-user.bat,看能否下載,如果等了很久報(bào)錯(cuò)了,是網(wǎng)絡(luò)問題,需要科學(xué),但是科學(xué)你開全局也沒有用
解決方法:我使用的是有藍(lán)色的貓的軟件。步驟如下:
(1)打開webui中的launch.py文件,找到prepare_enviroment()函數(shù)部分,在下圖畫圈部分的網(wǎng)址https://github.com前面添加https://ghproxy.com/,然后保存文件。
然后試著點(diǎn)擊webui-user.bat,看能否下載,如果不能,繼續(xù)執(zhí)行(2)和(3)。(我是不行的)
(2)開啟服務(wù)模式,若開啟服務(wù)模式報(bào)錯(cuò),請(qǐng)參考第五節(jié)
(3)然后開啟TUN模式
?然后再次點(diǎn)擊webui-user.bat,運(yùn)行一段時(shí)間,就能夠成功安裝這些包了,如下圖所示:
二、Couldn’t install requirements for Web UI 翻看報(bào)錯(cuò)日志發(fā)現(xiàn)是出現(xiàn)如下錯(cuò)誤:
No matching distribution found for gradio==3.23
然后發(fā)現(xiàn)它使用的是國(guó)內(nèi)的源,所以這個(gè)錯(cuò)誤的原因就是當(dāng)前的源找不到這個(gè)版本的包。
解決辦法: 換其他的源
在launch.py文件中找到run_pip函數(shù),在命令后添加:
--trusted-host 信任的主機(jī)地址 -i 源地址
如下圖:
常見的源:
阿里云 http://mirrors.aliyun.com/pypi/simple/
中國(guó)科技大學(xué) https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清華大學(xué) https://pypi.tuna.tsinghua.edu.cn/simple/
中國(guó)科學(xué)技術(shù)大學(xué) http://pypi.mirrors.ustc.edu.cn/simple/
三、v1-5-pruned-emaonly.safetensors沒有下載完全就出錯(cuò)
解決辦法:從huggingface.co/CompVis/stable-diffusion-v-1-4-original/tree/main這個(gè)網(wǎng)站下載Stable Diffusion的權(quán)重文件,然后放在models/Stable Diffusion,權(quán)重文件如下:
?
?
四、GPU顯存問題
電腦顯存只有3G,第一次跑的時(shí)候出現(xiàn)了如下錯(cuò)誤:
OutOfMemoryException
解決辦法:在webui-user.bat文件中添加–lowvram這個(gè)語(yǔ)句,即:
set COMMANDLINE_ARGS=--xformers --lowvram
如下圖:
?
它適用于顯存不到2G的。
五、服務(wù)模式 無法安裝
Windows
先確定系統(tǒng)安裝了.NET framework runtime
然后嘗試手動(dòng)安裝:
- 打開?
C:/Program Files
?目錄,新建?Clash for Windows Service
?目錄 - 進(jìn)入?
安裝目錄/resources/static/files/win/[x64|arm64|ia32]/service
?目錄,拷貝里面兩個(gè) exe 文件到 1 中新建目錄中 - 進(jìn)入?
安裝目錄/resources/static/files/win/common
?目錄,拷貝?service.yml
?文件到 1 中新建目錄中 - 在 1 中新建目錄中,使用管理員權(quán)限打開 CMD 執(zhí)行一下命令:
service.exe install service.exe start
如果 install 時(shí)出現(xiàn)如下提示:
Service with id 'Clash Core Service' already exists
To install the service, delete the existing one or change service Id in the configuration file
2022-09-26 09:37:32,316 FATAL - Unhandled exception
System.Exception: Installation failure: Service with id 'Clash Core Service' already exists
at WinSW.Program.<Run>g__Install|2_0(<>c__DisplayClass2_0& )
at WinSW.Program.Run(String[] argsArray, IWinSWConfiguration descriptor)
at WinSW.Program.Main(String[] args)
System.Exception: Installation failure: Service with id 'Clash Core Service' already exists
at WinSW.Program.<Run>g__Install|2_0(<>c__DisplayClass2_0& )
at WinSW.Program.Run(String[] argsArray, IWinSWConfiguration descriptor)
at WinSW.Program.Main(String[] args)
可以先執(zhí)行:
service.exe stop
service.exe uninstall
如果安裝后,Service Mode manage 里顯示 active 但圖標(biāo)顯示紅色,可以進(jìn)入?Home Directory
?管理員啟動(dòng) CMD,執(zhí)行?icacls.exe service /remove:d Everyone
?后手動(dòng)刪除 service 文件夾,重啟 APP 即可
macOS文章來源:http://www.zghlxwxcb.cn/news/detail-423746.html
- 打開終端
- 運(yùn)行以下命令:
如要卸載則將 install 改為 uninstallcurl https://gist.githubusercontent.com/Fndroid/2119fcb5ccb5a543a8f6a609418ae43f/raw/ff63615309a9b3f3e1d682fc29bc73284816422e/mac.sh > cfw-tun.sh && chmod +x cfw-tun.sh && sudo ./cfw-tun.sh install && rm cfw-tun.sh
?文章來源地址http://www.zghlxwxcb.cn/news/detail-423746.html
到了這里,關(guān)于stable diffusion 安裝xFormers 報(bào)錯(cuò):Couldn‘t install open_clip.的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!