The raw SAM mask is a hard binary edge — KSampler repaints right up
to it, and SDXL has no surrounding-pixel context inside the mask to
blend with. Result: the inpainted region looks pasted-on with visible
seams (the artifact the user reported on the werewolf-groin edit).
Inserted a stock GrowMask node (id 17) between
GroundingDinoSAMSegment and SetLatentNoiseMask:
- expand=12 grows the mask outward by 12 px so the new content
overlaps a strip of original pixels for blending
- tapered_corners=True softens the edge so the noise transition
isn't a step function
GrowMask is built into stock ComfyUI; no extra custom node install.
KSampler still uses the caller-supplied denoise (default 1.0 in
inpaint mode).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>