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

[Bug]: (STABLE DIFFUSION BUG) AssertionError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

Open mhunter314 opened this issue 3 years ago • 2 comments

Is there an existing issue for this?

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

What happened?

venv "C:\Users\Sky\Downloads\stable-diffusion-webui-master\stable-diffusion-webui-master\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)] Commit hash: Traceback (most recent call last): File "C:\Users\Sky\Downloads\stable-diffusion-webui-master\stable-diffusion-webui-master\launch.py", line 205, in prepare_enviroment() File "C:\Users\Sky\Downloads\stable-diffusion-webui-master\stable-diffusion-webui-master\launch.py", line 151, in prepare_enviroment 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\Sky\Downloads\stable-diffusion-webui-master\stable-diffusion-webui-master\launch.py", line 57, in run_python return run(f'"{python}" -c "{code}"', desc, errdesc) File "C:\Users\Sky\Downloads\stable-diffusion-webui-master\stable-diffusion-webui-master\launch.py", line 33, in run raise RuntimeError(message) RuntimeError: Error running command. Command: "C:\Users\Sky\Downloads\stable-diffusion-webui-master\stable-diffusion-webui-master\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

Steps to reproduce the problem

So when I go to cmd to to install torch this error message pops up everytime I have tried looking into the problem and can't find out what's wrong.

What should have happened?

It should install torch and give me a URL

Commit where the problem happens

.

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

No response

Additional information, context and logs

No response

mhunter314 avatar Oct 29 '22 01:10 mhunter314

What GPU do you have?

mykeehu avatar Oct 29 '22 08:10 mykeehu

Same for me. I've got 1060 6gb, running cuda 11.7 (uninstalled 11.8). Python 3.10.6

Mikolaj7777 avatar Nov 12 '22 00:11 Mikolaj7777

Closing as stale.

catboxanon avatar Aug 03 '23 17:08 catboxanon