Extensions/ComfyUI-gen2
ComfyUI Extension

ComfyUI-gen2

Custom ComfyUI nodes for QwenImage ControlNet achieving 100% output compatibility with VideoX-Fun's diffusers pipeline while leveraging ComfyUI's efficient model loading system.

By petmycat·Created 9 months ago·Updated 2 days ago· 25
petmycat/ComfyUI-gen2
Nodes29
On cloudLocal install
CategoryGen2/Flux2 Fun ControlNet, Gen2/Ideogram4 Phase C V2
Stars25
Updated2 days ago

Nodes (29)

Apply Flux2 Fun Control

Where the Flux2 Fun ControlNet actually happens — and why it won't break your other workflows

Gen2/Flux2 Fun ControlNet
Apply Ideogram4 Phase C V2 Strength

Make your Ideogram4 LoRA turn itself up and down

Gen2/Ideogram4 Phase C V2
Gen2 Apply QwenImage ControlNet (outdated)

Wrapping the model with VideoX control context

Gen2/QwenImage
Gen2 Checkerboard

The 30-second calibration pattern generator

Gen2/Utils
Combine Flux2 Fun Controls (experimental)

Stacking two Flux2 Fun controls — if you like living on the experimental edge

Gen2/Flux2 Fun ControlNet
Compose Ideogram4 V9 Trigger Activator

Binding your Ideogram4 embedding to its 36 text-encoder LoRAs

Gen2/Ideogram4 Trigger V9
Gen2 Flux.2 Klein Fix (#12905 revert)

When a ComfyUI upgrade silently changed your Klein output

Gen2/Sampling
Ideogram4 AI Toolkit LoRA Loader

The Ideogram4 LoRA loader that speaks Ostris AI-Toolkit's weird key names

loaders/ideogram4
Ideogram4 V9 Trigger Diagnostics

When your Ideogram4 trigger quietly does nothing, this node tells you why

Gen2/Ideogram4 Trigger V9
Ideogram4 V9 Trigger Text Encode

The V9 text encoder that turns one literal trigger into four token slots

Gen2/Ideogram4 Trigger V9
Gen2 Input Panel

One Configure dialog instead of a tangle of INPUT_* nodes

Gen2/API
Gen2 LanPaint Soft Denoise Patch

A soft-denoise patch for LanPaint inpainting that learns as it goes

Gen2/Sampling
Load Flux2 Fun ControlNet

The ControlNet loader that refuses to load anything but the official FLUX.2 Fun file

Gen2/Flux2 Fun ControlNet
Load Ideogram4 Phase C V2 Router

The Ideogram4 LoRA router loader, with receipts

Gen2/Ideogram4 Phase C V2
Load Ideogram4 V9 Trigger Embedding

The [4,H] embedding loader

Gen2/Ideogram4 Trigger V9
Load Ideogram4 V9 TE Module-LoRA

36 tiny text-encoder LoRAs that make your Ideogram4 trigger hit

Gen2/Ideogram4 Trigger V9
Gen2 Load QwenImage ControlNet (outdated)

The loader for VideoX-style Qwen ControlNets

Gen2/QwenImage/ControlNet
Gen2 Load QwenImage LoRA (outdated)

Chainable LoRA loading for the VideoX pipeline

Gen2/QwenImage
Gen2 Load QwenImage VAE (outdated)

The VAE that speaks VideoX's dialect

Gen2/QwenImage
Gen2 Output Panel

Stop fishing OUTPUT_* constants out of the API export

Gen2/API
Prepare Flux2 Fun Control

The node that packs your control image into Flux.2 Fun's exact 260-channel token soup

Gen2/Flux2 Fun ControlNet
Gen2 QwenImage Text Encode (outdated)

VideoX's exact prompt encoding, not ComfyUI's

Gen2/QwenImage
Gen2 QwenImage Control Sampler (outdated)

The VideoX denoise loop with True CFG

Gen2/QwenImage
Gen2 Seam Fix

The second pass that kills ghosted tile seams

Gen2/Tiling
Gen2 Seam Merger

Compositing regenerated seam strips without new artifacts

Gen2/Tiling
Gen2 StringReplace

The boring node that makes dynamic prompts work

Gen2/Utils
Gen2 Tile Masks

The per-tile masks that make tiled inpaint actually work

Gen2/Tiling
Gen2 Tile Merger

The blend modes that decide whether your tile seams show

Gen2/Tiling
Gen2 Tile Splitter

Clean auto-grid tiles with context halos, no math homework

Gen2/Tiling
Readme

ComfyUI-gen2

Custom nodes for API-driven workflows, LanPaint inpainting, and everyday image and text tasks.

API panels

Gen2 Input Panel

Bring a workflow's controls into one node. Define up to 32 named inputs: text, integers, decimals, booleans, images, dropdown choices, and seeds.

Set defaults, numeric ranges, and step sizes in Configure. Upload images from the panel and choose whether seeds stay fixed or change between runs. Connect each parameter to the part of your workflow it controls.

Gen2 Output Panel

Collect named results from your workflow in one place. Preview and save images, inspect text and numeric results, and copy the combined inputs and outputs as JSON.

Connect the Input Panel's PANEL_LINK output to this node to keep each run's parameters alongside its results. Together, the panels define the inputs and outputs for workflows you call through an API.

LanPaint inpainting

Gen2 LanPaint Soft Denoise Patch

Use a soft mask to control how strongly LanPaint preserves the source image across an edit. Adjust blending strength over the sampling steps, and choose whether the reference follows the original image, the latest generated result, or a moving average.

Requires the separate LanPaint custom node pack. Connect this node's patched model to your LanPaint sampler and supply a soft mask for the preservation blend.

Image and text utilities

Gen2 Checkerboard

Generate a black-and-white checkerboard image with your own width, height, and block size. Useful for test images, backgrounds, and checking image alignment.

Gen2 StringReplace

Replace every occurrence of a piece of text in a string. Useful for prompt templates and placeholder substitution. Matching is literal and case-sensitive.

Experimental

Gen2 Flux.2 Klein Fix

An optional compatibility patch that restores older Flux.2 Klein sampling behavior for reference-image and masked-inpainting workflows affected by ComfyUI's #12905 change.

Use it only when you need that earlier behavior. It is experimental and should not be combined with Flux KV-cache features.

Installation

Find ComfyUI-gen2 in ComfyUI Manager, or run this command from your ComfyUI/custom_nodes directory:

git clone https://github.com/petmycat/ComfyUI-gen2.git

Restart ComfyUI, then search for Gen2 in the node menu. Requires ComfyUI v0.28.0 or newer.

View on Comfy Registry

Upgrading from 2.x

Version 3 ships the six nodes listed above. Older Qwen Image, Flux.2 Fun ControlNet, Ideogram, AITK loader, pose, and tiling nodes are no longer included. Keep a 2.x installation for workflows that still depend on them.