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

[Bug]: Full-Res Inpainting Sometimes Generates Black Images

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

When I generate full-res inpaints, the area that's been masked sometimes just comes out totally black. It is more likely to happen when the masked area is small proportionate to the generation size (Taking padding into account) and more likely to happen after the PC has been running for some time.

Steps to reproduce the problem

  1. Load up any image into inpaint
  2. Enable full-res inpainting
  3. Mask a small area of image. Set padding low and width/height high (Happens a lot with 512x512)
  4. Make several generations until it happens. Sometimes it takes 100+ generations for me and other times it begins after I make only two or three images.

What should have happened?

Not that

Commit where the problem happens

No response

What platforms do you use to access UI ?

No response

What browsers do you use to access the UI ?

No response

Command Line Arguments

No response

Additional information, context and logs

Running a model with VAE weights and a hypernetwork

My GPU is an RTX 3080

I usually use CFG = 11, 100-150 steps DDIM for inpainting, mask blur is 4 and masked content is "original"

HaodongMo avatar Oct 20 '22 04:10 HaodongMo

Try setting--no-half-vae as startup flag in your webui-user.bat

kybercore avatar Oct 20 '22 10:10 kybercore

--no-half-vae

thank you, it worked

aatamakaycee avatar Dec 29 '22 04:12 aatamakaycee

Reopen or create new issue if the problem is still present.

mezotaken avatar Jan 17 '23 13:01 mezotaken