ComfyUI Relighting ic-light workflow #comfyui #iclight #workflow

12 May 202405:16

TLDRIn this video, we explore ComfyUI's innovative ic-light workflow, a tool that revolutionizes the way we manipulate lighting on specific objects within an image. The tool allows users to adjust colors and shadows, all while considering the background and overall project. Credit is given to lias for the development and to Kaji for making it available on ComfyUI. The video demonstrates how to download necessary nodes and models, and guides viewers through the process of using the tool with a focus on creating a harmonious lighting effect. The host also discusses the importance of the mask in the process and shares tips on optimizing the mask creation for better results. The video concludes with a demonstration of how the tool can be used creatively to adjust lighting and shadows, enhancing the final image quality significantly.


  • 🎨 **ComfyUI Relighting Tool Introduction:** A new tool for adjusting lighting on objects, colors, and shadows in relation to the background is introduced.
  • 📚 **Credit and Resources:** The project is credited to Lias, and resources including the repo and ComfyUI manager links are provided for downloading necessary nodes and models.
  • 🔍 **Workflow Overview:** The script demonstrates how to use the tool with a step-by-step guide, starting with loading an image and adjusting settings for better results.
  • 🧩 **Node Replacement:** The red node, possibly from another package, is replaced with 'remove background' to disconnect the object from the background.
  • 🖼️ **Image and Mask Creation:** An image is loaded, and a mask is created, which plays a crucial role in the lighting adjustment process.
  • ⚙️ **Proportion and Quality Adjustments:** The script discusses adjusting image proportions and pixel amount for better image quality.
  • 🌄 **Background Image Consideration:** It's noted that the tool works better without a background image for certain lighting effects.
  • 📏 **Mask Manipulation:** The importance of mask positioning and its effect on lighting is highlighted, with suggestions on how to optimize the mask creation process.
  • 💡 **Lighting and Blur Radius:** The script explains how the blur radius and the description of lighting in the prompt affect the final image result.
  • 🔧 **Workflow Customization:** A method to customize the workflow for more freedom and comfort in drawing the mask is presented.
  • 🤖 **IP Adapter and Background Integration:** The use of an IP adapter to integrate the object with the background smoothly and to adjust the lighting effect is discussed.
  • ✨ **Final Touches:** The IC light conditioning feature is introduced for fine-tuning the lighting, and the importance of adjusting the IP adapter weights is emphasized for the desired outcome.

Q & A

  • What is the main purpose of the tool discussed in the video?

    -The main purpose of the tool is to allow users to change the lighting on a certain object while adjusting colors and shadows, with consideration to the background and overall project.

  • Who is credited for the development of this tool?

    -The credit for the development of this tool goes to Lias.

  • How can users experiment with the tool?

    -Users can experiment with the tool through a demo where they can understand how it works. The necessary nodes can be downloaded from the ComfyUI manager.

  • What is the role of the red node in the workflow?

    -The red node is likely from another package and is responsible for disconnecting an object from the background. In the script, it is replaced with 'remove background'.

  • How does the mask created by the tool affect the process?

    -The mask plays an important role in the process by defining the area that will be affected by the lighting changes, making the image feel more harmonious and in control.

  • Why might the image quality not be as good when a background image is added?

    -The tool seems to work better without adding a background image, possibly because it allows for a more focused adjustment on the main object without the complications of background integration.

  • What is the purpose of the IP adapter in the process?

    -The IP adapter is used to connect the lighting and changes to the background, allowing for a smoother transition and more atmospheric integration between the object and the background.

  • How can users optimize the process of creating the mask?

    -Users can optimize the mask creation process by drawing on the image to define the mask area, adjusting the mask size to fit the image, and using nodes like 'resize mask' and 'grow mask with blur'.

  • What is the effect of changing the blur radius?

    -Changing the blur radius affects the spread and softness of the lighting effect, allowing for more control over how the light interacts with the object.

  • How does the IC light conditioning work?

    -IC light conditioning allows users to play with the multiplier, which adjusts the contrast of the lighting effect, providing more control over the final appearance.

  • What is the final step in enhancing the image with the tool?

    -The final step is to add the IP adapter to integrate the lighting and background changes, resulting in a harmonious and well-lit final image.

  • What is the advice given for a smoother transition between the object and the background?

    -To achieve a smoother transition, it is suggested to change the transparency to false and adjust the blur radius and weights of the IP adapter.



