无需遮罩,用语言指令精准编辑图像中参考对象的视觉特征。
FreeEdit: Mask-free Reference-based Image Editing with Multi-modal Instruction

- 通过多模态指令编码器解析语言指令,自动定位编辑区域。
- 引入解耦残差参考注意力模块,保留参考图像细节且不干扰原注意力机制。
- 构建新数据集FreeBench,支持零样本下多种图像编辑任务。
在图像编辑中引入用户指定的视觉概念更具实用性,因其能更精确表达用户意图。本文提出FreeEdit,一种新型参考图像引导的图像编辑方法,可基于用户友好的语言指令准确还原参考图像中的视觉概念。该方法利用多模态指令编码器将语言指令编码以指导编辑过程,隐式定位编辑区域,无需手动绘制遮罩。为增强参考细节重建,提出解耦残差参考注意力(DRRA)模块,以残差方式融合由细节提取器获取的细粒度参考特征,不影响原始自注意力结构。由于现有数据集不适用于参考图像编辑任务,尤其难以构造包含参考图像的图像三元组,本文采用新型双次重绘方案构建高质量数据集FreeBench,包含编辑前后图像、详细编辑指令及保持被编辑对象身份的参考图像,涵盖物体添加、替换和删除等任务。通过在FreeBench上分阶段训练并进行质量调优,FreeEdit实现仅依赖语言指令的高质量零样本编辑。大量实验验证了其在多种任务类型下的有效性,优于现有方法。代码将公开于https://freeedit.github.io/。
原文摘要 · Abstract (English)
Introducing user-specified visual concepts in image editing is highly practical as these concepts convey the user's intent more precisely than text-based descriptions. We propose FreeEdit, a novel approach for achieving such reference-based image editing, which can accurately reproduce the visual concept from the reference image based on user-friendly language instructions. Our approach leverages the multi-modal instruction encoder to encode language instructions to guide the editing process. This implicit way of locating the editing area eliminates the need for manual editing masks. To enhance the reconstruction of reference details, we introduce the Decoupled Residual ReferAttention (DRRA) module. This module is designed to integrate fine-grained reference features extracted by a detail extractor into the image editing process in a residual way without interfering with the original self-attention. Given that existing datasets are unsuitable for reference-based image editing tasks, particularly due to the difficulty in constructing image triplets that include a reference image, we curate a high-quality dataset, FreeBench, using a newly developed twice-repainting scheme. FreeBench comprises the images before and after editing, detailed editing instructions, as well as a reference image that maintains the identity of the edited object, encompassing tasks such as object addition, replacement, and deletion. By conducting phased training on FreeBench followed by quality tuning, FreeEdit achieves high-quality zero-shot editing through convenient language instructions. We conduct extensive experiments to evaluate the effectiveness of FreeEdit across multiple task types, demonstrating its superiority over existing methods. The code will be available at: https://freeedit.github.io/.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。