Discovering meaningful directions in the latent space of GANs to manipulate semantic attributes typically requires large amounts of labeled data. Recent work aims to overcome this limitation by leveraging the power of Contrastive Language-Image Pre-training (CLIP), a joint text-image model. While promising, these methods require several hours of preprocessing or training to achieve the desired manipulations. In this paper, we present StyleMC, a fast and efficient method for text-driven image generation and manipulation. StyleMC uses a CLIP-based loss and an identity loss to manipulate images via a single text prompt without significantly affecting other attributes. Unlike prior work, StyleMC requires only a few seconds of training per text prompt to find stable global directions, does not require prompt engineering and can be used with any pre-trained StyleGAN2 model. We demonstrate the effectiveness of our method and compare it to state-of-the-art methods.
The architecture of StyleMC (using the text prompt "Mohawk" as an example). The latent code s and ∆s+s are passed through the generator. The global manipulation direction ∆s corresponding to the text promptis optimized by minimizing CLIP loss and identity loss.
Comparison of our method with TediGAN, StyleCLIP-GD and StyleCLIP-LM methods.
Comparison with GANspace, SeFa and LatentCLR methods. The leftmost image represents the input image, while images denoted with ↑ and ↓ represent edits in the positive or negative direction.
@article{Kocasari2022StyleMCMB,
title={StyleMC: Multi-Channel Based Fast Text-Guided Image Generation and Manipulation},
author={Umut Kocasarı and Alara Dirik and Mert Tiftikci and Pinar Yanardag},
journal={2022 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV)},
year={2022},
pages={3441-3450}
}
This publication has been produced benefiting from the 2232 International Fellowship for Outstanding Researchers Program of TUBITAK (Project No: 118c321). We also acknowledge the support of NVIDIA Corporation through the donation of the TITAN RTX GPU and GCP research credits from Google.