ControlNet & Style References

Intermediate 3 min read 6 sections
GitHub
On this page

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

Reference ImagePhoto, sketch, or pose
Preprocessor NodeCanny, Depth Anything 3, or Pose
Apply ControlNetModifies positive + negative COND
KSamplerGenerates matching layout
Apply ControlNet sits between your text encoders and KSampler, steering structure across chosen step percentages.

Unlike LoRAs (which patch MODEL), standard ControlNet nodes intercept CONDITIONING between your text encoders and KSampler.

  1. 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).
  2. Load an image with Load Image and extract a control map with a Preprocessor node (or load a ready-made depth or edge image directly).
  3. Wire Load ControlNet Model + Preprocessor IMAGE + positive/negative CONDITIONING into Apply ControlNet (ControlNetApplyAdvanced).
  4. Connect the modified positive and negative conditioning outputs to KSampler.

#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. Above 1.0 often 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 around 0.70 lets 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):

  1. Feed text conditioning into Apply ControlNet #1 (Pose, strength 0.85, end_percent: 0.80).
  2. Wire Apply ControlNet #1 outputs (positive, negative) directly into Apply ControlNet #2 (Depth, strength 0.50, end_percent: 0.60).
  3. Feed Apply ControlNet #2 outputs into KSampler.

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, insert Set 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 via ModelPatchLoader and attach to MODEL instead 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 via Set Reference Latent or Set 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, run CLIP Vision Encode -> Apply Style Model, and merge the visual tokens into CONDITIONING before KSampler.
  • IP-Adapter (ComfyUI_IPAdapter_plus): pairs an IP-Adapter weight and CLIP Vision model with MODEL to blend style, composition, or faces across SDXL and SD 1.5 checkpoints. Lower weight (0.40 - 0.75) to avoid copying the reference image verbatim.

Next: tune Dynamic VRAM, built-in caching, and workflow hygiene in Performance & Optimization.