Click2Mask: Local Editing with Dynamic Mask Generation
Omer Regev, Omri Avrahami, Dani Lischinski
TL;DR
Click2Mask addresses local image editing with minimal user input by enabling edits around a single clicked point, guided by a dynamic mask evolving under a semantic loss. The approach uses Blended Latent Diffusion as the editing backbone and Alpha-CLIP to steer mask evolution, yielding a final edited image after a final BLD pass with a learned mask. Key contributions include eliminating the need for precise masks or detailed location prompts, enabling free-form object addition, and providing a mask-evolution mechanism that can be integrated into other editing methods. Empirical results show superior performance to state-of-the-art baselines in both human judgments and automatic metrics, with robust ablations supporting the design choices. The method offers a practical, user-friendly path for localized image manipulation in real-world workflows and can be embedded into broader editing pipelines.
Abstract
Recent advancements in generative models have revolutionized image generation and editing, making these tasks accessible to non-experts. This paper focuses on local image editing, particularly the task of adding new content to a loosely specified area. Existing methods often require a precise mask or a detailed description of the location, which can be cumbersome and prone to errors. We propose Click2Mask, a novel approach that simplifies the local editing process by requiring only a single point of reference (in addition to the content description). A mask is dynamically grown around this point during a Blended Latent Diffusion (BLD) process, guided by a masked CLIP-based semantic loss. Click2Mask surpasses the limitations of segmentation-based and fine-tuning dependent methods, offering a more user-friendly and contextually accurate solution. Our experiments demonstrate that Click2Mask not only minimizes user effort but also enables competitive or superior local image manipulations compared to SoTA methods, according to both human judgement and automatic metrics. Key contributions include the simplification of user input, the ability to freely add objects unconstrained by existing segments, and the integration potential of our dynamic mask approach within other editing methods.
