国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

stable diffusion 安裝xFormers 報(bào)錯(cuò):Couldn‘t install open_clip.

這篇具有很好參考價(jià)值的文章主要介紹了stable diffusion 安裝xFormers 報(bào)錯(cuò):Couldn‘t install open_clip.。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

?一、No module ‘xformers’. Proceeding without it.

這是因?yàn)闆]有安裝xformers導(dǎo)致的。
解決辦法:
在webui-user.bat文件這添加一行:

set COMMANDLINE_ARGS=--xformers

如下圖所示:

stable diffusion 安裝xFormers 報(bào)錯(cuò):Couldn‘t install open_clip.

試著點(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/,然后保存文件。

stable diffusion 安裝xFormers 報(bào)錯(cuò):Couldn‘t install open_clip.

然后試著點(diǎn)擊webui-user.bat,看能否下載,如果不能,繼續(xù)執(zhí)行(2)和(3)。(我是不行的)
(2)開啟服務(wù)模式,若開啟服務(wù)模式報(bào)錯(cuò),請(qǐng)參考第五節(jié)
(3)然后開啟TUN模式

stable diffusion 安裝xFormers 報(bào)錯(cuò):Couldn‘t install open_clip.

?然后再次點(diǎn)擊webui-user.bat,運(yùn)行一段時(shí)間,就能夠成功安裝這些包了,如下圖所示:

stable diffusion 安裝xFormers 報(bào)錯(cuò):Couldn‘t install open_clip.

二、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 源地址

如下圖:

stable diffusion 安裝xFormers 報(bào)錯(cuò):Couldn‘t install open_clip.

常見的源:
阿里云 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)重文件如下:

?stable diffusion 安裝xFormers 報(bào)錯(cuò):Couldn‘t install open_clip.

?

四、GPU顯存問題

電腦顯存只有3G,第一次跑的時(shí)候出現(xiàn)了如下錯(cuò)誤:

OutOfMemoryException

解決辦法:在webui-user.bat文件中添加–lowvram這個(gè)語(yǔ)句,即:

set COMMANDLINE_ARGS=--xformers --lowvram

如下圖:

stable diffusion 安裝xFormers 報(bào)錯(cuò):Couldn‘t install open_clip.?

它適用于顯存不到2G的。

五、服務(wù)模式 無法安裝

Windows

先確定系統(tǒng)安裝了.NET framework runtime

然后嘗試手動(dòng)安裝:

  1. 打開?C:/Program Files?目錄,新建?Clash for Windows Service?目錄
  2. 進(jìn)入?安裝目錄/resources/static/files/win/[x64|arm64|ia32]/service?目錄,拷貝里面兩個(gè) exe 文件到 1 中新建目錄中
  3. 進(jìn)入?安裝目錄/resources/static/files/win/common?目錄,拷貝?service.yml?文件到 1 中新建目錄中
  4. 在 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

  1. 打開終端
  2. 運(yùn)行以下命令:
    curl 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
    
    如要卸載則將 install 改為 uninstall


