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

Cuda out of memory .. rtx2060 please help

Open Noursniper opened this issue 2 years 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?

Uploading DF79CE7C-6008-4005-9F3E-FC6DC305503E.jpeg…

Steps to reproduce the problem

.

What should have happened?

.

Commit where the problem happens

.

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

.

Additional information, context and logs

.

Noursniper avatar Nov 22 '22 04:11 Noursniper

try again, add --medvram in commandline args in webui-user.bat

ClashSAN avatar Nov 22 '22 10:11 ClashSAN

Add --xformers --opt-split-attention --use-cpu interrogate to your command-line arguments in your webui-user.bat file. With a 2060 you should be able to generate images up to at least 1024x1024. Also make sure that your batch size is set to 1.

BetaDoggo avatar Nov 22 '22 11:11 BetaDoggo

Use a .bat file as preloader and include those arguments to make sure they don't get erased when you update.

@echo off

set COMMANDLINE_ARGS=--xformers --opt-split-attention --use-cpu interrogate

call webui.bat

With BetaDoggo's suggestion I was able to create a 1024x1024 image with a 6GB 1660ti.

slymeasy avatar Nov 26 '22 14:11 slymeasy

Add --xformers --opt-split-attention --use-cpu interrogate to your command-line arguments in your webui-user.bat file. With a 2060 you should be able to generate images up to at least 1024x1024. Also make sure that your batch size is set to 1.

@Noursniper did this fix work for you? If so please close the issue, so devs and maintainers can focus on what's currently relevant.

HPPinata avatar Dec 28 '22 10:12 HPPinata