kijai / ComfyUI-IC-Light

Using IC-LIght models in ComfyUI
Apache License 2.0
710 stars 34 forks source link

Is there any way to add lighting but keep background #61

Open senereone opened 1 week ago

senereone commented 1 week ago

Great Job! My purpose is to add some lighting to the image without altering it. In the video "ic_light_lcm_example_converted.mp4", such an effect was observed, but the node for this effect was not found in the code. What is the function of this node? Without this node, the background of the image would be changed. Where can I obtain the code for this node? Thanks

image

kijai commented 1 week ago

That node is just lora loader to load LCM lora to allow faster sampling, the main thing for what you're asking though is to use the color of the lighting as the background, and the main image as the foreground, and then use empty latents on the sampler. The setup in that video is like that.

txhno commented 1 day ago

remove background, create mask, apply iclight on mask, create image composite masked with the original image