AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: img2img makes images darker #6858

Open SwayStar123 opened 1 year ago

SwayStar123 commented 1 year ago

Is there an existing issue for this?

What happened?

Whenever using img2img, the output images always turn out darker (everywhere), but generally only when using a low denoise level. This is especially pronounced when using loopback in img2img, the darkness just compound! to make a very dark image

Input image: image

prompt: girl with eyes closed wearing red dress white sleeves negative prompt: nsfw, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry,missing fingers,bad hands,missing arms, long neck, Humpbacked,shadow,long body, Abnormal fingers,

sampling steps: 20 width: 512 height: 768 cfg scale: 7 denoising strength: 0.05

img2img loopback, 32 loops, 1 denoising strength change

Output: image Final image: image

Steps to reproduce the problem

  1. Go to img2img
  2. Enter input image
  3. Set denoising strength to any low amount
  4. Setup loopback script with high number of loops
  5. Generate image

What should have happened?

The images colors should have remained the mostly the same whilst the shape should have changed

Commit where the problem happens

38b7186e6e3a4dffc93225308b822f0dae43a47d

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

No response

Additional information, context and logs

No response

ClashSAN commented 1 year ago

are you turning on the img2img color correction feature?

SwayStar123 commented 1 year ago

yes

zijiren233 commented 1 year ago

Is vae loaded?

SwayStar123 commented 1 year ago

Yes, using anythingv3

Inkorak commented 1 year ago

Same problem.

williamforty commented 1 year ago

I too have this problem, using ProtoGen X5.3

williamforty commented 1 year ago

Just tried with ProtoGen X2.2, and v1.5 pruned emaonly too, and I can see the same darkening behaviour happening.

DeryabinIvan commented 1 year ago

I'm using HentaiDiffusion and Berry's Mix and have the same problem, especially when using inpainting and the loopback script. The image under the mask just gets darker and darker with each iteration, and colour correction doesn't seem to affect this problem. I have also tried using different samplers (Euler a, various DPM++ and DDIM) and the problem still persists. grid-0007

Industrepreneur commented 1 year ago

Encountered the same

Letiliel commented 1 year ago

Are there people not affected by this?

whiteblood94 commented 1 year ago

i just fix this problem need add vae file if u guys dont know vae how to add just google search hope have helping

Orachigami commented 1 year ago

Basically it is really about googling <model name> VAE

Sonia-kong commented 3 months ago

Sorry, I have also met this problem, has it fixed ?