Preview Repaint Regions (Yogurt Nodes)
See Your Repaint Tiles Before You Commit Compute
- image
- region_info
- preview
Masked repainting - crop a damaged region, repaint it, composite it back - is one of the most reliable ways to fix a specific part of an image without regenerating everything. The Yogurt pack has a purpose-built toolchain for it, and YogurtPreviewRepaintRegions is the safety check in that chain: it draws the planned repaint boxes over your image so you can see what's about to happen before any compute gets spent.
Two inputs, one output:
image- the original image.region_info- theDICTcoming out ofYogurtMaskRegionPlanner, which plans the fixed-size repaint tiles from a mask batch.
Output: preview, an IMAGE with the region boxes drawn on top.
Where it sits in the pipeline
The flow is: mask → Mask Region Planner (plans the tiles) → Preview Repaint Regions (this node, your eyeball check) → Crop Image By Regions → repaint the crops → Composite Repaint Regions to stitch back. The preview node is the part you can't afford to skip on an expensive run - if the planner carved up the mask badly, you'll see it as boxes covering the wrong areas or tiles that miss the damage entirely, and you can fix the mask upstream instead of wasting a full repaint pass on bad tiles.
Why you still want this in 2026
The inpainting KB talk is that instruction-editing models (Qwen-Image-Edit, Flux Kontext, Flux 2 Klein) took over a lot of what masked inpaint used to do. But mask-based region repainting still wins when you need the rest of the image to stay exactly as it is - instruction editors rewrite freely, masks don't. This toolchain is the "leave everything else alone" path, and the preview node is what makes it trustworthy.
Install
Part of ComfyUI-YogurtNodes. ComfyUI Manager → search ComfyUI-YogurtNodes → install, or:
cd ComfyUI/custom_nodes
git clone https://github.com/yogurt7771/ComfyUI-YogurtNodes.git
cd ComfyUI-YogurtNodes
pip install -r requirements.txt
Restart ComfyUI; it lives under "Yogurt Nodes/Masks", display name "Preview Repaint Regions (Yogurt Nodes)". No model downloads.
One caveat: this node is only useful when region_info comes from the pack's own Mask Region Planner - it expects that specific DICT structure. Feeding it any old dict will either draw nothing or error. And the preview is your planner check, not the final quality check; still look at the composited result after repainting to judge the seam work.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Original image. | |
| region_info | DICT | Region info from Mask Region Planner. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| preview | IMAGE | — |