AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
140.38k stars 26.57k forks source link

[problem]: Torch is not able to use GPU #10933

Open nickanechi opened 1 year ago

nickanechi commented 1 year ago

Is there an existing issue for this?

What happened?

when I run webui-user.bat i get this problem:

venv "C:\Users\Nico\Desktop\Ai\StableDif\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)] Version: v1.3.0 Commit hash: 20ae71faa8ef035c31aa3a410b707d792c8203a3 Traceback (most recent call last): File "C:\Users\Nico\Desktop\Ai\StableDif\stable-diffusion-webui\launch.py", line 38, in main() File "C:\Users\Nico\Desktop\Ai\StableDif\stable-diffusion-webui\launch.py", line 29, in main prepare_environment() File "C:\Users\Nico\Desktop\Ai\StableDif\stable-diffusion-webui\modules\launch_utils.py", line 257, in prepare_environment raise RuntimeError( RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

Steps to reproduce the problem

when i open the file webui-user.batI

What should have happened?

it have to give me a UI

Commit where the problem happens

venv "C:\Users\Nico\Desktop\Ai\StableDif\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)] Version: v1.3.0 Commit hash: 20ae71faa8ef035c31aa3a410b707d792c8203a3 Traceback (most recent call last): File "C:\Users\Nico\Desktop\Ai\StableDif\stable-diffusion-webui\launch.py", line 38, in main() File "C:\Users\Nico\Desktop\Ai\StableDif\stable-diffusion-webui\launch.py", line 29, in main prepare_environment() File "C:\Users\Nico\Desktop\Ai\StableDif\stable-diffusion-webui\modules\launch_utils.py", line 257, in prepare_environment raise RuntimeError( RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

What Python version are you running on ?

Python 3.10.x

What platforms do you use to access the UI ?

Windows

What device are you running WebUI on?

AMD GPUs (RX 5000 below)

What browsers do you use to access the UI ?

Mozilla Firefox

Command Line Arguments

none

List of extensions

no

Console logs

venv "C:\Users\Nico\Desktop\Ai\StableDif\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep  5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]
Version: v1.3.0
Commit hash: 20ae71faa8ef035c31aa3a410b707d792c8203a3
Traceback (most recent call last):
  File "C:\Users\Nico\Desktop\Ai\StableDif\stable-diffusion-webui\launch.py", line 38, in <module>
    main()
  File "C:\Users\Nico\Desktop\Ai\StableDif\stable-diffusion-webui\launch.py", line 29, in main
    prepare_environment()
  File "C:\Users\Nico\Desktop\Ai\StableDif\stable-diffusion-webui\modules\launch_utils.py", line 257, in prepare_environment
    raise RuntimeError(
RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

Additional information

No response

aninsultedcat commented 1 year ago

What device are you running WebUI on? AMD GPUs (RX 5000 below)

Have you referred to the following for AMD GPU's? https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-AMD-GPUs

system3600 commented 1 year ago

To use Diffusion Stable with an AMD GPU, you must use this version : https://github.com/lshqqytiger/stable-diffusion-webui-directml

flogracso commented 1 year ago

I am experiencing the same issue on Nvidia RTX GPU

SGKino commented 1 year ago

Same issue here. And I am using Nvidia RTX GPU.

Everything is working fine, until I installed the "inpaint everything" and restart the whole thing, then this error came out suddenly. I don't know if it was just an coincidence, yet even if I uninstalled that extention can't help.

Gokashi8888 commented 1 year ago

To use Diffusion Stable with an AMD GPU, you must use this version : https://github.com/lshqqytiger/stable-diffusion-webui-directml

This Definity worked for me bro I love you