SDXL inpainting "at full resolution" workflow
created 6 months ago
inpainting
img2img
controlnet
ipadapter
lora
75 nodes

2.9k

585

Credits
Thanks to all custom node developers!
Outputs
example image output optimized_comfy_workflows_user_uploads/62d4b7db-3d20-4e25-9058-4110faf8cf6f/assets/comp.webp for workflow.
Description

Maybe this workflow is to basic for this lofty place. However, I struggled quite a while with a good SDXL inpainting workflow. Before inpainting it will blow the masked size up to 1024x1024 to get a nice resolution. The blurred latent mask does its best to prevent ugly seams.

Concept:

  1. Generate your usual 1024x1024 Image.

  2. Upscale (I go for 1848x1848 since somehow results from a 1.8x resize in my upscaler).

  3. Load to upscaled Image to the workflow, use ComfyShop to draw a mask and inpaint. A transparent PNG in the original size with only the newly inpainted part will be generated.

  4. Layer copy & paste this PNG on top your original in your go to image editing software. Save new Image

  5. Insert new Image in workflow again and inpaint something else

  6. rinse and repeat.

The workflow includes optional modules for LORAs, IP-Adapter and ControlNet.

WARNING: Don't install ALL the suggested nodes from ComfyUI Manager's "install missing nodes" feature!!! It will lead to conflicted nodes with the same name and a crash. Just install these nodes:

Fannovel16 ComfyUI's ControlNet Auxiliary Preprocessors
Derfuu Derfuu_ComfyUI_ModdedNodes
EllangoK ComfyUI-post-processing-nodes
BadCafeCode Masquerade Nodes
Jcd1230 Rembg Background Removal Node for ComfyUI
Nourepide Allor Plugin
Suzie1 ComfyUI_Comfyroll_CustomNodes
cubiq ComfyUI_IPAdapter_plus
rgthree rgthree's ComfyUI Nodes

Additionally, I suggest Mangler's FTW ComfyI2I as it provides a nice masking editor by right clicking on the loaded image.

Built-in nodes
PreviewImage
SaveImage
ControlNetLoader
LoadImage
CheckpointLoaderSimple
MaskToImage
ControlNetApply
CLIPTextEncodeSDXL
VAEEncode
SetLatentNoiseMask
KSampler
VAEDecode
InvertMask
CLIPVisionLoader
Custom nodes
Float
Mask To Region
Cut By Mask
Blur
Image To Mask
CR Image Input Switch (4 way)
HEDPreprocessor
LineArtPreprocessor
Image Remove Background (rembg)
ColorTint
AlphaChanelRemove
Paste By Mask
AlphaChanelAddByMask
IPAdapterModelLoader
ColorCorrect
Models
2
0
0
1