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 Article

Improving Generative Adversarial Networks with Denoising Feature Matching

TL;DR: An augmented training procedure for generative adversarial networks designed to address shortcomings of the original by directing the generator towards probable configurations of abstract discriminator features is proposed.
Book ChapterDOI

Learning Joint Spatial-Temporal Transformations for Video Inpainting.

TL;DR: Wang et al. as mentioned in this paper proposed a joint Spatial-Temporal Transformer Network (STTN) for video inpainting, which simultaneously fill missing regions in all input frames by self-attention and optimize STTN by a spatial-temporal adversarial loss.
Proceedings Article

A Large-Scale Study on Regularization and Normalization in GANs

TL;DR: This work takes a sober view of the current state of GANs from a practical perspective, discusses and evaluates common pitfalls and reproducibility issues, and open-source the code on Github and provide pre-trained models on TensorFlow Hub.
Posted Content

Consistency Regularization for Generative Adversarial Networks.

TL;DR: This work proposes a simple, effective training stabilizer based on the notion of consistency regularization, which improves state-of-the-art FID scores for conditional generation and achieves the best F ID scores for unconditional image generation compared to other regularization methods on CIFAR-10 and CelebA.
Proceedings ArticleDOI

A U-Net Based Discriminator for Generative Adversarial Networks

TL;DR: In this paper, an alternative U-Net based discriminator architecture is proposed to provide detailed per-pixel feedback to the generator while maintaining the global coherence of synthesized images by providing the global image feedback as well.
Related Papers (5)