Unlock Advanced Lighting Optimization: A Step-by-Step Workflow for Stunning Images

CN
ComfyUI.org
2025-04-29 08:54:12

1. Workflow Overview

ma29slrn7016hfzjeqwc8d65b95e2e57bae663e7abaf09393c180575ccee9b2136e1c069f0145e67d63.jpg

This is an advanced lighting optimization workflow for photo editing and digital art, featuring:

  • Intelligent lighting reconstruction with Xiaohongshu Cinematic Model

  • Physically accurate lighting control via IC-Light

  • IPAdapter+DetailTransfer dual-engine detail enhancement

  • Adaptive Contrast-Aware Sharpening (CAS) + 4x upscaling

2. Core Models

Model

Function

Source

Xiaohongshu Cinematic Model

Base image generation

Built-in

ICLight_sd15_fc

Light redirection

IC-Light Plugin

IPAdapter PLUS

Feature preservation

Requires ComfyUI-IPAdapter-plus

3. Key Nodes

Node

Purpose

Installation

FreeU_V2

High-frequency detail boost

Built-in

ICLightConditioning

Lighting direction control

Requires ComfyUI-ICLight

DetailTransfer

Local detail migration

Needs ComfyUI-LayerStyle

ImageCASharpening+

Smart sharpening

Built-in

4. Workflow Stages

Phase 1: Input Preprocessing

  • Input: Source image (e.g. 4181 (2).jpg)

  • Processing:

    • Size normalization (1464px long edge)

    • VAE encoding to latent space

Phase 2: Lighting Optimization

  • Core Techniques:

    • IC-Light (strength=0.345) for main light control

    • IPAdapter (weight=0.5) for feature retention

    • FreeU (b1=1.5, b2=1.6) for detail enhancement

Phase 3: Post-Processing

  • DetailTransfer blends original/generated details

  • CAS Sharpening (0.3) → 4x Upscale → Final output

5. Inputs & Outputs

Input Parameters:

  • Image: Recommended ≥1464px (long edge)

  • Prompt: "Optimize the lighting and details" (via easy positive node)

  • Negative Prompt: Built-in hand/limb repair terms

Output:

  • PNG with full generation metadata

6. Notes

  1. VRAM: 12GB+ GPU recommended (for 1464px processing)

  2. Critical Adjustments:

    • Light intensity: Modify ICLightConditioning's strength (default 0.345)

    • Detail retention: Adjust IPAdapterAdvanced's weight (default 0.5)

  3. Troubleshooting:

    • Overexposure: Reduce FreeU_V2's backbone_factor

    • Over-sharpening: Decrease ImageCASharpening+ intensity