This workflow is not state of the art anymore, please refer to the Flux.1 Fill and the official comfyui workflows for your inpainting and outpainting needs. Details below:
Runtime profile
Source description
Notice
This workflow is not state of the art anymore, please refer to the Flux.1 Fill and the official comfyui workflows for your inpainting and outpainting needs. Details below:
Black forest labs has since released official flux 1 tools: https://blackforestlabs.ai/flux-1-tools/
The tools include the Flux.1 Fill [dev] model which is better than the alimama controlnet used in this workflow.
There is native comfyui support for the flux 1 tools: which you should use for your inpainting and outpainting needs.
AI-generated commentary
AI-generated explanation based on source and configuration details. Suggestions are clearly labeled.
Flux Inpaint and Outpaint Workflow is a ComfyUI workflow for inpainting and outpainting, using an image and mask information and providing image previews and saved images.
The graph includes LoadImage for an image, with ImageToMask and MaskComposite for mask handling.
PreviewImage and SaveImage are listed for image previews and saved images.
The instructions place FLUX.1-Turbo-Alpha.safetensors in models/loras/flux and FLUX.1-dev-Controlnet-Inpainting-Beta-fp8.safetensors in models/controlnet.
For a 16GB VRAM setup, the instructions say to rename diffusion_pytorch_model.safetensors and convert it to FP8 with Kijai’s script.
The listed model files are ae.safetensors; FLUX.1-dev-Controlnet-Inpainting-Beta-fp8.safetensors; FLUX.1-Turbo-Alpha.safetensors; flux1-dev-fp8-e4m3fn.safetensors; t5xxl_fp8_e4m3fn_scaled.safetensors; and ViT-L-14-BEST-smooth-GmP-TE-only-HF-format.safetensors.
The listed add-ons are ComfyUI-KJNodes and comfyui_segment_anything.
The author describes alimama-creative/FLUX.1-dev-Controlnet-Inpainting-Beta and alimama-creative/FLUX.1-Turbo-Alpha as the model pair for eight-step inpainting and outpainting in one workflow.
The author lists automatic segmentation as an option for systems with more than 16GB VRAM.
Before setup, verify the diffusion model filename: the instructions name flux1-dev-fp8-e4m3fb.safetensors, while the listed model file is flux1-dev-fp8-e4m3fn.safetensors.
Suggestion · not verified
The author says this workflow is no longer state of the art and will not be updated; for current inpainting or outpainting, they point to Flux.1 Fill and the official ComfyUI workflows.
Suggestion
Does this need to be edited?
Sign in to send an edit request.
Sources
1 sourceSource excerpts
3 excerptsSource context: 10215 downloads · Type Workflows · Base model Flux.1 D
You can grab the official comfyui inpaint and outpaint workflows from: https://comfyanonymous.github.io/ComfyUI_examples/flux/ by downloading the images (workflow embedded within the images) and opening them in comfyui.
If you have low VRAM, you can download the fp8 version of the Flux.1 Fill [dev] model from here: https://civitai.com/models/969431/flux-fill-fp8
This workflow will not be updated anymore because there is nothing I have to add to the official comfyui inpaint and outpaint workflows.
Introduction
The latest version of this workflow uses
alimama-creative/FLUX.1-dev-Controlnet-Inpainting-Beta
alimama-creative/FLUX.1-Turbo-Alpha
to achieve 8 steps inpainting and outpainting within the same workflow.
Models
FLUX.1-Turbo-Alpha.safetensors (models/loras/flux) https://huggingface.co/alimama-creative/FLUX.1-Turbo-Alpha
FLUX.1-dev-Controlnet-Inpainting-Beta-fp8.safetensors (models/controlnet) https://huggingface.co/alimama-creative/FLUX.1-dev-Controlnet-Inpainting-Beta
Download diffusion_pytorch_model.safetensors, rename the file and use Kijai's script ( https://huggingface.co/Kijai/flux-fp8/discussions/7#66ae0455a20def3de3c6d476 ) to convert to FP8 to be able to fit into 16GB VRAM.
flux1-dev-fp8-e4m3fb.safetensors (models/diffusion_models/flux): https://huggingface.co/Kijai/flux-fp8/tree/main
t5xxl_fp8_e4m3fn_scaled.safetensors (models/clip): https://huggingface.co/comfyanonymous/flux_text_encoders/tree/main
ViT-L-14-BEST-smooth-GmP-TE-only-HF-format.safetensors (models/clip): https://huggingface.co/zer0int/CLIP-GmP-ViT-L-14/tree/main
Custom Nodes
segment anything (if you have > 16GB VRAM and want to use automatic segmentation)
Various ComfyUI Nodes by Type
KJNodes for ComfyU
Estimated VRAM requirement
Estimate unavailable
320 MB across 1 of 12 model files. Model file total + 25% loading overhead + 2 GB execution buffer, rounded up.
Requirements
36 requirementsae.safetensors
FoundVAE · 320 MB · SAFETENSORS · Unknown
DualCLIPLoader
PossibleText encoder · Unknown
FLUX.1-dev-Controlnet-Inpainting-Beta-fp8.safetensors
File unverifiedControlNet · Unknown
FLUX.1-Turbo-Alpha.safetensors
Not resolvedLoRA · Unknown
flux1-dev-fp8-e4m3fn.safetensors
File unverifiedCheckpoint · Unknown · SHA-256 47d8dbdc6da6
GroundingDinoModelLoader (segment anything)
File unverifiedSegmentation · Unknown · comfyui_segment_anything
GroundingDinoSAMSegment (segment anything)
File unverifiedSegmentation · Unknown · comfyui_segment_anything
SAMModelLoader (segment anything)
File unverifiedSegmentation · Unknown · comfyui_segment_anything
t5xxl_fp8_e4m3fn_scaled.safetensors
File unverifiedText encoder · Unknown
VAEDecode
PossibleVAE · Unknown
VAELoader
PossibleVAE · Unknown
ViT-L-14-BEST-smooth-GmP-TE-only-HF-format.safetensors
Not resolvedText encoder · Unknown
Any Switch (rgthree)
Not resolvedNode pack · Unknown
BasicScheduler
PossibleNode pack · Unknown
CFGGuider
Not resolvedNode pack · Unknown
CLIPTextEncodeFlux
Source context: 10205 downloads · Type Workflows · Base model Flux.1 D
Source context: 10194 downloads · Type Workflows · Base model Flux.1 D
Node pack · Unknown
ConditioningZeroOut
PossibleNode pack · Unknown
ControlNetInpaintingAliMamaApply
Not resolvedNode pack · Unknown
ControlNetLoader
PossibleNode pack · Unknown
EmptySD3LatentImage
Not resolvedNode pack · Unknown
GetImageSizeAndCount
PossibleNode pack · Unknown
Node pack · Unknown
ImageAndMaskPreview
PossibleNode pack · Unknown
ImagePadForOutpaint
PossibleNode pack · Unknown
ImageToMask
PossibleNode pack · Unknown
JWImageResizeToClosestSDXLResolution
Not resolvedNode pack · Unknown
KSamplerSelect
PossibleNode pack · Unknown
LoadImage
PossibleNode pack · Unknown
LoraLoader
PossibleNode pack · Unknown
MaskComposite
PossibleNode pack · Unknown
MaskToImage
PossibleNode pack · Unknown
PreviewImage
PossibleNode pack · Unknown
RandomNoise
Not resolvedNode pack · Unknown
SamplerCustomAdvanced
Not resolvedNode pack · Unknown
SaveImage
PossibleNode pack · Unknown
UNETLoader
PossibleNode pack · Unknown