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

解決在Windows安裝stable diffusion遇到“Torch is not able to use GPU”的問題

這篇具有很好參考價值的文章主要介紹了解決在Windows安裝stable diffusion遇到“Torch is not able to use GPU”的問題。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

遇到的問題

在Windows上安裝stable diffusion的最后一步執(zhí)行webui-user.bat時,提示了錯誤信息AssertionError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

具體錯誤代碼如下:

venv "C:\Users\giray\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: 67d011b
Traceback (most recent call last):
File "C:\Users\giray\stable-diffusion-webui\launch.py", line 110, in
run_python("import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'")
File "C:\Users\giray\stable-diffusion-webui\launch.py", line 60, in run_python
return run(f'"{python}" -c "{code}"', desc, errdesc)
File "C:\Users\giray\stable-diffusion-webui\launch.py", line 54, in run
raise RuntimeError(message)
RuntimeError: Error running command.
Command: "C:\Users\giray\stable-diffusion-webui\venv\Scripts\python.exe" -c "import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'"
Error code: 1
stdout:
stderr: Traceback (most recent call last):
File "", line 1, in
AssertionError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

解決方法

參考了github上的issue,需要修改webui-user.bat文件,具體更改如下:

COMMANDLINE_ARGS=
and change it to:
COMMANDLINE_ARGS= --lowvram --precision full --no-half --skip-torch-cuda-test

保存修改之后再次運行webui-user.bat就可以了。如果這個解決方法還沒解決問題,可以查看同個issue下的其它回答,或者能找到解決方法。文章來源地址http://www.zghlxwxcb.cn/news/detail-442907.html

參考鏈接

  1. Torch is not able to use GPU
  2. How to install Stable Diffusion on Windows (AUTOMATIC1111)

到了這里,關(guān)于解決在Windows安裝stable diffusion遇到“Torch is not able to use GPU”的問題的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

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

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

相關(guān)文章

  • Windows安裝Stable Diffusion ComfyUI及問題解決記錄(注意不是Stable Diffusion WebUI)

    Windows安裝Stable Diffusion ComfyUI及問題解決記錄(注意不是Stable Diffusion WebUI)

    本文是 Stable Diffusion ComfyUI 的安裝介紹,并非Stable Diffusion WebUI。該軟件使用了流程管理,目前來看更適合專業(yè)的設(shè)計師,雖然已能實現(xiàn)所有原生的功能,但軟件本身目前仍處于初級階段,還有很多地方需要改進,比如中文版、更多的擴展…的支持~~所以如果你對stable diffusion還

    2024年02月09日
    瀏覽(25)
  • Windows安裝Stable Diffusion WebUI及問題解決記錄

    Windows安裝Stable Diffusion WebUI及問題解決記錄

    本文將詳細介紹stable diffusion webui的下載、安裝及問題解決。 StableDiffusion是2022年發(fā)布的深度學(xué)習(xí)文本到圖像生成模型。它主要用于根據(jù)文本的描述產(chǎn)生詳細圖像,盡管它也可以應(yīng)用于其他任務(wù),如內(nèi)補繪制、外補繪制,以及在提示詞?(英語)指導(dǎo)下產(chǎn)生圖生圖的翻譯。它是

    2024年02月02日
    瀏覽(28)
  • stable diffusion 1.5版本windows本地部署遇到的問題

    stable diffusion 1.5版本windows本地部署遇到的問題

    本人在本地部署時,主要參考了知乎上的這篇文章: Stable Diffusion安裝教程(有問題可留言),將自己部署中遇到的問題記錄下來,以供參考。 我這里沒有使用windows的cmd,用的是Anaconda,因為1.5版本需要Python 3.10.6,而我又不想卸載之前的版本,創(chuàng)建一個conda虛擬環(huán)境即可解決

    2024年02月12日
    瀏覽(21)
  • Stable Diffusion 安裝失敗 Couldn‘t install torch. ErrorCode 2

    Creating venv in directory C:UsersAdminNameDocumentsstable diffusionstable-diffusion-webuivenv using python “C:Program FilesPython310python.exe” venv “C:UsersAdminNameDocumentsstable diffusionstable-diffusion-webuivenvScriptsPython.exe” Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Version: v1

    2024年02月06日
    瀏覽(22)
  • Windows 10安裝stable-diffusion-webui過程中出現(xiàn)報錯解決如下

    Windows 10安裝stable-diffusion-webui過程中出現(xiàn)報錯解決如下

    最近使用win10在安裝stable-diffusion-webui過程中,安裝上圖所示requirements.txt出現(xiàn)報錯解決如下, ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: ‘C:babs_4f5wo627a3crootsrecipecertifi_1663615677642workcertifi’ 解決辦法: 刪除下圖中的內(nèi)容

    2024年02月11日
    瀏覽(29)
  • 部署Stable diffusion遇到的一個問題解決

    部署Stable diffusion遇到的一個問題解決

    前兩天自己在服務(wù)器上搞了一下stable diffusion,碰到過一個問題,當(dāng)時搜了半天沒找到好的方法,后來我想了下給解決了,覺得還是來記錄一下,如果其他人也正巧遇到的話看到這個可以方便解決,當(dāng)然,是對于linux環(huán)境下來說的,不過我覺得windows應(yīng)該也一樣通用 問題大概是

    2023年04月16日
    瀏覽(26)
  • Stable Diffusion使用“面部修復(fù)”時報TypeError: ‘NoneType‘ object is not subscriptable錯

    Stable Diffusion使用“面部修復(fù)”時報TypeError: ‘NoneType‘ object is not subscriptable錯

    Stable Diffusion使用“面部修復(fù)”時報TypeError: ‘NoneType’ object is not subscriptable錯 下載【detection_Resnet50_Final.pth】和【parsing_parsenet.pth】到【repositoriesCodeFormerweightsfacelib】目錄下,并重新運行項目即可。 https://github.com/xinntao/facexlib/releases/download/v0.1.0/detection_Resnet50_Final.pth https:/

    2024年02月12日
    瀏覽(26)
  • 使用stable diffusion webui時,安裝gfpgan失敗的解決方案(windows下的操作)

    使用stable diffusion webui時,安裝gfpgan失敗的解決方案(windows下的操作)

    1.問題描述 初次打開stable diffusion webui時,需要安裝gfpgan等github項目。但在安裝gfpgan時,顯示 RuntimeError: Couldn\\\'t install gfpgan 2.解決方案 無法安裝gfpgan的原因是 網(wǎng)絡(luò)問題,就算已經(jīng)科學(xué)上網(wǎng),并設(shè)置為全局,也無法從github上下載源代碼,從而導(dǎo)致install失敗。 解決方法是直接到

    2024年02月03日
    瀏覽(27)
  • windows 的torch.cuda.is_available()為False,安裝gpu版本的torch

    問題:torch.cuda.is_available()為False 查看當(dāng)前電腦cuda是否可用,代碼: 輸出:

    2024年02月02日
    瀏覽(24)
  • 運行stable-diffusion-xl-refiner-1.0遇到version `GLIBCXX_3.4.29‘ not found的問題

    https://huggingface.co/stabilityai/stable-diffusion-xl-refiner-1.0 在運行示例程序時候遇到GLIBCXX_3.4.29‘ not found diffusers to = 0.18.0 以前也遇到過GLBXX沒有的問題,通過編譯高版本的GCC,感覺頭大了, 但是這次其實的裝的python3.10的環(huán)境中帶有的,通過搜尋到,然后鏈接到該so就可以了 1、找到高

    2024年02月06日
    瀏覽(23)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包