Flake Inpaint
Fix one region of the frame without leaving your preset ecosystem
- flake_data
- image
- mask
- image
Flake Inpaint is the pack's answer to "the composition is right, one region is wrong." It takes an image, a mask, and a flake_data bundle, and regenerates only the masked area using the bundle's model, conditioning, and sampler settings - so it inherits whatever checkpoint, LoRAs, and prompt stack you already composed, instead of making you rebuild a parallel inpainting graph.
The mechanics are the standard ComfyUI recipe, just wrapped: the image and mask go through VAEEncodeForInpaint (with grow_mask defaulting to 6, which expands the mask by a few pixels so the boundary blends instead of showing a hard cut), then a KSampler runs at denoise 0.7, then VAE Decode hands you the patched image out the single image output. The denoise dial is the thing to reach for first: lower it (0.4–0.5) and the masked region barely changes, which is right for small tweaks; raise it and the model feels freer to re-imagine the area.
Two things make this node more than a convenience wrapper. First, the optional positive_prompt / negative_prompt overrides re-encode using the bundle's CLIP, so you can steer the inpainted region toward "regrow the hand holding the katana" without touching the flake stack or the rest of the prompt. Second, it rides the mask-based inpainting lane on purpose. As of 2026 the discourse has largely moved to instruction-editing models for whole-frame edits, but mask inpainting still uniquely owns bit-identical unmasked pixels and the denoise continuum - if you need the background untouched, a mask is the only honest tool, and this node keeps that power inside the same preset workflow you're already using.
Inputs and outputs. Required: flake_data, image (wire a Load Image), mask (from a mask source - a paint node, a segmentation mask, whatever produces a MASK), and seed. Optional: denoise (0.7), grow_mask (6), and the two prompt overrides. Output is the inpainted IMAGE.
Install. ComfyUI Manager → search ComfyUI Flakes → Install, or:
cd ComfyUI/custom_nodes
git clone https://github.com/JeyzerMC/comfyui-flakes
then restart. PyYAML is the only dependency and it ships with ComfyUI core.
Where people trip. The biggest one is expecting a canvas mask editor on the node - the source notes that's planned frontend work, so today you bring your own mask from upstream. And remember the prompt overrides are overrides: type a positive prompt and it fully replaces the bundle's positive for this inpaint pass, it doesn't append. If your inpainted region comes out washed out or fuzzy, the fix is usually the denoise value or a slightly larger grow_mask, not a new model.
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| flake_data | FLAKE_DATA | — | |
| image | IMAGE | — | |
| mask | MASK | — | |
| seed | INT | 00–18446744073709550000 | — |
| denoiseopt | FLOAT | 0.700–1 | — |
| grow_maskopt | INT | 60–256 | — |
| positive_promptopt | STRING | — | |
| negative_promptopt | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |