AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: (Inpainting) Inpainted area being painted over (a.k.a overlaped) with the old image source #9417

Open Trung0246 opened 1 year ago

Trung0246 commented 1 year ago

Is there an existing issue for this?

What happened?

This only happens with inpainting with masks and not img2img. For some reason everytime I tried to inpaint part of images the inpainted areas have the old image source painted over the result.

Source image: image

Inpainted result (you can see that the old image is still there): image

My settings: image

Steps to reproduce the problem

  1. Draw mask on an area (in this case since I wanted to perform "Inpaint not masked" but both cases have same issue)
  2. Click "Generate"
  3. See the buggy result

Hash: image

What should have happened?

The original source image should not draw over the result image.

Commit where the problem happens

1563309a09b8f56ab3ac2fd71d49a86d846ed14c

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

--xformers --gradio-img2img-tool color-sketch --deepdanbooru --no-half-vae

List of extensions

image

Console logs

https://pastebin.com/raw/PgPrNeNb

Additional information

Can anyone shares their settings. I was suspecting that something is wrong for my side but still not sure which.

missionfloyd commented 1 year ago

You have Inpaint not masked selected. This makes it paint everything except the mask.

You might also try lowering denoising strength.

Trung0246 commented 1 year ago

You have Inpaint not masked selected. This makes it paint everything except the mask.

You might also try lowering denoising strength.

Unfortunately the area in the screenshot is the one I wanted to paint over (as mask is another area but not included in the screenshot). Lowering denoising strength is not an option since my attempt of inpainting in previous version of the UI will have expected bahavior even with high denoising strength.

SepticSpoons commented 1 year ago

I searched for the commit you provided and it doesn't exist. Searching for the other commit (cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf) points to stability-ai.

Trung0246 commented 1 year ago

I searched for the commit you provided and it doesn't exist. Searching for the other commit (cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf) points to stability-ai

I just pulled changes from main branch. Probably I merged changes to webui-users.bat causes the hash to change.