stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[problem]: Torch is not able to use GPU

Open nickanechi opened this issue 1 year ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

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

nickanechi avatar Jun 01 '23 17:06 nickanechi

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

aninsultedcat avatar Jun 01 '23 20:06 aninsultedcat

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

system3600 avatar Jun 03 '23 19:06 system3600

I am experiencing the same issue on Nvidia RTX GPU

flogracso avatar Jun 07 '23 20:06 flogracso

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.

SGKino avatar Jun 19 '23 14:06 SGKino

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

Gokashi8888 avatar Aug 06 '23 02:08 Gokashi8888