Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

StyleCLIP: Text-Driven Manipulation of StyleGAN Imagery

About

Inspired by the ability of StyleGAN to generate highly realistic images in a variety of domains, much recent work has focused on understanding how to use the latent spaces of StyleGAN to manipulate generated and real images. However, discovering semantically meaningful latent manipulations typically involves painstaking human examination of the many degrees of freedom, or an annotated collection of images for each desired manipulation. In this work, we explore leveraging the power of recently introduced Contrastive Language-Image Pre-training (CLIP) models in order to develop a text-based interface for StyleGAN image manipulation that does not require such manual effort. We first introduce an optimization scheme that utilizes a CLIP-based loss to modify an input latent vector in response to a user-provided text prompt. Next, we describe a latent mapper that infers a text-guided latent manipulation step for a given input image, allowing faster and more stable text-based manipulation. Finally, we present a method for mapping a text prompts to input-agnostic directions in StyleGAN's style space, enabling interactive text-driven image manipulation. Extensive results and comparisons demonstrate the effectiveness of our approaches.

Or Patashnik, Zongze Wu, Eli Shechtman, Daniel Cohen-Or, Dani Lischinski• 2021

Related benchmarks

TaskDatasetResultRank
Facial Image GenerationBP4D
FID6.803
11
Facial Image GenerationDISFA
FID6.899
11
Text-driven Image ManipulationFFHQ (test)
FID12.06
9
3D Head StylizationFFHQ (test)
FID126.2
9
3D Head StylizationRenderMe360 (test)
FID176
9
Tanned Facial Attribute EditingCelebA-HQ (test)
Sdir0.152
8
Sad Facial Attribute EditingCelebA-HQ (test)
Sdir0.149
8
Smiling Facial Attribute EditingCelebA-HQ (test)
Sdir0.13
8
Text-driven Style TransferCustom Stylized Images 10 text conditions (test)
CLIP Score0.1982
7
Text-Guided Image ManipulationHuman Face images with 10 text conditions (test)
Style Score1.47
7
Showing 10 of 16 rows

Other info

Follow for update