AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: RuntimeError: CUDA out of memory on GPU with 4GB vram #5290

Closed sofoxe1 closed 1 year ago

sofoxe1 commented 1 year ago

Is there an existing issue for this?

What happened?

after some update generating image fail with RuntimeError: CUDA out of memory at the end of last iteration. adding "--lowvram" fixes it but some time (for example when image history was built in instead of being a plugin) ago it worked without it "--lovwram"

Steps to reproduce the problem

try to generate image with default settings on gpu with 4G vram

What should have happened?

should work as before

Commit where the problem happens

9e78d2c419732711e984c4478af15ece121d64fd

What platforms do you use to access UI ?

Linux

What browsers do you use to access the UI ?

Mozilla Firefox

Command Line Arguments

No response

Additional information, context and logs

No response

ClashSAN commented 1 year ago

what is your gpu? When using linux, you can try to build xformers, that will cut your vram usage in half while being up to 2x faster on some gpus.

If a setup is broken, git reflog to view your commit history, then I'd recommend keeping multiple program folders. One folder for testing new features, one that work stably (will last forever).

do git revert <yourcommithash> to jump backwards to the specific version that worked.

sofoxe1 commented 1 year ago

what is your gpu? When using linux, you can try to build xformers, that will cut your vram usage in half while being up to 2x faster on some gpus.

If a setup is broken, git reflog to view your commit history, then I'd recommend keeping multiple program folders. One folder for testing new features, one that work stably (will last forever).

do git revert <yourcommithash> to jump backwards to the specific version that worked.

gtx 1050ti mobile, for example 54e0051bdd7dea7348825c09600ec61ea0771cb8 works

sofoxe1 commented 1 year ago

removing "stable-diffusion-webui-aesthetic-image-scorer" extension fixed it