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

[Bug]: Problem with Linux Mint webui-user.sh not running

Open Arion107 opened this issue 1 year ago • 3 comments

Is there an existing issue for this?

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

What happened?

After following the Automatic Installation guide in the Install and Run on AMD GPUs for Linux Mint section, I have Python version 3.10.6 and my RX6600 GPU drivers updated and by following the steps and adding a ckpt model, I am going to run the webui-user.sh file after giving it permissions and still it doesn't work, or it doesn't do anything or it opens a terminal and closes it instantly, I hope you can help me please, Thank you.

Steps to reproduce the problem

  1. Go to Install and Run on AMD GPUs-Automatic Installation 2.Follow the steps and add the .ckpt model in the stable-diffusion folder 3.Right click on webui-user.sh go to permissions and activate allow execute the file as a program and exit that interface 4.double click on the .sh file and run in a terminal and it will open and close a terminal instantly

What should have happened?

Double click on webui-user.sh or open it from a terminal with ./ and that would have opened a terminal in which to execute the .sh file and give the link to generate images

Commit where the problem happens

the .sh terminal does not execute me

What platforms do you use to access the UI ?

Linux

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

I try to run it from the terminal and nothing happens and nothing opens the .sh file

List of extensions

No

Console logs

I try to run it from the terminal and nothing happens and nothing opens the .sh file

Additional information

No response

Arion107 avatar Mar 11 '23 02:03 Arion107

If you run it in a terminal window directly vs the GUI file interface does the terminal provide any feedback? Since you're using the GUI to execute it might close before you can see any information.

Trahloc avatar Mar 11 '23 02:03 Trahloc

try:

source venv/bin/activate
python launch.py --otherflags

I'm not using linux, maybe we do need to clarify wiki instruction?

ClashSAN avatar Mar 11 '23 07:03 ClashSAN

I was able to run webui.sh after giving it permissions and trying more things, and it seems that everything installs fine and works fine but after a few seconds I get this error, here is the entire terminal https://pastebin.com/H7NhhhsQ

Arion107 avatar Mar 11 '23 10:03 Arion107

Command: "/home/izamaki/stable-diffusion-webui/venv/bin/python3" -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'"

This error is because you're using AMD and not NVIDA. For some reason it's still trying to use cuda instead of whatever the AMD side uses. I haven't tested SD on AMD but I've been meaning to since I now have access to one.

Looking over the instructions and reading through your https://pastebin.com/H7NhhhsQ I see it's calling rocm so you probably can just add the --skip-torch-cuda-test arg to your command line. It might always try to run nvidia since there are folks like me who have both in their system.

Trahloc avatar Mar 12 '23 21:03 Trahloc

So I install rocm which is equivalent to CUDA but for AMD and I put --skip-torch-cuda-test and it could work?

Arion107 avatar Mar 12 '23 23:03 Arion107

Did you get it working? Others who search for this might benefit from how.

Trahloc avatar Mar 16 '23 02:03 Trahloc