FLUX.1 Canny [dev] edge-guided image generation (Flux Tools)
Generate an image that follows the edges of an input picture with Black Forest Labs' FLUX.1 Canny [dev], the 12B structural-control model from FLUX.1 Tools. The core Canny node extracts edges, InstructPixToPixConditioning feeds them to the model, and FluxGuidance is set to 30. Uses the standard Flux clip_l + t5xxl_fp16 encoders and ae.safetensors VAE. A smaller LoRA version (flux1-canny-dev-lora) applies to FLUX.1 dev instead.
1. Can my computer run it?
Needs ~23.803 GB VRAM (⚠️ estimate).
2. What does it look like?
![FLUX.1 Canny [dev] full-model example](https://comfyanonymous.github.io/ComfyUI_examples/flux/flux_canny_model_example.png)
3. What does it excel at?
Best for
- Structure control: Blends prompt adherence with keeping the structure of the source image via canny edges (vendor claim) (✅ model card)
- lora-option: Also published as a LoRA extracted from the full model (flux1-canny-dev-lora, 1.24 GB) that applies to FLUX.1 dev, so Flux dev users can skip the 23.8 GB full model download (✅ official docs)
Not great for
- license: Weights are under the FLUX.1 [dev] Non-Commercial License; the card says generated outputs can be used for personal, scientific and commercial purposes as described in that license (✅ model card)
- gated-download: Gated on Hugging Face: you must log in and agree to Black Forest Labs' terms before the download works (✅ official docs)
- Prompt following: Listed limitations: it may fail to generate output that matches the prompt, and prompt following is heavily influenced by prompting style (✅ model card)
Details
Estimated VRAM
~23.803 GB @ 1024x1024 (ComfyUI_examples workflow; output size follows the input image) — ⚠️ ESTIMATE (unverified real-world usage). Estimate, not a measured figure: weight-size floor = flux1-canny-dev.safetensors (23.803 GB, size verified on Hugging Face). T5-XXL fp16 (9.788 GB), clip_l (0.246 GB) and ae.safetensors (0.335 GB) are additional; activations add more. No official VRAM figure was found. The fp8 weight_dtype tip on the ComfyUI_examples Flux page would roughly halve the diffusion weights. Source, checked 2026-10-18.
Models required
- flux1-canny-dev.safetensors — 23.803 GB ✅ verified 2026-10-18 (listing) →
models/diffusion_models - clip_l.safetensors — 0.246 GB ✅ verified 2026-10-18 (listing) · sha256
660c6f5b1abae9dc498ac2d21e1347d2abdb0cf6c0c0c8576cd796491d9a6cdd→models/text_encoders - t5xxl_fp16.safetensors — 9.788 GB ✅ verified 2026-10-18 (listing) · sha256
6e480b09fae049a72d2a8c5fbccb8d3e92febeb233bbe9dfe7256958a9167635→models/text_encoders - ae.safetensors — 0.335 GB ✅ verified 2026-10-18 (listing) →
models/vae
Tested GPUs
No verified test reports yet.
Nodes
UNETLoader DualCLIPLoader VAELoader LoadImage Canny PreviewImage CLIPTextEncode FluxGuidance InstructPixToPixConditioning KSampler VAEDecode SaveImage
Common errors & fixes
- Cannot access gated repo
- Open huggingface.co/black-forest-labs/FLUX.1-Canny-dev while logged in, agree to the terms, then download flux1-canny-dev.safetensors into ComfyUI/models/diffusion_models/ (scripted downloads also need a Hugging Face token). ✅ per source
- CUDA out of memory
- ComfyUI_examples Flux tips: set weight_dtype to fp8 in the Load Diffusion Model node (halves memory, may reduce quality a tiny bit) and use t5xxl_fp8_e4m3fn_scaled (5.16 GB) instead of t5xxl_fp16 (9.79 GB). Launch with --lowvram if needed. ✅ per source
- Canny model ignores the edge map
- Follow the official example: LoadImage, then the core Canny node (low 0.15, high 0.3), into InstructPixToPixConditioning together with the positive/negative conditioning and the VAE, with FluxGuidance 30 and KSampler CFG 1. ✅ per source
Low-VRAM tips
⚠️ General guidance, not individually verified.
- Set weight_dtype to fp8 in the Load Diffusion Model node: ComfyUI_examples says this lowers memory use by half but might reduce quality a tiny bit
- Use t5xxl_fp8_e4m3fn_scaled (5.16 GB) instead of t5xxl_fp16 (9.79 GB) for lower memory use (ComfyUI_examples Flux page)
- If you already have flux1-dev, the 1.24 GB flux1-canny-dev-lora gives the same kind of control without a second 23.8 GB download (docs.comfy.org); it does not lower VRAM
- Launch with --lowvram if needed
Source & credit
Workflow by comfyanonymous (ComfyUI_examples) / Black Forest Labs. Get it from the original: https://comfyanonymous.github.io/ComfyUI_examples/flux/. License: FLUX.1 [dev] Non-Commercial License.