S$^2$Edit: Text-Guided Image Editing with Precise Semantic and Spatial Control

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Liu, Xudong, Chen, Zikun, Jiang, Ruowei, Wu, Ziyi, Yin, Kejia, Zhao, Han, Aarabi, Parham, Gilitschenski, Igor
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866914219561058304
author Liu, Xudong
Chen, Zikun
Jiang, Ruowei
Wu, Ziyi
Yin, Kejia
Zhao, Han
Aarabi, Parham
Gilitschenski, Igor
author_facet Liu, Xudong
Chen, Zikun
Jiang, Ruowei
Wu, Ziyi
Yin, Kejia
Zhao, Han
Aarabi, Parham
Gilitschenski, Igor
contents Recent advances in diffusion models have enabled high-quality generation and manipulation of images guided by texts, as well as concept learning from images. However, naive applications of existing methods to editing tasks that require fine-grained control, e.g., face editing, often lead to suboptimal solutions with identity information and high-frequency details lost during the editing process, or irrelevant image regions altered due to entangled concepts. In this work, we propose S$^2$Edit, a novel method based on a pre-trained text-to-image diffusion model that enables personalized editing with precise semantic and spatial control. We first fine-tune our model to embed the identity information into a learnable text token. During fine-tuning, we disentangle the learned identity token from attributes to be edited by enforcing an orthogonality constraint in the textual feature space. To ensure that the identity token only affects regions of interest, we apply object masks to guide the cross-attention maps. At inference time, our method performs localized editing while faithfully preserving the original identity with semantically disentangled and spatially focused identity token learned. Extensive experiments demonstrate the superiority of S$^2$Edit over state-of-the-art methods both quantitatively and qualitatively. Additionally, we showcase several compositional image editing applications of S$^2$Edit such as makeup transfer.
format Preprint
id arxiv_https___arxiv_org_abs_2507_04584
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle S$^2$Edit: Text-Guided Image Editing with Precise Semantic and Spatial Control
Liu, Xudong
Chen, Zikun
Jiang, Ruowei
Wu, Ziyi
Yin, Kejia
Zhao, Han
Aarabi, Parham
Gilitschenski, Igor
Computer Vision and Pattern Recognition
Recent advances in diffusion models have enabled high-quality generation and manipulation of images guided by texts, as well as concept learning from images. However, naive applications of existing methods to editing tasks that require fine-grained control, e.g., face editing, often lead to suboptimal solutions with identity information and high-frequency details lost during the editing process, or irrelevant image regions altered due to entangled concepts. In this work, we propose S$^2$Edit, a novel method based on a pre-trained text-to-image diffusion model that enables personalized editing with precise semantic and spatial control. We first fine-tune our model to embed the identity information into a learnable text token. During fine-tuning, we disentangle the learned identity token from attributes to be edited by enforcing an orthogonality constraint in the textual feature space. To ensure that the identity token only affects regions of interest, we apply object masks to guide the cross-attention maps. At inference time, our method performs localized editing while faithfully preserving the original identity with semantically disentangled and spatially focused identity token learned. Extensive experiments demonstrate the superiority of S$^2$Edit over state-of-the-art methods both quantitatively and qualitatively. Additionally, we showcase several compositional image editing applications of S$^2$Edit such as makeup transfer.
title S$^2$Edit: Text-Guided Image Editing with Precise Semantic and Spatial Control
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2507.04584