Day to Night Transformation: A Step-by-Step Guide for Post-Production

CN
ComfyUI.org
2025-04-28 09:10:56

1. Workflow Overview

ma0uyh8mp0kqg1nfv0a8069926873034d30ebbf9e92d8e964114a82711c393fb23fc6b06590b02bbf65.png

This workflow specializes in converting daytime scenes to nighttime, ideal for architectural visualization and post-production. Key features:

  • Lighting Transformation: Preserves composition via ControlNet while adding night effects (e.g., blue sky, warm indoor lights).

  • Style Control: Enhances night elements with prompts like (Night view:1.2).

  • High-Resolution Output: Supports up to 2048px with optional upscaling.

Use Cases: Architectural renders, film VFX, game environment design.


2. Core Models

Model Name

Function

Installation

比鲁斯建筑景观室内大模型_0.40B_PRO

Main model for architectural details

Download to models/checkpoints

controlnet-union-sdxl-1.0-promax

ControlNet for composition retention

Place in models/controlnet

Fooocus Style Presets

Standard negative prompts (e.g., "bad")

Built-in (via easy stylesSelector)


3. Key Nodes

Node Name

Function

Installation

ACN_AdvancedControlNetApply

Advanced ControlNet (weight=0.9)

Requires Advanced-ControlNet plugin

KSampler Adv. (Efficient)

Sampler (Euler, 30 steps)

Built-in

ImageResize+

Resizing (Lanczos, keep proportion)

Needs ComfyUI-Image-Utilities

Seed Everywhere

Global seed control (random by default)

Built-in


4. Workflow Structure

  1. Input Preprocessing

    • Nodes: LoadImageImageResize+

    • Input: Daytime image (auto-resized to 2048px width).

    • Output: Normalized image.

  2. Conditioning Encoding

    • Nodes: CLIPTextEncode + easy stylesSelector

    • Input: Night prompts + Fooocus negative presets.

    • Output: Text embeddings.

  3. ControlNet Processing

    • Nodes: ACN_ControlNet++LoaderSingleACN_AdvancedControlNetApply

    • Params: Weight=0.9, start=0%, end=80%.

    • Output: Conditioned signals with composition constraints.

  4. Image Generation

    • Nodes: KSampler Adv. ×2 (two-phase generation).

    • Params: CFG=3.5, seed=369650626139512, 1-step draft + 20-step refine.

    • Output: Night image (comparison via Image Comparer).

  5. Post-Processing

    • Node: SaveImage

    • Output Path: ComfyUI/output/ with metadata.


5. Inputs & Outputs

  • Required Inputs:

    • Image: Daytime scene (recommended ≥1920x1080).

    • Prompts: Must include night keywords (e.g., "blue sky").

  • Output:

    • Image: PNG with comparison (original vs. night).


6. Notes

⚠️ Common Issues:

  • VRAM Overflow: Reduce resolution to 1024px or enable torch.compile.

  • ControlNet Failure: Verify model matches (controlnet-union-sdxl).

  • Unrealistic Lighting: Tweak prompt weights (e.g., (Night view:1.5)) or CFG (3-5).

🔧 Optimization Tips:

  • Use Seed Everywhere for reproducible results.

  • Lower draft steps to 1 for faster testing.