Run this model with HF Jobs
Run XLabs-AI/flux-controlnet-collections on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/XLabs-AI/flux-controlnet-collections. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/XLabs-AI/flux-controlnet-collections on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use XLabs-AI/flux-controlnet-collections with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use XLabs-AI/flux-controlnet-collections with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("XLabs-AI/flux-controlnet-collections", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
This repository provides a collection of ControlNet checkpoints for FLUX.1-dev model by Black Forest Labs
See our github for comfy ui workflows.

See our github for train script, train configs and demo script for inference.
Models
Our collection supports 3 models:
- Canny
- HED
- Depth (Midas)
Each ControlNet is trained on 1024x1024 resolution and works for 1024x1024 resolution. We release v3 versions - better and realistic versions, which can be used directly in ComfyUI!
Please, see our ComfyUI custom nodes installation guide
Examples
See examples of our models results below.
Also, some generation results with input images are provided in "Files and versions"
Inference
To try our models, you have 2 options:
- Use main.py from our official repo
- Use our custom nodes for ComfyUI and test it with provided workflows (check out folder /workflows)
- Use gradio demo
See examples how to launch our models:
Canny ControlNet (version 3)
- Clone our x-flux-comfyui custom nodes
- Launch ComfyUI
- Try our canny_workflow.json
Depth ControlNet (version 3)
- Clone our x-flux-comfyui custom nodes
- Launch ComfyUI
- Try our depth_workflow.json
HED ControlNet (version 3)
- Clone our x-flux-comfyui custom nodes
- Launch ComfyUI
- Try our hed_workflow.json
License
Our weights fall under the FLUX.1 [dev] Non-Commercial License
- Downloads last month
- 5,551






