This workflow is designed to focus on a specific region of an image when prompting for changes in the image. You simply open the mask editor and mask the part you want to use. (right click on the "load image" node...
Runtime profile
Source description
This workflow is designed to focus on a specific region of an image when prompting for changes in the image. You simply open the mask editor and mask the part you want to use. (right click on the "load image" node and select open mask editor")
Version 2 adds better upscaling of the masked portion for much better end results. It also adds both a nunchaku and non nunchaku version. ( If you were one of the first 10 people to download version 2, please re-download it or at least replace the Load Image (from outputs) with a regular Load Image node. Comfy somehow automatically changed it during an update).
You can install sage attention and nunchaku by following this person's guide:
Sources
1 sourceSource excerpts
1 excerptSource context: 572 downloads · Type Workflows · Base model Flux.1 Kontext
You can mess with the inpaint crop node settings a little, but I found better results by upscaling using an upscaler model after it is cropped, right before it gets resized for flux kontext. The final upscalers don't do as much, just make it bigger. You could probably rescale again here with a model if you wanted to.
Kontext often changes the resolution slightly which results in the final image not matching up correctly. This workflow works best for lora that only change one small part of the image.
Remaining hardware or download-size estimates are not available yet.
Requirements
VAE · 320 MB · Hugging Face · Comfy-Org/Lumina_Image_2.0_Repackaged
Text encoder · 235 MB · Hugging Face · comfyanonymous/flux_text_encoders
FLUX-kontext-lora-sketch-style.safetensors
File unverifiedLoRA · Hugging Face · Shakker-Labs/FLUX.1-Kontext-dev-LoRA-Sketch-Style · FLUX.1 Kontext Dev LoRA Sketch Style
svdq-int4_r32-flux.1-kontext-dev.safetensors
Not resolvedCheckpoint · Unknown
Text encoder · 4.80 GB · Hugging Face · comfyanonymous/flux_text_encoders
comfyui-inpaint-cropandstitch
FoundNode pack · Registry
Node pack · Registry
Node pack · Registry
rgthree-comfy
FoundNode pack · Registry