huchenlei / sd-forge-ic-light

A1111/SD Forge extension for IC-Light
Apache License 2.0
196 stars 7 forks source link

[Bug] Image degradation after relighting multiple times #28

Closed CasualDev242 closed 5 months ago

CasualDev242 commented 5 months ago

In the A1111 version, using IC light with background removal and re-enforced foreground enabled, if you do it more than x number of times with the same image while changing prompts,schedulers,etc. eventually the image will become heavily sharpened, and eventually noisy. To be clear, I'm not taking the re-lit image and using that as my new input, it's the same original image each time.

Steps to reproduce: 1) Load an image in IC light 2) Check background removal and reinforce foreground 3) Choose a light preset, such as from-left 4) Choose whatever prompt you want 5) Run IC-Light to generate the image 6) Repeat step 5 over and over. Eventually the image will become a mess

CasualDev242 commented 5 months ago

You may wish to close this issue. I've been using it since without issue. I believe the actual issue might actually be that I eventually turned on an extension "CD Tuner", and then I'd turn it off, and I believe even after turning it off, for whatever reason it conflicted with this code and caused the problem. Either that or it could be because I was using "Align Your Steps" and no longer am. I should have mentioned both initially.

If you have specific tests you want me to perform to reproduce my initial error, let me know.