Flux Tools: Controlnet, Redux, Inpainting, Outpainting

flux tools installation and workflow

Whether you are touching up photos, creating digital art, or developing innovative applications. FLUX.1 Tools released by Black Forest Labs, a powerful suite of models that puts overall control and flexibility right at your fingertips. 

It include features(Fill, Depth Canny, and Redux) that are accessible by the community for Flux.1 Dev and Flux.1 Pro.  They work like the same Controlnet , IP Adapter techniques but way more refined than any of the third party Flux Controlnet models.

There are other third party Flux Controlnets, LoRA and Flux Inpainting featured models we have also shared in our earlier article if haven't checked yet. 

Table of Contents:


Overview

Basically four distinct features have been officially released that are illustrated below:

flux inpainting illustration
Flux Inpainting illustration


flux outpainting illustration
Flux Outpainting illustration

(a) FLUX.1 Fill- The model is based on 12 billion parameter rectified flow transformer is capable of doing inpainting and outpainting work, opening the editing functionalities with efficient implementation of textual input. When comparing with other models like Ideogram2.0 or Alimama's Controlnet Flux inapitning, gives you the natural result with more refined editing at inference.


flux depth illustration
Flux depth illustration

(b) FLUX.1 Depth- As usual like other Depth Models it responsible for depth map extraction from an inputted image and a textual based prompts. There are two model specifically for LoRA for easier editing and other raw one for maximized performance without comprimising the quality.


flux canny illustration
Flux Canny illustration

(c) FLUX.1 Canny- Model can detect and extract canny edges using text prompt from your inputted image. Again, this model also released in two variants- first for LoRA and another is raw model for maximum output performance.


Redux illustration
Redux illustration

Redux illustration with textual prompting
Redux illustration with textual prompting

(d) FLUX.1 Redux- Its a new featured tool works like an IP Adapter that provides you the way to mix and recreation of your input images with adding detailed textual embedding. This model is capable of generating new stylized image from your referenced inputted image.


Installation

1. If you are a new user, install ComfyUI and get the official Flux model weights installed (released by Black Forest Labs).

comfyui manager

2. Update ComfyUI from the Manager menu by clicking on "Update All".

Make sure you are using the raw Flux.1 Dev model released by Black forest Labs, saved to "ComfyUI/models/unet" folder and not any other variants.

3. Download the respective models, you want to use:

accept the license and agreement

Before downloading any of the models, you have to accept their terms and agreement to access from their Hugging Face repository. So, make sure you have logged in to your Hugging Face account.


Download flux fill dev model

(a) Flux Fill- Download Flux Fill Dev(flux1-fill-dev.safetensors) from Hugging Face repository and save it to "ComfyUI/models/diffusion_models" folder.


Download flux depth dev model

(b) Flux Depth- Download Flux Depth Dev (flux1-depth-dev.safetensors) from Hugging Face repository and save it to "ComfyUI/models/diffusion_models" folder.



download depth dev lora model

(c) Flux Depth LoRA- Download Flux Depth Dev LoRA (flux1-depth-dev-lora.safetensors) from Hugging Face repository and save it to "ComfyUI/models/loras" folder.


Download flux canny dev model

(d) Flux Canny- Download Flux Canny Dev (flux1-canny-dev.safetensors) from Hugging Face repository and put it to your "ComfyUI/models/diffusion_models" folder.


download canny dev lora model

(e) Flux Canny LoRA- Download Flux Canny Dev LoRA (flux1-canny-dev-lora.safetensors) from Hugging Face repository and put it to "ComfyUI/models/loras" folder.


Download flux redux dev model

(f) Flux Redux- Download Flux Redux Dev (flux1-redux-dev.safetensors) from Hugging Face repository and place it into your "Comfyui/models/style_models" folder. You also need to download Slip_clip_Vision text encoder and save this into your "ComfyUI/models/clip_vision" folder.

4. Restart ComfyUI to take effect.


Workflow Explanation

download flux tools workflow

1. Download all or any of the workflows listed into Flux Workflows from our Hugging Face repository. All types of workflow listed that are as follows:

  • Flux tool Redux Workflow used to stylized your inputted image.
  • Flux tool Canny Workflow is required for extracting image edges with refined performance.
    For Depth also this can be used, just change the model checkpoint from the loader node.
  • Flux tool Depth LoRA Workflow for depth extraction from your image. Canny LoRA can also be used. To do this, just change the model checkpoint from LoRA Loader Model only node.
  • Flux tool Fill Inpainting Workflow to edit your target image area.
  • Flux tool Fill Outpainting Workflow used to extend the image to its desired area.

Just drag and drop to ComfyUI.

Flux Depth LoRA Dev Workflow

Load diffusion model node
Load Flux Dev model


Load image node
Load image



Load clip model node
Load Clip model


LoRA model node
Load Depth-Lora model


Positive prompt node
Put positive prompt


flux guidance node
Set Flux guidance value


Depth Anything node
Load Depth anything model


KSampler Settings
Set KSampler Configuration

Flux Canny LoRA Dev Workflow

Load diffusion model node
Load Flux Dev model


Load image node
Load image


Load clip model node
Load Clip Loader


canny lora loader node
Load canny Dev Lora model


Positive prompt node
Add positive prompt


flux guidance node
Set Flux guidance value


KSampler Settings
Set Ksampler Settings


Flux Redux Workflow


Load clip model
Load Clip vision model


Load image node
Load Image

flux redux loader node
Load Flux Redux Dev model


Positive prompt node
Put Positive prompt


load diffusion model
Load flux checkpoint and clip loader


Flux Inpainting Workflow



Load diffusion model
load model checkpoint

positive prompt box
Add positive prompt



load dual clip loader model
load dual clip model


Ksampler settings
KSampler Settings


Flux guidance scale
Set Flux guidance scale



load image
Load your image for inpainting


Open in mask editor
Right click on image and Open in Mask Editor