AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: Stable Diffusion is now very slow and won't work at all #15870

Open MichaelDeathBringer opened 4 months ago

MichaelDeathBringer commented 4 months ago

Checklist

What happened?

Well, after switching to the babes 3.1 checkpoint I tried to generate an image, but when I stopped it because I didn't like it I got the little CUDA message, so I tried to generate another image and got the same thing. So I closed out Stable Diffusion, went into the files, deleted some of the useless past outputs, ran it again, there was nothing off about the startup process, and when I tried to reload the last set of prompts, it wouldn't do it. So I had to go into the parameters, copy and paste the last prompts, hit generate, and it won't even load up, which I found strange. So I closed out of stable diffusion, checked to see if my NVIDIA card needed updating, it did, installed the update, ran Stable Diffusion again, same dang thing happened. Then I thought it might be my laptop since it needed an update, so I ran the update on my laptop, then tried to run SD again, NOPE! Same thing happened AGAIN. Then, I realized, it's ONLY SD that's taking forever, everything else on my laptop is fine. As of the moment, I can't do ANYTHING on SD, can't check for extension updates, can't generate anything, can't switch to previous versions, can't switch checkpoints, I was lucky to get the sysinfo, I tried closing out, going into settings, removing the checkpoints until there was only one left, my usual default one, Anythingv5.0, can't even load that one. Currently, it has been almost 10 minutes while typing this, and before typing this I tried to generate something on SD, IT HASN'T EVEN STARTED, IT'S STILL PROCESSING, NOTHING ELSE ON SD IS LOADING, NOTHING IS PREVENTING IT FROM GENERATING. I honestly don't know what's going on, can someone please help me?

Steps to reproduce the problem

No idea

What should have happened?

It should not be very freaking slow.

What browsers do you use to access the UI ?

Google Chrome

Sysinfo

sysinfo-2024-05-23-05-16.json

Console logs

C:\Users\zach\OneDrive\Desktop\Stable Diffusion\stable-diffusion-webui>git pull
Already up to date.
venv "C:\Users\zach\OneDrive\Desktop\Stable Diffusion\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.9.3
Commit hash: 1c0a0c4c26f78c32095ebc7f8af82f5c04fca8c0
#######################################################################################################
Initializing Civitai Link
If submitting an issue on github, please provide the below text for debugging purposes:

Python revision: 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Civitai Link revision: 115cd9c35b0774c90cb9c397ad60ef6a7dac60de
SD-WebUI revision: 1c0a0c4c26f78c32095ebc7f8af82f5c04fca8c0

Checking Civitai Link requirements...

#######################################################################################################
Launching Web UI with arguments: --precision full --no-half --skip-torch-cuda-test --xformers
ControlNet preprocessor location: C:\Users\zach\OneDrive\Desktop\Stable Diffusion\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2024-05-23 01:04:51,516 - ControlNet - INFO - ControlNet v1.1.448
Civitai: API loaded
Loading weights [90bef92d4f] from C:\Users\zach\OneDrive\Desktop\Stable Diffusion\stable-diffusion-webui\models\Stable-diffusion\babes_31.safetensors
[LyCORIS]-WARNING: LyCORIS legacy extension is now loaded, if you don't expext to see this message, please disable this extension.
2024-05-23 01:04:52,407 - ControlNet - INFO - ControlNet UI callback registered.
Creating model from config: C:\Users\zach\OneDrive\Desktop\Stable Diffusion\stable-diffusion-webui\configs\v1-inference.yaml
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Civitai: Check resources for missing info files
Civitai: Check resources for missing preview images
Startup time: 17.4s (prepare environment: 4.6s, import torch: 5.8s, import gradio: 1.1s, setup paths: 1.2s, initialize shared: 0.3s, other imports: 0.7s, load scripts: 2.5s, create ui: 0.6s, gradio launch: 0.4s).
Civitai: Found 0 resources missing info files
Civitai: No info found on Civitai
Civitai: Found 0 resources missing preview images
Civitai: No preview images found on Civitai
Applying attention optimization: xformers... done.
Model loaded in 4.1s (load weights from disk: 0.9s, create model: 0.7s, apply weights to model: 1.7s, apply float(): 0.3s, move model to device: 0.1s, calculate empty prompt: 0.4s).

Additional information

Everything is updated, everything is all caught up, there is nothing that needs updating as far as I'm aware of, feel free to point something out if I missed it.

JuucJeck commented 4 months ago

I am experiencing the same problem. It was working fine earlier today, then suddenly it won't load a model or do anything at all. I discovered this after updating to latest NVIDIA drivers. I tried rolling back, but the problem persists. I tried completely removing and redownloading the git clone and doing a fresh webui install. Still the issue persists.

w-e-w commented 4 months ago

you are using a NVIDIA GeForce MX150 correct?

MichaelDeathBringer commented 4 months ago

you are using a NVIDIA GeForce MX150 correct?

Yep

w-e-w commented 4 months ago

you are using a NVIDIA GeForce MX150 correct?

Yep

2 GB VRAM to be honest I'm kind of amazed that it even runs on your card

I'm guessing that on top of the card is not exactly top of line it's likely that the data in VRAM might be overflowing into shared memory (system RAM) which some have reported to cause drastic slowdowns so do some tests to see if your experiencing this or not

basically some time back NVIDIA added a new feature that should allow program to automatically continue to run even if it doesn't actually have the required VRAM by using System RAM, and depending on the exact environment and use case it has to be reported that this can cause massive slowdown to some people

it could be the case that some other thing on your system changed and pushes your total VRAM use over a threshold that triggers drastic slow down

MichaelDeathBringer commented 4 months ago

you are using a NVIDIA GeForce MX150 correct?

Yep

2 GB VRAM to be honest I'm kind of amazed that it even runs on your card

I'm guessing that on top of the card is not exactly top of line it's likely that the data in VRAM might be overflowing into shared memory (system RAM) which some have reported to cause drastic slowdowns so do some tests to see if your experiencing this or not

basically some time back NVIDIA added a new feature that should allow program to automatically continue to run even if it doesn't actually have the required VRAM by using System RAM, and depending on the exact environment and use case it has to be reported that this can cause massive slowdown to some people

it could be the case that some other thing on your system changed and pushes your total VRAM use over a threshold that triggers drastic slow down

Ignore my comment earlier, didn't read the instructions properly, tried itagain, it works fine now, thank you so much!!!

w-e-w commented 4 months ago

Ignore my comment earlier, didn't read the instructions properly, tried itagain, it works fine now, thank you so much!!!

so it's really this issue?

out of curiosity what is your speed of generating a 512x512 image?

Jatbi commented 4 months ago

I ran everything very well. But every once in a while it will automatically stop. I'm using tmux so it can run in the background.

then I have to ctrl + c it to stop everything and kill -9 it, and starting it again works but normally. But every time it takes 5 minutes or 10 minutes

i am using ubuntu 22.

NVIDIA-SMI 550.54.15 Driver Version: 550.54.15

CUDA Version: 12.1

I've researched but haven't seen anyone like that. but before that everything worked very well.

When I checked the progress it was still running but very slowly. I had to stop it and run it again for everything to work as usual. I checked via htop that everything is not running beyond the server configuration I have.

Stellaris12 commented 4 months ago

use --lowvram, when I used a gt1030 with 2gb of vram it helped with SD 1.5, SDXL was still slow.