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:
Laufzeitprofil
Quellenbeschreibung
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.
KI-generierter Kommentar
KI-generierte Erklärung auf Grundlage von Quellen- und Konfigurationsdetails. Vorschläge sind klar gekennzeichnet.
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.
Vorschlag · nicht geprüft
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.
Vorschlag
Muss das bearbeitet werden?
Melden Sie sich an, um eine Änderungsanfrage zu senden.
Quellen
1 QuelleQuellenauszüge
3 AuszügeSource 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
Geschätzter VRAM Bedarf
Schätzung nicht verfügbar
320 MB über 1 von 12 Modell-Dateien. Gesamtmodell-Dateien + 25% Ladeaufwand + 2 GB Ausführungs-Puffer, aufgerundet.
Anforderungen
36 Anforderungenae.safetensors
GefundenVAE · 320 MB · SAFETENSORS · Unknown
DualCLIPLoader
MöglichText encoder · Unknown
FLUX.1-dev-Controlnet-Inpainting-Beta-fp8.safetensors
Datei ungeprüftControlNet · Unknown
FLUX.1-Turbo-Alpha.safetensors
Nicht aufgelöstLoRA · Unknown
flux1-dev-fp8-e4m3fn.safetensors
Datei ungeprüftCheckpoint · Unknown · SHA-256 47d8dbdc6da6
GroundingDinoModelLoader (segment anything)
Datei ungeprüftSegmentation · Unknown · comfyui_segment_anything
GroundingDinoSAMSegment (segment anything)
Datei ungeprüftSegmentation · Unknown · comfyui_segment_anything
SAMModelLoader (segment anything)
Datei ungeprüftSegmentation · Unknown · comfyui_segment_anything
t5xxl_fp8_e4m3fn_scaled.safetensors
Datei ungeprüftText encoder · Unknown
VAEDecode
MöglichVAE · Unknown
VAELoader
MöglichVAE · Unknown
ViT-L-14-BEST-smooth-GmP-TE-only-HF-format.safetensors
Nicht aufgelöstText encoder · Unknown
Any Switch (rgthree)
Nicht aufgelöstKnotenpaket · Unknown
BasicScheduler
MöglichKnotenpaket · Unknown
CFGGuider
Nicht aufgelöstKnotenpaket · Unknown
Source context: 10205 downloads · Type Workflows · Base model Flux.1 D
Source context: 10194 downloads · Type Workflows · Base model Flux.1 D
Knotenpaket · Unknown
ConditioningZeroOut
MöglichKnotenpaket · Unknown
ControlNetInpaintingAliMamaApply
Nicht aufgelöstKnotenpaket · Unknown
ControlNetLoader
MöglichKnotenpaket · Unknown
EmptySD3LatentImage
Nicht aufgelöstKnotenpaket · Unknown
GetImageSizeAndCount
MöglichKnotenpaket · Unknown
Knotenpaket · Unknown
ImageAndMaskPreview
MöglichKnotenpaket · Unknown
ImagePadForOutpaint
MöglichKnotenpaket · Unknown
ImageToMask
MöglichKnotenpaket · Unknown
JWImageResizeToClosestSDXLResolution
Nicht aufgelöstKnotenpaket · Unknown
KSamplerSelect
MöglichKnotenpaket · Unknown
LoadImage
MöglichKnotenpaket · Unknown
LoraLoader
MöglichKnotenpaket · Unknown
MaskComposite
MöglichKnotenpaket · Unknown
MaskToImage
MöglichKnotenpaket · Unknown
PreviewImage
MöglichKnotenpaket · Unknown
RandomNoise
Nicht aufgelöstKnotenpaket · Unknown
SamplerCustomAdvanced
Nicht aufgelöstKnotenpaket · Unknown
SaveImage
MöglichKnotenpaket · Unknown
UNETLoader
MöglichKnotenpaket · Unknown