CLIP-Guided StyleGAN Inversion for Text-Driven Real Image Editing

Ahmet Canberk Baykal, Abdul Basit Anees, Duygu Ceylan, Erkut Erdem, Aykut Erdem +1 more
7/17/2023
cs.CV

No official code found. Best implementation: johnberg1/CLIPInverter (18 stars, last commit 2024-02-29).

Abstract

Researchers have recently begun exploring the use of StyleGAN-based models for real image editing. One particularly interesting application is using natural language descriptions to guide the editing process. Existing approaches for editing images using language either resort to instance-level latent code optimization or map predefined text prompts to some editing directions in the latent space. However, these approaches have inherent limitations. The former is not very efficient, while the latter often struggles to effectively handle multi-attribute changes. To address these weaknesses, we present CLIPInverter, a new text-driven image editing approach that is able to efficiently and reliably perform multi-attribute changes. The core of our method is the use of novel, lightweight text-conditioned adapter layers integrated into pretrained GAN-inversion networks. We demonstrate that by conditioning the initial inversion step on the CLIP embedding of the target description, we are able to obtain more successful edit directions. Additionally, we use a CLIP-guided refinement step to make corrections in the resulting residual latent codes, which further improves the alignment with the text prompt. Our method outperforms competing approaches in terms of manipulation accuracy and photo-realism on various domains including human faces, cats, and birds, as shown by our qualitative and quantitative results.

View on arXivView PDF

Code Implementations(1)

Official Implementation of CLIP-Guided StyleGAN Inversion for Text-Driven Real Image Editing published in ACM TOG 2023

182Python, Jupyter NotebookJul 17, 20232 years ago

Similar Papers

Cite this paper

@article{baykal2023clipguided,
  title  = {CLIP-Guided StyleGAN Inversion for Text-Driven Real Image Editing},
  author = {Ahmet Canberk Baykal and Abdul Basit Anees and Duygu Ceylan and Erkut Erdem and Aykut Erdem and Deniz Yuret},
  year   = {2023},
  eprint = {2307.08397},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.08397v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.08397.svg)](https://codeofpaper.com/paper/2307.08397)

Discussion