scispace - formally typeset
Open AccessPosted Content

TransGAN: Two Pure Transformers Can Make One Strong GAN, and That Can Scale Up

TLDR
TransGAN as discussed by the authors proposes a memory-friendly transformer-based generator that progressively increases feature resolution, and correspondingly a multi-scale discriminator to capture simultaneously semantic contexts and low-level textures.
Abstract
The recent explosive interest on transformers has suggested their potential to become powerful ``universal" models for computer vision tasks, such as classification, detection, and segmentation. While those attempts mainly study the discriminative models, we explore transformers on some more notoriously difficult vision tasks, e.g., generative adversarial networks (GANs). Our goal is to conduct the first pilot study in building a GAN completely free of convolutions, using only pure transformer-based architectures. Our vanilla GAN architecture, dubbed TransGAN, consists of a memory-friendly transformer-based generator that progressively increases feature resolution, and correspondingly a multi-scale discriminator to capture simultaneously semantic contexts and low-level textures. On top of them, we introduce the new module of grid self-attention for alleviating the memory bottleneck further, in order to scale up TransGAN to high-resolution generation. We also develop a unique training recipe including a series of techniques that can mitigate the training instability issues of TransGAN, such as data augmentation, modified normalization, and relative position encoding. Our best architecture achieves highly competitive performance compared to current state-of-the-art GANs using convolutional backbones. Specifically, TransGAN sets new state-of-the-art inception score of 10.43 and FID of 18.28 on STL-10, outperforming StyleGAN-V2. When it comes to higher-resolution (e.g. 256 x 256) generation tasks, such as on CelebA-HQ and LSUN-Church, TransGAN continues to produce diverse visual examples with high fidelity and impressive texture details. In addition, we dive deep into the transformer-based generation models to understand how their behaviors differ from convolutional ones, by visualizing training dynamics. The code is available at this https URL.

read more

Citations
More filters
Posted Content

Conformer: Local Features Coupling Global Representations for Visual Recognition

TL;DR: Conformer as mentioned in this paper adopts a concurrent structure so that local features and global representations are retained to the maximum extent, and outperforms DeiT-B by 2.3% on ImageNet.
Posted ContentDOI

STransFuse: Fusing Swin Transformer and Convolutional Neural Network for Remote Sensing Image Semantic Segmentation

TL;DR: STransFuse as discussed by the authors combines the benefits of Transformer with CNN to improve the segmentation quality of various remote sensing images by employing a staged model to extract coarse-grained and finegrained feature representations at various semantic scales, unlike earlier techniques based on Transformer model fusion.
Posted Content

A Survey on Vision Transformer

TL;DR: Transformer as mentioned in this paper is a type of deep neural network mainly based on the self-attention mechanism, which has been applied to the field of natural language processing, and has received more and more attention from the computer vision community.
Journal ArticleDOI

Transformers in computational visual media: A survey

TL;DR: In this article, a survey of visual transformer methods in low-level vision and generation is presented, focusing on visual transformer architectures for natural language processing and NLP tasks, and the main contributions of the latest works are described in the form of tables.
Posted Content

Aggregating Nested Transformers.

TL;DR: NesT as mentioned in this paper proposes to aggregate local transformers on non-overlapping image blocks and aggregates them in a hierarchical manner to enable cross-block non-local information communication.
References
More filters
Book ChapterDOI

End-to-End Object Detection with Transformers

TL;DR: DetR as mentioned in this paper proposes a set-based global loss that forces unique predictions via bipartite matching, and a transformer encoder-decoder architecture to directly output the final set of predictions in parallel.
Proceedings ArticleDOI

Analyzing and Improving the Image Quality of StyleGAN

TL;DR: In this paper, the authors propose to redesign the generator normalization, revisit progressive growing, and regularize the generator to encourage good conditioning in the mapping from latent codes to images.
Proceedings ArticleDOI

Revisiting Unreasonable Effectiveness of Data in Deep Learning Era

TL;DR: In this paper, the authors investigated how the performance of current vision tasks would change if this data was used for representation learning and found that the performance on vision tasks increases logarithmically based on volume of training data size.
Posted Content

Longformer: The Long-Document Transformer

TL;DR: Following prior work on long-sequence transformers, the Longformer is evaluated on character-level language modeling and achieves state-of-the-art results on text8 and enwik8 and pretrain Longformer and finetune it on a variety of downstream tasks.
Proceedings ArticleDOI

Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformers

TL;DR: Zhang et al. as discussed by the authors proposed a pure transformer to encode an image as a sequence of patches, which can be combined with a simple decoder to provide a powerful segmentation model.
Related Papers (5)