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

[Bug]: img2img (Inpaint) colors issue.

Open Lynesth opened this issue 3 years ago • 4 comments

Is there an existing issue for this?

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

What happened?

There's a couple of issues related to colors being off when using img2img but none that showed exactly what I'm experiencing, and the color correction setting doesn't help.

Image used in Inpainting: ApplicationFrameHost_2022-11-27_12-37-31

Mask (painted in the browser): firefox_2022-11-27_13-02-18

Used a simple prompt to get a pink haired character instead.

Second to last step preview image (image is dimmed overall but alright): firefox_2022-11-27_12-53-20

Final output without color correction (it's like it's patching the dimmed part on the original one): firefox_2022-11-27_12-53-35

Final output with color correction(same thing, but trying - and really failing to - correct the colors): firefox_2022-11-27_12-54-44

Steps to reproduce the problem

Just go to Inpaint, use a character on a white background, draw a mask, have it inpainted. Turn on step previews to see that the whole image shifts at the end. Notice the color issue.

Lemme know if you need something in particular.

What should have happened?

Colors should be the correct ones from start to finish?

Commit where the problem happens

b5050ad2071644f7b4c99660dc66a8a95136102f

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Mozilla Firefox

Command Line Arguments

No response

Additional information, context and logs

No response

Lynesth avatar Nov 27 '22 02:11 Lynesth

What model did you use for the process? For me, installing specific VAE (like Anything-V3.0.vae.pt) solved that kind of problem. I didn't know about what it is, so only install ckpt and ignored the vae, then color shift occured.

1gbin avatar Nov 27 '22 22:11 1gbin

Thank you very much, it indeed fixed it for me. Not sure if this would be considered a bug or not otherwise, maintainers feel free to close this as you see fit.

Lynesth avatar Nov 28 '22 06:11 Lynesth

same problem here ? https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/5217

Ehplodor avatar Dec 01 '22 13:12 Ehplodor

what if the model i'm using does not come with a vae and this is happening?

blackshot avatar Dec 13 '22 14:12 blackshot

what if the model i'm using does not come with a vae and this is happening?

Maybe the model you are using is fine-tuned or merged in part from a previous one that needs VAE ? Difficult to tell without more informations

Ehplodor avatar Dec 14 '22 08:12 Ehplodor