DeltaSpace: A Semantic-aligned Feature Space for Flexible Text-guided Image Editing

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Lyu, Yueming, Zhao, Kang, Peng, Bo, Chen, Huafeng, Jiang, Yue, Zhang, Yingya, Dong, Jing, Shan, Caifeng
Natura: Preprint
Pubblicazione: 2023
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866914312463843328
author Lyu, Yueming
Zhao, Kang
Peng, Bo
Chen, Huafeng
Jiang, Yue
Zhang, Yingya
Dong, Jing
Shan, Caifeng
author_facet Lyu, Yueming
Zhao, Kang
Peng, Bo
Chen, Huafeng
Jiang, Yue
Zhang, Yingya
Dong, Jing
Shan, Caifeng
contents Text-guided image editing faces significant challenges when considering training and inference flexibility. Much literature collects large amounts of annotated image-text pairs to train text-conditioned generative models from scratch, which is expensive and not efficient. After that, some approaches that leverage pre-trained vision-language models have been proposed to avoid data collection, but they are limited by either per text-prompt optimization or inference-time hyper-parameters tuning. To address these issues, we investigate and identify a specific space, referred to as CLIP DeltaSpace, where the CLIP visual feature difference of two images is semantically aligned with the CLIP textual feature difference of their corresponding text descriptions. Based on DeltaSpace, we propose a novel framework called DeltaEdit, which maps the CLIP visual feature differences to the latent space directions of a generative model during the training phase, and predicts the latent space directions from the CLIP textual feature differences during the inference phase. And this design endows DeltaEdit with two advantages: (1) text-free training; (2) generalization to various text prompts for zero-shot inference. Extensive experiments validate the effectiveness and versatility of DeltaEdit with different generative models, including both the GAN model and the diffusion model, in achieving flexible text-guided image editing. Code is available at https://github.com/Yueming6568/DeltaEdit.
format Preprint
id arxiv_https___arxiv_org_abs_2310_08785
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle DeltaSpace: A Semantic-aligned Feature Space for Flexible Text-guided Image Editing
Lyu, Yueming
Zhao, Kang
Peng, Bo
Chen, Huafeng
Jiang, Yue
Zhang, Yingya
Dong, Jing
Shan, Caifeng
Computer Vision and Pattern Recognition
Artificial Intelligence
Text-guided image editing faces significant challenges when considering training and inference flexibility. Much literature collects large amounts of annotated image-text pairs to train text-conditioned generative models from scratch, which is expensive and not efficient. After that, some approaches that leverage pre-trained vision-language models have been proposed to avoid data collection, but they are limited by either per text-prompt optimization or inference-time hyper-parameters tuning. To address these issues, we investigate and identify a specific space, referred to as CLIP DeltaSpace, where the CLIP visual feature difference of two images is semantically aligned with the CLIP textual feature difference of their corresponding text descriptions. Based on DeltaSpace, we propose a novel framework called DeltaEdit, which maps the CLIP visual feature differences to the latent space directions of a generative model during the training phase, and predicts the latent space directions from the CLIP textual feature differences during the inference phase. And this design endows DeltaEdit with two advantages: (1) text-free training; (2) generalization to various text prompts for zero-shot inference. Extensive experiments validate the effectiveness and versatility of DeltaEdit with different generative models, including both the GAN model and the diffusion model, in achieving flexible text-guided image editing. Code is available at https://github.com/Yueming6568/DeltaEdit.
title DeltaSpace: A Semantic-aligned Feature Space for Flexible Text-guided Image Editing
topic Computer Vision and Pattern Recognition
Artificial Intelligence
url https://arxiv.org/abs/2310.08785