LocInv: Localization-aware Inversion for Text-Guided Image Editing

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Tang, Chuanming, Wang, Kai, Yang, Fei, van de Weijer, Joost
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909188168351744
author Tang, Chuanming
Wang, Kai
Yang, Fei
van de Weijer, Joost
author_facet Tang, Chuanming
Wang, Kai
Yang, Fei
van de Weijer, Joost
contents Large-scale Text-to-Image (T2I) diffusion models demonstrate significant generation capabilities based on textual prompts. Based on the T2I diffusion models, text-guided image editing research aims to empower users to manipulate generated images by altering the text prompts. However, existing image editing techniques are prone to editing over unintentional regions that are beyond the intended target area, primarily due to inaccuracies in cross-attention maps. To address this problem, we propose Localization-aware Inversion (LocInv), which exploits segmentation maps or bounding boxes as extra localization priors to refine the cross-attention maps in the denoising phases of the diffusion process. Through the dynamic updating of tokens corresponding to noun words in the textual input, we are compelling the cross-attention maps to closely align with the correct noun and adjective words in the text prompt. Based on this technique, we achieve fine-grained image editing over particular objects while preventing undesired changes to other regions. Our method LocInv, based on the publicly available Stable Diffusion, is extensively evaluated on a subset of the COCO dataset, and consistently obtains superior results both quantitatively and qualitatively.The code will be released at https://github.com/wangkai930418/DPL
format Preprint
id arxiv_https___arxiv_org_abs_2405_01496
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle LocInv: Localization-aware Inversion for Text-Guided Image Editing
Tang, Chuanming
Wang, Kai
Yang, Fei
van de Weijer, Joost
Computer Vision and Pattern Recognition
Large-scale Text-to-Image (T2I) diffusion models demonstrate significant generation capabilities based on textual prompts. Based on the T2I diffusion models, text-guided image editing research aims to empower users to manipulate generated images by altering the text prompts. However, existing image editing techniques are prone to editing over unintentional regions that are beyond the intended target area, primarily due to inaccuracies in cross-attention maps. To address this problem, we propose Localization-aware Inversion (LocInv), which exploits segmentation maps or bounding boxes as extra localization priors to refine the cross-attention maps in the denoising phases of the diffusion process. Through the dynamic updating of tokens corresponding to noun words in the textual input, we are compelling the cross-attention maps to closely align with the correct noun and adjective words in the text prompt. Based on this technique, we achieve fine-grained image editing over particular objects while preventing undesired changes to other regions. Our method LocInv, based on the publicly available Stable Diffusion, is extensively evaluated on a subset of the COCO dataset, and consistently obtains superior results both quantitatively and qualitatively.The code will be released at https://github.com/wangkai930418/DPL
title LocInv: Localization-aware Inversion for Text-Guided Image Editing
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2405.01496