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

部署stable diffusion 錯(cuò)誤torch.cuda.OutOfMemoryError: CUDA out of memory.

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

以來安裝完畢,開始執(zhí)行web_ui.bat

錯(cuò)誤截圖:

部署stable diffusion 錯(cuò)誤torch.cuda.OutOfMemoryError: CUDA out of memory.

?猜測(cè)原因:GPU用錯(cuò)了

webUI.py加一行代碼

os.environ["CUDA_VISIBLE_DEVICES"] = "1"

在此啟動(dòng)web_ui.bat,成功打開網(wǎng)頁頁面文章來源地址http://www.zghlxwxcb.cn/news/detail-504557.html

到了這里,關(guān)于部署stable diffusion 錯(cuò)誤torch.cuda.OutOfMemoryError: CUDA out of memory.的文章就介紹完了。如果您還想了解更多內(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)文章

  • AI繪圖cuda與stable diffusion安裝部署始末與避坑

    AI繪圖cuda與stable diffusion安裝部署始末與避坑

    stable diffusion的安裝說起來很諷刺,最難的不是stable diffusion,而是下載安裝cuda。下來我就來分享一下我的安裝過程,失敗了好幾次,幾近放棄。 我們都知道cuda是顯卡CPU工作的驅(qū)動(dòng)(或者安裝官網(wǎng)的解釋為一個(gè)GPU加速器app),這里么有什么介紹的,既然是驅(qū)動(dòng)就要安裝對(duì)版本

    2024年04月10日
    瀏覽(29)
  • Stable diffusion報(bào)Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variab

    Stable diffusion報(bào)Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variab

    Stable diffusion 報(bào) Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check 錯(cuò)誤 及 排查解決 先說一下我的顯卡配置 3060Ti ,當(dāng)剛開始報(bào)這個(gè)錯(cuò)誤的時(shí)候,發(fā)現(xiàn)基本上很多博主說的都是在 launch.py 或者 webui-user.bat 加一個(gè)參數(shù) --precision full --no-half --skip-torc

    2024年02月09日
    瀏覽(21)
  • aarch64 arm64 部署 stable diffusion webui 筆記 【1】準(zhǔn)備 venv 安裝pytorch 驗(yàn)證cuda

    aarch64 arm64 部署 stable diffusion webui 筆記 【1】準(zhǔn)備 venv 安裝pytorch 驗(yàn)證cuda

    aarch64 pytorch(沒有aarch64對(duì)應(yīng)版本,自行編譯) pytorch-v2.0.1 cuda arm64 aarch64 torch 2.0.1+cu118 源碼編譯筆記【2】驗(yàn)證cuda安裝 成功_hkNaruto的博客-CSDN博客 [root@ceph3 stable-diffusion-webui]# /usr/local/Python-3.10.12/bin/python3 -m venv venv [root@ceph3 stable-diffusion-webui]# source venv/bin/activate (venv)[root@ceph3 stab

    2024年02月07日
    瀏覽(22)
  • python安裝cuda出現(xiàn)錯(cuò)誤提示:AssertionError: Torch not compiled with CUDA enabled

    python安裝cuda出現(xiàn)錯(cuò)誤提示:AssertionError: Torch not compiled with CUDA enabled

    在pycharm中模型訓(xùn)練時(shí),出現(xiàn)錯(cuò)誤提示:AssertionError: Torch not compiled with CUDA enabled 原因:CUDA和Torch版本不兼容 使用命令 nvcc -V 或者 nvcc --version 出現(xiàn)如下所示結(jié)果,則表明cuda安裝成功: 否則就說明沒有cuda,要重新下載安裝cuda,去官網(wǎng): https://developer.nvidia.com/cuda-downloads 檢查電

    2024年02月02日
    瀏覽(26)
  • 3060玩Stable Diffusion卡在Cuda上了,求大神伸出援手

    最近搞了一塊3060 12G,準(zhǔn)備玩一玩秋葉大神的整合包,webui可以正常啟動(dòng),但只要一跑圖,就會(huì)報(bào)錯(cuò)。看了很多大神的文章,模仿著安裝不同版本的python,N卡driver,cuda toolkit,pytorch,能改到的地方都改到了,把能試的錯(cuò)都試了,單從命令行調(diào)試來看,一切都正常,但只要一進(jìn)

    2024年02月17日
    瀏覽(14)
  • Stable Diffusion WebUI內(nèi)存不夠爆CUDA Out of memory怎么辦?

    在我們運(yùn)行SD的時(shí)候,我們經(jīng)常會(huì)爆CUDA Out of memory。 我們應(yīng)該怎么辦呢? 這是因?yàn)槲覀兊娘@存或者內(nèi)存不夠了。 如果你是用cpu來跑圖的則表示內(nèi)存不夠,這個(gè)時(shí)候就需要換個(gè)大點(diǎn)的內(nèi)存了。 如果你是用gpu來跑圖的就說明你顯存不夠用咯,這時(shí)候咋辦呢? 下面我將一一述說解

    2024年02月08日
    瀏覽(30)
  • AI繪畫——使用stable-diffusion生成圖片時(shí)提示RuntimeError: CUDA out of memory處理方法

    AI繪畫——使用stable-diffusion生成圖片時(shí)提示RuntimeError: CUDA out of memory處理方法

    RuntimeError: CUDA out of memory. Tried to allocate 1.50 GiB (GPU 0; 8.00 GiB total capacity; 5.62 GiB already allocated; 109.75 MiB free; 5.74 GiB reserved in total by PyTorch) If reserved memory is allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF 1、添加參數(shù)–n_

    2024年02月02日
    瀏覽(91)
  • 解決Stable Diffusion TensorRT轉(zhuǎn)換模型報(bào)錯(cuò)cpu and cuda:0! (when checking argument for argume

    記錄Stable Diffusion webUI TensorRT插件使用過程的報(bào)錯(cuò): RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument mat1 in method wrapper_CUDA_addmm) 拷貝下面的代碼覆蓋extensionsstable-diffusion-webui-tensorrt里的export_onnx.py文件,將模型和相

    2024年02月04日
    瀏覽(21)
  • 【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)于torch.load()更改了cuda位置還是cuda內(nèi)存不夠的問題

    關(guān)于torch.load()更改了cuda位置還是cuda內(nèi)存不夠的問題

    問題背景:在一次任務(wù)中,由于需要使用cuda進(jìn)行代碼運(yùn)行,但是分明修改了cuda到一個(gè)空閑的卡位置,但是依然抱錯(cuò)cuda out of memory的問題 在任務(wù)中,最開始原始代碼是采用以下方式盡心模型load的(指定了cuda to device的位置是空閑的卡2): 但是依然抱錯(cuò)cuda out of memory,分析如

    2024年02月15日
    瀏覽(43)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

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

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包