MaskFlow: Precise, Consistent and Seamless Regional Image Editing

Rui Xu, Yang Yong, Shunzi Yang, Ruihao Gong, Chengtao Lv
8/7/2026
cs.CVcs.AI

No confident code implementation found for this paper.

Abstract

Regional image editing has attracted considerable attention for its spatial controllability. Although instruction-based and mask-based editing methods can achieve strong semantic alignment, reliable regional control remains challenging, where an edit must be accurately localized and naturally integrated with the preserved context.

Show full abstract

We propose MaskFlow, a training framework for precise localization, consistent background preservation, and seamless boundary transitions. MaskFlow incorporates the mask into the probability path and flow-matching objective, coordinating generation within the editable region with source preservation outside it. The proposed Soft-Poisson De-seaming module further refines the predicted vector field during both training and sampling to improve the smooth integration of the edited foreground with the preserved background. We also introduce MaskEdit-Benchmark for general scene and infographics editing, where prompts describe the desired edits without localization cues, leaving masks to specify the target regions. Experiments on natural scenes and infographic images demonstrate consistent improvements over competing methods in both quantitative and qualitative evaluations. Project page: https://reychiaro.github.io/MaskFlow

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{xu2026maskflow,
  title  = {MaskFlow: Precise, Consistent and Seamless Regional Image Editing},
  author = {Rui Xu and Yang Yong and Shunzi Yang and Ruihao Gong and Chengtao Lv},
  year   = {2026},
  eprint = {2608.06929},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.06929v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.06929.svg)](https://codeofpaper.com/paper/2608.06929)

Discussion