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
FLUX.1 Canny [dev] full-model example · Credit: comfyanonymous (ComfyUI_examples) · source · ComfyUI_examples license: 'Permission to use, copy, modify, and/or distribute these workflows for any purpose' (github.com/comfyanonymous/ComfyUI_examples/blob/master/LICENSE) · Prompt and settings are embedded in the file: drag it into ComfyUI to load the exact workflow (flux1-canny-dev, Canny thresholds 0.15/0.3, FluxGuidance 30, 20 steps, CFG 1, euler/normal, 1024x1024).
Your render here: James's tests (coming soon, tested by jrk)

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

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.

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.