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
Proceedings ArticleDOI

Unified Dynamic Convolutional Network for Super-Resolution With Variational Degradations

TL;DR: In this paper, the authors proposed a unified network to accommodate the variations from inter-image (cross-image variations) and intraimage (spatial variations) by incorporating dynamic convolution which is a far more flexible alternative to handle different variations.
Proceedings ArticleDOI

Controllable Artistic Text Style Transfer via Shape-Matching GAN

TL;DR: In this paper, a bidirectional shape matching framework is proposed to establish an effective glyph-style mapping at various deformation levels without paired ground truth, and a scale-controllable module is presented to empower a single network to continuously characterize the multi-scale shape features of the style image and transfer these features to the target text.
Proceedings ArticleDOI

Your Local GAN: Designing Two Dimensional Local Attention Mechanisms for Generative Models

TL;DR: This work introduces a new local sparse attention layer that preserves two-dimensional geometry and locality in SAGAN and presents a novel way to invert Generative Adversarial Networks with attention.
Proceedings Article

Time Matters in Regularizing Deep Networks: Weight Decay and Data Augmentation Affect Early Learning Dynamics, Matter Little Near Convergence

TL;DR: This article showed that removing regularization after an initial transient period has little effect on generalization, even if the final loss landscape is the same as if there had been no regularization.
Posted Content

Class-Splitting Generative Adversarial Networks.

TL;DR: This work shows how to boost conditional GAN by augmenting available class labels by clustering in the representation space learned by the same GAN model, and reaches state-of-the-art Inception scores for CIFAR-10 and STL-10 datasets in both supervised and unsupervised setup.
Related Papers (5)