LIME: Localized Image Editing via Attention Regularization in Diffusion Models

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Simsar, Enis, Tonioni, Alessio, Xian, Yongqin, Hofmann, Thomas, Tombari, Federico
Format: Preprint
Publié: 2023
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866916507895726080
author Simsar, Enis
Tonioni, Alessio
Xian, Yongqin
Hofmann, Thomas
Tombari, Federico
author_facet Simsar, Enis
Tonioni, Alessio
Xian, Yongqin
Hofmann, Thomas
Tombari, Federico
contents Diffusion models (DMs) have gained prominence due to their ability to generate high-quality varied images with recent advancements in text-to-image generation. The research focus is now shifting towards the controllability of DMs. A significant challenge within this domain is localized editing, where specific areas of an image are modified without affecting the rest of the content. This paper introduces LIME for localized image editing in diffusion models. LIME does not require user-specified regions of interest (RoI) or additional text input, but rather employs features from pre-trained methods and a straightforward clustering method to obtain precise editing mask. Then, by leveraging cross-attention maps, it refines these segments for finding regions to obtain localized edits. Finally, we propose a novel cross-attention regularization technique that penalizes unrelated cross-attention scores in the RoI during the denoising steps, ensuring localized edits. Our approach, without re-training, fine-tuning and additional user inputs, consistently improves the performance of existing methods in various editing benchmarks. The project page can be found at https://enisimsar.github.io/LIME/.
format Preprint
id arxiv_https___arxiv_org_abs_2312_09256
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle LIME: Localized Image Editing via Attention Regularization in Diffusion Models
Simsar, Enis
Tonioni, Alessio
Xian, Yongqin
Hofmann, Thomas
Tombari, Federico
Computer Vision and Pattern Recognition
Diffusion models (DMs) have gained prominence due to their ability to generate high-quality varied images with recent advancements in text-to-image generation. The research focus is now shifting towards the controllability of DMs. A significant challenge within this domain is localized editing, where specific areas of an image are modified without affecting the rest of the content. This paper introduces LIME for localized image editing in diffusion models. LIME does not require user-specified regions of interest (RoI) or additional text input, but rather employs features from pre-trained methods and a straightforward clustering method to obtain precise editing mask. Then, by leveraging cross-attention maps, it refines these segments for finding regions to obtain localized edits. Finally, we propose a novel cross-attention regularization technique that penalizes unrelated cross-attention scores in the RoI during the denoising steps, ensuring localized edits. Our approach, without re-training, fine-tuning and additional user inputs, consistently improves the performance of existing methods in various editing benchmarks. The project page can be found at https://enisimsar.github.io/LIME/.
title LIME: Localized Image Editing via Attention Regularization in Diffusion Models
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2312.09256