Detailed Guide to Flux ControlNet Workflow
This tutorial will guide you on how to use Flux’s official ControlNet models in ComfyUI. We will cover the usage of two official control models: FLUX.1 Depth and FLUX.1 Canny.
This tutorial is based on and updated from the ComfyUI Flux examples
Model Introduction
FLUX.1 Depth [dev]
- 12 billion parameter rectified flow transformer model
- Structure guidance based on depth maps
- Uses guided distillation training for improved efficiency
- Supports personal, research, and commercial use
FLUX.1 Canny [dev]
- 12 billion parameter rectified flow transformer model
- Structure guidance based on Canny edge detection
- Also uses guided distillation training method
- Follows FLUX.1 [dev] non-commercial license
Model Version Overview
Flux ControlNet models are available in two versions: Full Model and LoRA Model.
Full Model Version
- Complete model file containing all weights
- Requires larger VRAM
- Best generation quality
LoRA Version
- Lightweight model containing only difference weights
- Requires base Flux model
- Lower VRAM usage
Preparation
1. Update ComfyUI
First, ensure your ComfyUI is updated to the latest version. If you don’t know how to update and upgrade ComfyUI, please refer to How to Update and Upgrade ComfyUI.
Note: Flux ControlNet functionality requires the latest version of ComfyUI, so please complete the update first.
2. Full Version Model Downloads
Model Name | File Name | Installation Location | Download Link | Description |
---|---|---|---|---|
CLIP Model | clip_l.safetensors | ComfyUI/models/clip/ | Download | Standard CLIP Encoder |
CLIP Model | t5xxl_fp16.safetensors | ComfyUI/models/clip/ | Download | Standard Precision Version |
CLIP Model | t5xxl_fp8_e4m3fn.safetensors | ComfyUI/models/clip/ | Download | Low Precision Version |
VAE Model | ae.safetensors | ComfyUI/models/vae/ | Download | VAE Encoder-Decoder |
Flux Depth | flux1-depth-dev.safetensors | ComfyUI/models/diffusion_models/ | Download | Depth Control Model |
Flux Canny | flux1-canny-dev.safetensors | ComfyUI/models/diffusion_models/ | Download | Edge Control Model |
3. LoRA Version Model Downloads
Model Name | File Name | Installation Location | Download Link | Description |
---|---|---|---|---|
Flux Base Model | flux1-dev.safetensors | ComfyUI/models/diffusion_models/ | Download | LoRA Base Model |
Depth LoRA | flux1-depth-dev-lora.safetensors | ComfyUI/models/loras/ | Download | Depth Control LoRA |
Canny LoRA | flux1-canny-dev-lora.safetensors | ComfyUI/models/loras/ | Download | Edge Control LoRA |
4. Workflow File Downloads
5. System Requirements
- VRAM Requirements: Recommended minimum 16GB VRAM
- If VRAM is limited, you can use fp8 version models to reduce VRAM usage
Flux ControlNet Workflow Usage Guide
Full Version Usage Tips
-
ControlNetLoader
- Depth Model: For maintaining reference image 3D structure
- Canny Model: For maintaining reference image edge lines
-
Preprocessing Nodes
- DepthPreprocessor: Generates depth maps, no additional adjustment needed
- CannyEdgePreprocessor: Threshold adjustments control edge detection detail
- low threshold: Edge detection sensitivity
- high threshold: Edge line completeness
-
FluxGuidance
- Recommended value: 3.5-4.0
- Higher values make generation results closer to prompt description
-
ModelSamplingFlux
- shift_factor: 1.15 (default value, usually no adjustment needed)
- multiplier: 0.5 (can be fine-tuned as needed)
LoRA Version Usage Tips
-
LoraLoaderModelOnly Node
- Load corresponding LoRA model file
- Recommended strength parameter: 1.0
- Requires base Flux model to be loaded first
-
InstructPixToPixConditioning Node
- Used for image-to-image condition control
- Requires VAE and original image input connections
-
KSampler Settings
- Recommended steps: 20
- Sampler: euler
- Scheduler: normal
- Denoise: 1.0
Version Selection Guidelines
-
When to Choose Full Version
- Have sufficient VRAM (16GB+)
- Seeking best generation quality
- Need more precise control
-
When to Choose LoRA Version
- Limited VRAM (8-16GB)
- Need faster generation speed
- Quality requirements are not extremely strict
Parameter Tuning Tips
Depth Control
- Suitable for scenes requiring spatial structure maintenance
- Recommended control strength: 0.6-0.9
Canny Control
- Suitable for scenes requiring line and contour maintenance
- Recommended control strength: 0.5-0.8
General Tips
- Test with default parameters first
- Gradually adjust control strength based on generation results
- Further optimize results by adjusting prompts
Advanced Applications
-
Mixed Control
- Can use Depth and Canny control simultaneously
- Adjust weights of different control networks
-
Style Transfer
- Combine with LoRA models
- Use style prompts
-
Batch Processing
- Use batch processing nodes
- Optimize workflow