StylePrompter: All Styles Need Is Attention

Chenyi Zhuang, Pan Gao, Aljosa Smolic
7/30/2023
cs.CV

No official code found. Best implementation: I2-Multimedia-Lab/StylePrompter (5 stars, last commit 2023-10-14).

Abstract

GAN inversion aims at inverting given images into corresponding latent codes for Generative Adversarial Networks (GANs), especially StyleGAN where exists a disentangled latent space that allows attribute-based image manipulation at latent level. As most inversion methods build upon Convolutional Neural Networks (CNNs), we transfer a hierarchical vision Transformer backbone innovatively to predict $\mathcal{W^+}$ latent codes at token level. We further apply a Style-driven Multi-scale Adaptive Refinement Transformer (SMART) in $\mathcal{F}$ space to refine the intermediate style features of the generator. By treating style features as queries to retrieve lost identity information from the encoder's feature maps, SMART can not only produce high-quality inverted images but also surprisingly adapt to editing tasks. We then prove that StylePrompter lies in a more disentangled $\mathcal{W^+}$ and show the controllability of SMART. Finally, quantitative and qualitative experiments demonstrate that StylePrompter can achieve desirable performance in balancing reconstruction quality and editability, and is "smart" enough to fit into most edits, outperforming other $\mathcal{F}$-involved inversion methods.

View on arXivView PDF

Code Implementations(1)

Official Implementation of "StylePrompter: All Styles Need Is Attention" [ACM MM 2023]

51C++, CudaSep 4, 20233 years ago
gan-inversionimage-manipulationstyle-gan

Similar Papers

Cite this paper

@article{zhuang2023styleprompter,
  title  = {StylePrompter: All Styles Need Is Attention},
  author = {Chenyi Zhuang and Pan Gao and Aljosa Smolic},
  year   = {2023},
  eprint = {2307.16151},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.16151v1}
}

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.16151.svg)](https://codeofpaper.com/paper/2307.16151)

Discussion