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:
Profil d'exécution
Description de la source
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.
Commentaire généré par l’IA
Explication générée par l’IA à partir des détails de la source et de la configuration. Les suggestions sont clairement signalées.
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 · non vérifié
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
Faut-il modifier cela ?
Connectez-vous pour envoyer une demande de modification.
Sources
1 sourceExtraits de sources
3 extraitsSource 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
Estimation des besoins VRAM
Estimation indisponible
320 MB sur 1 de 12 fichiers de modèle. Total des fichiers du modèle + 25 % de surcharge de chargement + 2 Go de tampon d'exécution, arrondi à l'unité supérieure.
Exigences
Exigences 36ae.safetensors
TrouvéVAE · 320 MB · SAFETENSORS · Unknown
DualCLIPLoader
PossibleText encoder · Unknown
FLUX.1-dev-Controlnet-Inpainting-Beta-fp8.safetensors
Fichier non vérifiéControlNet · Unknown
FLUX.1-Turbo-Alpha.safetensors
Non résoluLoRA · Unknown
flux1-dev-fp8-e4m3fn.safetensors
Fichier non vérifiéCheckpoint · Unknown · SHA-256 47d8dbdc6da6
GroundingDinoModelLoader (segment anything)
Fichier non vérifiéSegmentation · Unknown · comfyui_segment_anything
GroundingDinoSAMSegment (segment anything)
Fichier non vérifiéSegmentation · Unknown · comfyui_segment_anything
SAMModelLoader (segment anything)
Fichier non vérifiéSegmentation · Unknown · comfyui_segment_anything
t5xxl_fp8_e4m3fn_scaled.safetensors
Fichier non vérifiéText encoder · Unknown
VAEDecode
PossibleVAE · Unknown
VAELoader
PossibleVAE · Unknown
ViT-L-14-BEST-smooth-GmP-TE-only-HF-format.safetensors
Non résoluText encoder · Unknown
Any Switch (rgthree)
Non résoluPack de nœud · Unknown
BasicScheduler
PossiblePack de nœud · Unknown
CFGGuider
Non résoluPack de nœud · Unknown
CLIPTextEncodeFlux
Source context: 10205 downloads · Type Workflows · Base model Flux.1 D
Source context: 10194 downloads · Type Workflows · Base model Flux.1 D
Pack de nœud · Unknown
ConditioningZeroOut
PossiblePack de nœud · Unknown
ControlNetInpaintingAliMamaApply
Non résoluPack de nœud · Unknown
ControlNetLoader
PossiblePack de nœud · Unknown
EmptySD3LatentImage
Non résoluPack de nœud · Unknown
GetImageSizeAndCount
PossiblePack de nœud · Unknown
Pack de nœud · Unknown
ImageAndMaskPreview
PossiblePack de nœud · Unknown
ImagePadForOutpaint
PossiblePack de nœud · Unknown
ImageToMask
PossiblePack de nœud · Unknown
JWImageResizeToClosestSDXLResolution
Non résoluPack de nœud · Unknown
KSamplerSelect
PossiblePack de nœud · Unknown
LoadImage
PossiblePack de nœud · Unknown
LoraLoader
PossiblePack de nœud · Unknown
MaskComposite
PossiblePack de nœud · Unknown
MaskToImage
PossiblePack de nœud · Unknown
PreviewImage
PossiblePack de nœud · Unknown
RandomNoise
Non résoluPack de nœud · Unknown
SamplerCustomAdvanced
Non résoluPack de nœud · Unknown
SaveImage
PossiblePack de nœud · Unknown
UNETLoader
PossiblePack de nœud · Unknown