Mastering Lighting in Portraits: An ICLight Tutorial for ComfyUI

CN
ComfyUI.org
2025-05-16 07:53:17

1. Workflow Overview

maqi38hcg0uwjcy3hy9b5b1ad7688c21a1d451112c419f4c3a303a3d92a44e0be344dad508a3a4c4cb0.png
  • Purpose: Redirect lighting in realistic portraits using ICLight technology.

  • Core Models:

    • ChilloutMix-Ni: Base photorealism model

    • iclight_sd15_fcon.safetensors: ICLight-specific UNet for light control

2. Key Nodes

Node Name

Function

Installation

LoadAndApplyICLightUnet

Load ICLight control model

Download to models/iclight

ICLightConditioning

Inject lighting conditions

Bundled with ICLight plugin

VAEEncode/Decode

Image-latent conversion

Built-in ComfyUI

3. Workflow Structure

  1. Input Phase:

    • Load image (e.g., untitled-11.jpg)

    • Convert to latent via VAEEncode

  2. Lighting Control:

    • Set light weight in ICLightConditioning (default=0.18215)

    • Positive prompt: "Masterpiece,8K,Highly Detailed portrait"

  3. Generation:

    • KSampler (30 steps, Euler Ancestral) renders final image

4. Input/Output

  • Inputs:

    • Image: 768x1024 recommended

    • Light intensity: Adjust via ICLightConditioning slider (0-1)

  • Output: Real-time preview in ComfyUI

5. Notes

  • Dependencies:

    • Required model: iclight_sd15_fcon.safetensors (~2GB)

    • Base model must be SD1.5-compatible (e.g., ChilloutMix)

  • Troubleshooting:

    • Weak lighting effects → Increase ICLightConditioning weight

    • Artifacts → Reduce CFG scale (current=7)