?文章來源地址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)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • 安裝stable diffusion 本地lora訓(xùn)練lora script時(shí)報(bào)錯(cuò),xformer無法安裝

    安裝stable diffusion 本地lora訓(xùn)練lora script時(shí)報(bào)錯(cuò),xformer無法安裝

    電腦的python是3.10.8,lora-script中venv-scripts中的python只有3.9.13,安裝時(shí)一直會(huì)如圖所示報(bào)錯(cuò) 因?yàn)槭请娔X小白,認(rèn)為可能是venv里的python版本不對(duì),所以想請(qǐng)教一下大佬么們?nèi)绾尾拍苌?jí)venv里python的版本

    2024年02月12日
    瀏覽(19)
  • Stable Diffusion本地部署報(bào)錯(cuò)解決:RuntimeError: Couldn‘t determine Stable Diffusion‘s hash: xxxxxxx

    Stable Diffusion本地部署報(bào)錯(cuò)解決:RuntimeError: Couldn‘t determine Stable Diffusion‘s hash: xxxxxxx

    升級(jí)git版本等都沒有解決的話,看這里! 找到stable-diffusion-webuimoduleslaunch_utils.py,打開,搜索 current_hash (當(dāng)前是第151行): 原內(nèi)容: 改成: 如果有用記得贊賞一下喲~

    2024年02月09日
    瀏覽(19)
  • 【stable-diffusion】4090顯卡下dreambooth、lora、sd模型微調(diào)的GUI環(huán)境安裝(cuda驅(qū)動(dòng)、pytorch、xformer)

    【stable-diffusion】4090顯卡下dreambooth、lora、sd模型微調(diào)的GUI環(huán)境安裝(cuda驅(qū)動(dòng)、pytorch、xformer)

    相關(guān)博文 stable-diffusion-webui的基礎(chǔ)功能手動(dòng)安裝,了解代碼結(jié)構(gòu)、依賴、模型出處 cuda11.7下載-https://developer.nvidia.com/cuda-toolkit-archive cudnn8.6 for 11.x : https://developer.nvidia.com/rdp/cudnn-archive dreamboothlora 訓(xùn)練環(huán)境: 最原始的命令端 https://github.com/kohya-ss/sd-scripts GUI端口 https://github.co

    2024年02月06日
    瀏覽(20)
  • 關(guān)于 stable diffusion webui 啟動(dòng)提示 no module ‘xformers‘ 的解決辦法

    打開 webui_user.bat 文件,將 COMMANDLINE_ARGS= 修改為 COMMANDLINE_ARGS=--reinstall-xformers --xformers ,保存后重新啟動(dòng),啟動(dòng)時(shí)會(huì)安裝 xformers (安裝沒有進(jìn)度提示,安裝時(shí)間因?yàn)榫W(wǎng)絡(luò)原因可能會(huì)比較長(zhǎng)) 安裝完成后啟動(dòng)成功后,再次打開 webui_user.bat 文件,將 COMMANDLINE_ARGS=--reinstall-xformers

    2024年04月27日
    瀏覽(17)
  • 【Stable-Diffusion-webui】No module ‘xformers‘. Proceeding without it. 問題解決方法(Windows)

    【Stable-Diffusion-webui】No module ‘xformers‘. Proceeding without it. 問題解決方法(Windows)

    使用 ./webui-user.bat 運(yùn)行sdweb時(shí),提示如下: 雖然能夠正常運(yùn)行,但通過搜索了解到該模塊 xformers 能對(duì)GPU有一定優(yōu)化,總是裝了肯定比沒裝好(實(shí)測(cè)確實(shí)是加快了出圖的速度),所以針對(duì)該行報(bào)錯(cuò): 嘗試了網(wǎng)上能找到的幾種方法: 以該命令運(yùn)行: ./webui-user.bat --xformers 運(yùn)行結(jié)

    2024年02月08日
    瀏覽(22)
  • 【AICG】關(guān)于解決配置stable-diffusion-webui時(shí)的問題:No module ‘xformers‘. Proceeding without it.

    關(guān)于這個(gè)問題,在stable-diffusion-webui/venv/Scripts目錄下進(jìn)入terminal,輸入./activate激活stable diffusion創(chuàng)建的虛擬環(huán)境,然后使用: 就基本可以了,最后在webui-user.bat文件上右擊,點(diǎn)擊“編輯”,在set COMMANDLINE_ARGS=后面加上--xformers,保存,正常運(yùn)行,就能使用xformers進(jìn)行加速了

    2024年02月11日
    瀏覽(22)
  • 【Python】部署stable diffusion的踩坑分享(Couldn‘t clone Stable Diffusion+stderr顯示亂碼)

    【Python】部署stable diffusion的踩坑分享(Couldn‘t clone Stable Diffusion+stderr顯示亂碼)

    在部署stable diffusion時(shí),進(jìn)行到運(yùn)行webui-user.bat環(huán)節(jié)時(shí)出現(xiàn) 主要困難點(diǎn)在于錯(cuò)誤流(stderr)顯示為亂碼,無法判斷錯(cuò)誤原因 以及網(wǎng)上找不到對(duì)應(yīng)解決方案 1、首先解決亂碼問題 win11為 設(shè)置-時(shí)間與語(yǔ)言-語(yǔ)言和區(qū)域-管理語(yǔ)言設(shè)置-區(qū)域-管理-更改系統(tǒng)區(qū)域設(shè)置 將 Beta版:使用Unic

    2024年02月11日
    瀏覽(25)
  • 安裝stable diffusion報(bào)錯(cuò)

    安裝stable diffusion報(bào)錯(cuò) 總是報(bào) RuntimeError: Couldn’t install gfpgan. 最終解決方案參照網(wǎng)絡(luò)文章:https://zhuanlan.zhihu.com/p/608397859 設(shè)置了以下之后再重新運(yùn)行就可以正常安裝了 以下為具體的報(bào)錯(cuò)內(nèi)容

    2024年02月05日
    瀏覽(18)
  • Stable Diffusion WebUI安裝報(bào)錯(cuò)解決

    本人是一個(gè)AI新手,最近在研究文生圖方面相關(guān)內(nèi)容時(shí)看到Stable Diffusion WebUI這個(gè)項(xiàng)目,想在本地部署安裝試用看下效果,安裝過程中遇到了一些問題,此處記錄一下 問題1:Python 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)] Version: 1.8.0-RC Commit hash: none Installing

    2024年04月10日
    瀏覽(24)
  • stable diffusion安裝踩坑之clip安裝、git報(bào)錯(cuò)

    本節(jié)主要記錄一下在windows安裝stable diffusion時(shí),clip腳本安裝不上,本地安裝時(shí)如何鏈接到當(dāng)前庫(kù)的問題 首先,在腳本安裝clip不成功時(shí),腳本會(huì)輸出一個(gè)commend指令,復(fù)制到瀏覽器就可以很快把clip包下載下來。 下載好的包,文件夾名字改成clip(很重要),放在D:stable-diffusio

    2024年02月03日
    瀏覽(21)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包