🎨 Exploring a New Lighting and Shadow Tool

The video introduces an innovative tool that provides control over lighting, colors, and shadows of specific objects in a scene. The tool is credited to 'lias' and is made available on 'comfy' by 'Kaji'. The presenter demonstrates how to use the tool with a workflow from the 'kiji' example. The process involves loading an image, adjusting proportions, and creating a mask that plays a crucial role in the outcome. The video also discusses the impact of the mask's position on lighting and how to optimize the mask creation process. It concludes with an example of applying the tool to create an underwater scene and a night street scene with a robot, highlighting the tool's potential for enhancing creative projects.


📢 Conclusion and Engagement Invitation

The presenter wraps up the video by encouraging viewers to look forward to the next lessons. They invite the audience to subscribe to the channel, ask questions, and engage by liking the video. The presenter emphasizes the importance of having fun while learning and concludes with a friendly farewell.




ComfyUI is a user interface or a set of tools that are designed to be easy and comfortable to use. In the context of the video, it is a platform where the discussed tool for changing lighting and adjusting colors and shadows is available. It is mentioned as a place where the project is made available and where necessary nodes can be downloaded.


Relighting refers to the process of changing the lighting conditions in an image or a visual scene. In the video, the tool allows for relighting a certain object, which is a significant part of the creative process being discussed. It involves adjusting how light interacts with an object to achieve desired visual effects.


A workflow is a sequence of connected steps or processes that are undertaken to achieve a specific outcome. In the video, the term is used to describe the series of actions taken to manipulate the lighting and shadows of an object within a project, which is facilitated by the ComfyUI tool.


Short for 'repository,' a repo is a storage location where data or projects are kept and can be accessed by multiple users. In the video, the speaker mentions leaving a link to the repo in the description, which implies that the source code or resources for the tool are available for others to view or use.



In the context of image editing, a mask is a tool that allows for the selection or protection of certain parts of an image while making changes to others. The video discusses creating a mask to define where the lighting should be applied, which plays an important role in the relighting process.

💡IP Adapter

An IP adapter in this context seems to refer to a tool or setting within the software that allows for the adjustment of image properties, possibly related to color or lighting. The video mentions connecting an IP adapter to achieve a desired atmospheric effect in an image.

💡Blur Radius

The blur radius is a parameter that determines the extent of a blur effect in image editing. The video discusses playing with the blur radius to affect the outcome of the image, particularly in relation to the lighting and shadows.


A prompt is a cue or a set of instructions that guide the user in using a tool or software. In the video, the speaker mentions changing the prompt when using the tool, which likely refers to inputting specific descriptions or commands to direct the image editing process.


In the context of image editing, a multiplier is a factor that is used to increase or decrease the intensity of an effect. The video discusses using a multiplier in the IC light conditioning, which is more akin to raising the contrast of the image.


Harmonious refers to a state of being in agreement or being well-coordinated. In the video, the term is used to describe the desired visual outcome where the lighting, colors, and shadows work together in a pleasing and balanced way.

💡Creative Process

The creative process involves using imagination to create something new. In the video, the speaker discusses how the tool adds control to the creative process, allowing for more nuanced adjustments to the visual elements of a project.


Introduction to a new tool for adjusting lighting on objects while considering colors, shadows, and background.

Credit given to Lias for the development and to Kaji for making the project available on Comfy.

Demonstration of the tool with a link to the repo and instructions on downloading necessary nodes.

Explanation of how to load workflows and models from the Comfy Manager.

Substitution of a red node with 'remove background' to disconnect an object from the background.

Loading an image and adjusting the model to create an underwater scene.

Creation of a mask with an important role in the process, followed by proportion correction.

Observation that the tool works better without a background image for certain adjustments.

Discovery that the mask significantly affects the harmoniousness of the image.

Optimization of the mask creation process by allowing direct drawing on the image.

Adjustment of the mask size and the introduction of the 'resize mask' node.

Impact of the blur radius on the lighting changes and the effect of the mask's position.

Use of an IP adapter to connect the image to the background and adjust the lighting.

Modification of the transparency and blur radius for smoother transitions.

Experimentation with the IC light conditioning and its multiplier for contrast adjustments.

Final result showcasing the tool's ability to add control to the creative process.

Encouragement for viewers to subscribe, ask questions, and enjoy the learning process.