Unlock Anime Art Mastery: Auto-Coloring Workflow Revealed

CN
ComfyUI.org
2025-03-27 12:18:39

1. Workflow Overview

m8rbkk8u64j1th2m7upde0fa827b8adf9f9f4c0a626155ebb9c19306bc094415da9999a6ad856f0a456.gif

This is an auto-coloring workflow for line art based on FLUX-ControlNet-Union-Pro 2.0, optimized for anime-style illustrations. Key features:

  • Precise line art control via ControlNet

  • Color style enhancement using Lora models (e.g., "白泽MARS-清新二次元")

  • Image upscaling (UltimateSDUpscale)

  • Dynamic conditional checks (e.g., color threshold detection)

2. Core Models

Model Name

Description

FLUX-ControlNet-Union-Pro 2.0

Line art control model preserving structure

白泽MARS-FLUX_S1.0

Lora for Japanese-style pastel colors

4x-UltraSharp

Upscaling model

ae.sft VAE

Lightweight VAE for color accuracy

3. Key Components

Special Nodes:

  • AIO_Preprocessor: Line art preprocessing (AnyLineArtPreprocessor_aux)

  • ControlNetApplyAdvanced: Advanced ControlNet (strength=0.75)

  • CLIPTextEncodeFlux: Prompt encoder with T5XXL support

  • Hex to HSL: Color space conversion for conditional logic

Installation:

  1. ControlNet: Install ControlNet-AUX via ComfyUI Manager

  2. FLUX Nodes: Manual install from GitHub (FLUX-Nodes)

  3. UltimateSDUpscale: Search in Manager

4. Workflow Structure

Group 1: Image Condition Checks

  • Detects dominant color from line art (GetColorTone)

  • Inversion decision via HSL comparison (easy compare)

Group 2: FLUX Generation Zone

  • Input: Line art + Positive prompt (detailed girl character description)

  • Process:

    1. Load 基础算法_F.1 UNET

    2. Apply two Loras (0.8 + 0.45 weights)

    3. ControlNet constraint

    4. Sampling with KSamplerAdvanced (euler, 30 steps)

Group 3: Upscaling

  • 2x super-resolution via 4x-UltraSharp

  • Tile processing: 512px, 32px padding

5. Inputs & Outputs

Inputs:

  • Line art image (PNG with transparency recommended)

  • Positive prompt (pre-configured character details)

  • Auto-resolution adaptation

Outputs:

  • Colored RGB image (comparison view available)

  • HD upscaled version

6. Notes

  • VRAM: 12GB+ recommended (peak usage during upscale)

  • Model Conflict: Disable other ControlNets to avoid interference

  • Color Issues: Adjust GetColorTone detection mode if color shifts occur

  • Line Art Specs: Pure black lines + transparent BG, width≥1024px