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

[Bug]: the stable diffusion webui vram leaked much, cause Out of Memory after generating servral images, and I have to restart the server and fill the parameter again and again

Open xwEric opened this issue 3 years ago • 1 comments

Is there an existing issue for this?

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

What happened?

  1. I use the 3070Ti 8G, when I start the webui server, the vram is already been taken 85%!

  2. it's ok for me, I still can genrate images, but after generate 3-4 images, I often change the parameters so that can find a best image, by right when I regernate a new image, the previous memory should be release right? but the result is not

  3. the worst is , when I turn down the server manually, the vram is been released, but when I restart it, I have to refresh the website, all parameter is gone! and I can event save it!

so my questions are

  1. do we have any way to clean the vram or does webui side is optimize it, do we have any link to track it?
  2. or, maybe I know some connect will be resetup when I restart my server, but I still think maybe reuse the connect will be more friendly
  3. or, can we have feature to store and restore our parameters after relaunch, that would be nice!

thanks and very appreciate if I can get your reply

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ...

What should have happened?

  1. start server and enter the local website
  2. generate servral images
  3. the vmemory will increase and more and more

Commit where the problem happens

06b7392e

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

--precision full --no-half  --xformers

List of extensions

image

Console logs

None

Additional information

No response

xwEric avatar Mar 09 '23 08:03 xwEric

https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/8409

2blackbar avatar Mar 10 '23 11:03 2blackbar