Styleformer: Transformer based Generative Adversarial Networks with Style Vector

Jeeseung Park, Younggeun Kim
6/13/2021
68 citations
cs.CVeess.IV
transformer-attention

Official code: Jeeseung-Park/Styleformer (180 stars, Python, MIT, last commit 2022-04-28). 1 more implementation below.

Abstract

We propose Styleformer, which is a style-based generator for GAN architecture, but a convolution-free transformer-based generator. In our paper, we explain how a transformer can generate high-quality images, overcoming the disadvantage that convolution operations are difficult to capture global features in an image.

Show full abstract

Furthermore, we change the demodulation of StyleGAN2 and modify the existing transformer structure (e.g., residual connection, layer normalization) to create a strong style-based generator with a convolution-free structure. We also make Styleformer lighter by applying Linformer, enabling Styleformer to generate higher resolution images and result in improvements in terms of speed and memory. We experiment with the low-resolution image dataset such as CIFAR-10, as well as the high-resolution image dataset like LSUN-church. Styleformer records FID 2.82 and IS 9.94 on CIFAR-10, a benchmark dataset, which is comparable performance to the current state-of-the-art and outperforms all GAN-based generative models, including StyleGAN2-ADA with fewer parameters on the unconditional setting. We also both achieve new state-of-the-art with FID 15.17, IS 11.01, and FID 3.66, respectively on STL-10 and CelebA. We release our code at https://github.com/Jeeseung-Park/Styleformer.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
Jeeseung-Park/StyleformerOfficial180PythonMIT2022-04-28
younggeun-kim/StyleformerOfficial5PythonMIT2021-06-13
MIT

[CVPR 2022] Styleformer - Official Pytorch Implementation

18020Python, CudaJun 13, 20214 years agoMIT
MIT

Styleformer - Official Pytorch Implementation

51Python, CudaJun 13, 20215 years agoMIT

Similar Papers

Cite this paper

@article{park2021styleformer,
  title  = {Styleformer: Transformer based Generative Adversarial Networks with Style Vector},
  author = {Jeeseung Park and Younggeun Kim},
  year   = {2021},
  eprint = {2106.07023},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.07023}
}

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

Discussion