stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: Installing On Ubuntu 22.04 with lambda stack and a 3060.
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
when it goes to start up it says there is no GPU. But there is and other programs can see it and use it.
Steps to reproduce the problem
- Ran the wget command
- then when it goes to start after installing it says it cant launch because there is no GPU.
- I'm thinking it has to do with the virtual environment
What should have happened?
It should have found my 3060 and started the program
Commit where the problem happens
baf6946e06249c5af9851c60171692c44ef633e0
What Python version are you running on ?
Python 3.10.x
What platforms do you use to access the UI ?
Linux
What device are you running WebUI on?
Other GPUs
What browsers do you use to access the UI ?
Mozilla Firefox
Command Line Arguments
No
List of extensions
No
Console logs
################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################
################################################################
Running on dev user
################################################################
################################################################
Repo already cloned, using it as install directory
################################################################
################################################################
Create and activate python venv
################################################################
################################################################
Launching launch.py...
################################################################
Cannot locate TCMalloc (improves CPU memory usage)
Python 3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0]
Version: v1.3.2
Commit hash: baf6946e06249c5af9851c60171692c44ef633e0
Traceback (most recent call last):
File "/home/dev/Downloads/stable-diffusion-webui/launch.py", line 38, in <module>
main()
File "/home/dev/Downloads/stable-diffusion-webui/launch.py", line 29, in main
prepare_environment()
File "/home/dev/Downloads/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
have you installed CUDA?
https://developer.nvidia.com/cuda-11-8-0-download-archive?target_os=Linux
I use Ubuntu 22.04, NVIDA GPU and have same issue, in my case, I install pytorch 2.0.1 without rocm5.4.2 and it works
You can change this code in webui.sh file: export TORCH_COMMAND="pip install torch==2.0.1+rocm5.4.2 torchvision==0.15.2+rocm5.4.2 --index-url https://download.pytorch.org/whl/rocm5.4.2"
to export TORCH_COMMAND="pip install torch==2.0.1 torchvision==0.15.2 --index-url https://download.pytorch.org/whl/cu118"
Thanks I will try this when I get home.