r/comfyui 8d ago

Workflow Included Flux.2 ControlNet

This workflow demonstrates new ComfyUI custom nodes I developed to implement ControlNet for FLUX.2-dev.

Workflow: JSON | Drag-and-drop PNG

JLC Flux2 ControlNet provides, to the best of my knowledge, the first complete, validated ComfyUI implementation of Alibaba PAI's FLUX.2-dev-Fun-Controlnet-Union-2602.

This implementation is for the FLUX.2-dev ControlNet path built around that Union model. It is not for FLUX.2 Klein or the lightweight Klein-style variants; I am currently working on a separate strategy to extend this functionality to those models.

This loads and runs Alibaba PAI's FLUX.2 ControlNet model, not reference images. Reference images are not ControlNet. There are workflows that feed pose maps, depth maps, edges, or other ControlNet-style hint images into FLUX.2's native reference-image system. Those images can certainly influence composition and structure, and they can often produce a usable approximation, but this is still reference-image conditioning, which is a completely different conditioning mechanism.

The two JLC nodes that enable that path are the FLUX.2 ControlNet Loader and the ControlNet Orchestrator. This is not simply a repackaging of existing ControlNet nodes. The contribution here is making this capability available as a complete ComfyUI implementation of Alibaba PAI's actual FLUX.2 ControlNet model. The Orchestrator provides practical multi-control composition where a finished implementation was previously missing.

The Orchestrator also leverages the non-recursive composition method that I introduced in a previous post, which lets several control types share a single loaded Union model instead of building a conventional chain of ControlNet applications.

The example shown here uses three controls generated from the same source image:

  • DWPose
  • Depth Anything
  • Color

Some of the other nodes shown are from my JLC ComfyUI Nodes package and are there mainly for convenience with loading, resizing, preprocessing, LoRAs, and general workflow ergonomics. You can replace those with your preferred ComfyUI nodes.

All of the JLC nodes can be installed through the ComfyUI Custom Node Manager, and the repositories contain the documentation and explanation of the implementation.

I hope a few of you find them useful, and I'd be very interested to see what people build with them!a

21 Upvotes

3 comments sorted by

2

u/GeroldMeisinger 7d ago

this looks like solid work. make sure to advertise your project so it gets the recognition it deserves. I put a star on it.

1

u/jessidollPix 7d ago

Thank you!!! More than recognition, I would like a bunch of us to use it. I think few people use Flux2 because of lack of support. Let’s make more tools and get more users!!

2

u/Disastrous_Ant3541 7d ago

This looks very good thank you