huchenlei / sd-forge-ic-light

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

'Skip the delete bg operation' in ToDo #7

Closed ostap667inbox closed 6 months ago

ostap667inbox commented 6 months ago

I saw this line in the TODOs: 'Add the ability to skip the delete bg operation'.

Will it be possible to pass a foreground image as a PNG with transparency as a source image? Because automatic background removal nowadays sometimes gives unsatisfactory results. Sometimes it would be convenient to prepare the original FG image manually in Photoshop.

Or do you mean the ability to skip background removal and do a new lighting of the whole scene in its entirety?

In fact, both would be a great addition to the functionality we have now. :) Just get the original image as PNG + checkbox "skip background removal step". And it is up to the user to decide whether to transfer the whole scene in a PNG image or with transparent areas with the background removed.

ostap667inbox commented 6 months ago

Right now, it's not possible to change the lighting of the entire scene. Also, automatic background removal does not always work correctly: there are still artifacts from the removed background, which create strange objects during generation. And the main object in the foreground often has a bad contour after background removal. Being able to do re-lighting of the whole scene or transfer the input image as PNG with a pre-manually deleted background would be a really cool feature.

bg1 bg2