Recent works have explored text-guided image editing using diffusion models and generated edited images based on text prompts. However, the models struggle to accurately locate the regions to be edited and faithfully perform precise edits. In this work, we propose a framework termed InstructEdit that can do fine-grained editing based on user instructions. Our proposed framework has three components: language processor, segmenter, and image editor. The first component, the language processor, processes the user instruction using a large language model. The goal of this processing is to parse the user instruction and output prompts for the segmenter and captions for the image editor. We adopt ChatGPT and optionally BLIP2 for this step. The second component, the segmenter, uses the segmentation prompt provided by the language processor. We employ a state-of-the-art segmentation framework Grounded Segment Anything to automatically generate a high-quality mask based on the segmentation prompt. The third component, the image editor, uses the captions from the language processor and the masks from the segmenter to compute the edited image. We adopt Stable Diffusion and the mask-guided generation from DiffEdit for this purpose. Experiments show that our method outperforms previous editing methods in fine-grained editing applications where the input image contains a complex object or multiple objects. We improve the mask quality over DiffEdit and thus improve the quality of edited images. We also show that our framework can accept multiple forms of user instructions as input. We provide the code at https://github.com/QianWangX/InstructEdit.
MADiff: Text-Guided Fashion Image Editing with Mask Prediction and Attention-Enhanced Diffusion
Southeast University(东南大学);Advanced Ocean Institute of Southeast University(东南大学先进海洋研究院);Northwestern Polytechnical University(西北工业大学);Binjiang Institute of Artificial Intelligence, ZJUT(浙江工业大学滨江人工智能研究院);Alibaba Group(阿里巴巴集团)
SAM-Flow: Source-Anchored Masked Flow for Training-Free Image Editing
Tianjin Key Laboratory of Imaging and Sensing Microelectronic Technology, School of Microelectronics, Tianjin University(天津影像与传感微电子技术重点实验室,微电子学院,天津大学);School of Cyber Security, Tianjin University(网络安全学院,天津大学)
MDE-Edit: Masked Dual-Editing for Multi-Object Image Editing via Diffusion Models
School of Computer Science and Information Engineering(计算机科学与信息工程学院);Hefei University of Technology(合肥工业大学);School of computer and artificial intelligence(计算机与人工智能学院);Liaoning Normal University(辽宁师范大学)
AnyDesign: Versatile Area Fashion Editing via Mask-Free Diffusion
Foundation Model Research Center, Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所基础模型研究中心);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Wuhan AI Research(武汉人工智能研究所);Wuhan University(武汉大学)
AVI-Edit: Audio-sync Video Instance Editing with Granularity-Aware Mask Refiner
School of Software and Microelectronics, Peking University(北京大学软件与微电子学院);Beijing Academy of Artificial Intelligence(北京人工智能研究院);State Key Lab of Multimedia Info. Processing, School of Computer Science, Peking University(北京大学计算机学院多媒体信息处理国家重点实验室);Nat’l Eng. Research Ctr. of Visual Tech., School of Computer Science, Peking University(北京大学计算机学院视觉技术工程研究中心);Institute for Artificial Intelligence, Peking University(北京大学人工智能研究院)