ControlNet & Style References
ControlNet, model patches, and reference adapters let you lock composition, depth geometry, character poses, or visual style from existing images instead of relying on prompt wording alone.
#How ControlNet fits into a graph
Unlike LoRAs (which patch MODEL), standard ControlNet nodes intercept CONDITIONING between your text encoders and KSampler.
- Download matching ControlNet weights into
ComfyUI/models/controlnet/(ControlNet weights must match your base architecture: SD 1.5 ControlNets do not work on SDXL or Flux). - Load an image with
Load Imageand extract a control map with a Preprocessor node (or load a ready-made depth or edge image directly). - Wire
Load ControlNet Model+ PreprocessorIMAGE+ positive/negativeCONDITIONINGintoApply ControlNet(ControlNetApplyAdvanced). - Connect the modified
positiveandnegativeconditioning outputs toKSampler.
#Common ControlNet types and preprocessors
ComfyUI includes native built-in vision and preprocessor nodes for edges, depth, segmentation, and background removal, while optional community packs such as comfyui_controlnet_aux add pose and lineart extractors:
| Control type | Preprocessor / loader | Best used for | Typical strength |
|---|---|---|---|
| Canny edges | Detect Edges (Canny) (built-in) |
Strict silhouettes, architecture lines, product contours | 0.65 - 0.90 |
| Depth | Load Depth Anything 3 -> Run Depth Anything 3 -> Render Depth Anything 3 (built-in, models/geometry_estimation/) |
Preserving 3D scene layout, room geometry, and camera depth | 0.50 - 0.80 |
| Segmentation / Masking | SAM3 Detect / Run SAM3 Video Track (built-in, models/detection/) |
Isolating specific objects or characters across frames | Mask / Control region |
| Foreground cutout | Load Background Removal Model -> Remove Background (built-in BiRefNet, models/background_removal/) |
Clean subject cutouts for compositing or reference edits | Mask / Cutout |
| OpenPose / Lineart / Scribble | DWPose Estimator, Lineart Standard, HED / PiDiNet (comfyui_controlnet_aux) |
Body pose skeletons, clean inked lineart, rough sketch guidance | 0.65 - 1.00 |
| Tile / Blur | Direct reference image | Upscaling details while stopping the model from hallucinating new objects | 0.40 - 0.70 |
#Strength and step scheduling (start_percent / end_percent)
Apply ControlNet (ControlNetApplyAdvanced) exposes three main controls:
strength(0.0 - 1.5): how strictly pixels must follow the control map. Above1.0often washes out textures or leaves harsh outlines.start_percent(0.0): when ControlNet begins steering denoising steps.end_percent(0.60 - 0.90): when ControlNet stops acting. Ending ControlNet around0.70lets the final 30% of steps refine natural hair, cloth folds, and lighting without looking traced onto stiff lines.
#Chaining multiple ControlNets
You can combine structural cues (for example DWPose for character pose + Depth Anything 3 for room geometry):
- Feed text conditioning into
Apply ControlNet#1 (Pose, strength0.85,end_percent: 0.80). - Wire
Apply ControlNet#1 outputs (positive,negative) directly intoApply ControlNet#2 (Depth, strength0.50,end_percent: 0.60). - Feed
Apply ControlNet#2 outputs intoKSampler.
Lower individual strengths slightly when stacking multiple ControlNets so conditioning vectors do not over-constrain the sampler.
#Union ControlNets and Model Patches
- Union ControlNets: many SDXL and Flux ControlNets ship as multi-mode Union checkpoints handling Canny, Depth, Pose, Tile, and SoftEdge in one file. Load with
Load ControlNet Model, insertSet Union ControlNet Type(SetUnionControlNetType), and pick the matching mode (openpose,depth,canny/lineart,tile). - Model Patch control adapters (
models/model_patches/): newer lightweight control adapters (such as Z-Image or Anima ControlNet-LLLite) load viaModelPatchLoaderand attach toMODELinstead of conditioning.
#Style and character references
ControlNet locks geometry; reference conditioning and style adapters transfer identity, outfits, palette, or rendering style without tracing exact edges.
- Native multi-reference edit conditioning (built-in): modern models such as Flux.2 Klein (optionally accelerated with
Flux KV Cache), Flux.1 Kontext, and Qwen-Image 2.1 (Text Encode Qwen Image 2.1) take reference images natively viaSet Reference LatentorSet Reference Multi Latent. This preserves character identity, products, and style directly from reference frames without training a LoRA. - Flux Redux (built-in for Flux.1): load
Load Style Model+Load CLIP Vision, runCLIP Vision Encode->Apply Style Model, and merge the visual tokens intoCONDITIONINGbeforeKSampler. - IP-Adapter (
ComfyUI_IPAdapter_plus): pairs an IP-Adapter weight and CLIP Vision model withMODELto blend style, composition, or faces across SDXL and SD 1.5 checkpoints. Lowerweight(0.40 - 0.75) to avoid copying the reference image verbatim.
Next: tune Dynamic VRAM, built-in caching, and workflow hygiene in Performance & Optimization.