Abstract
Regional image editing offers intuitive spatial control, but existing instruction- and mask-guided methods often struggle with precise localization, background preservation, and smooth boundary transitions. We propose MaskFlow, a training framework that incorporates the mask into the probability path and flow-matching objective to constrain the editable region while preserving unmasked content. A Soft-Poisson de-seaming module further refines the predicted vector field at each sampling step, improving continuity between the generated foreground and preserved background. Experiments on natural scenes and infographic images demonstrate reliable, high-fidelity edits with improved localization, background consistency, and boundary alignment.
Contributions
-
1
A mask-aware flow-matching framework that concentrates generation inside arbitrary edit regions while preserving the source background.
-
2
Soft-Poisson de-seaming, which refines the vector field throughout sampling instead of treating boundary artifacts as post-processing.
-
3
MEData, a paired regional editing dataset covering natural scenes and challenging infographic images.