Skip to content
forked from NVlabs/DiffiT

Official Repository for DiffiT: Diffusion Vision Transformers for Image Generation

Notifications You must be signed in to change notification settings

ahatamiz/DiffiT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

DiffiT: Diffusion Vision Transformers for Image Generation

Ali Hatamizadeh, Jiaming Song, Guilin Liu, Jan Kautz, Arash Vahdat.

Diffusion models with their powerful expressivity and high sample quality have enabled many new applications and use-cases in various domains. For sample generation, these models rely on a denoising neural network that generates images by iterative denoising. Yet, the role of denoising network architecture is not well-studied with most efforts relying on convolutional residual U-Nets. In this paper, we study the effectiveness of vision transformers in diffusion-based generative learning. Specifically, we propose a new model, denoted as Diffusion Vision Transformers (DiffiT), which consists of a hybrid hierarchical architecture with a U-shaped encoder and decoder. We introduce a novel time-dependent self-attention module that allows attention layers to adapt their behavior at different stages of the denoising process in an efficient manner. We also introduce latent DiffiT which consists of transformer model with the proposed self-attention layers, for high-resolution image generation. Our results show that DiffiT is surprisingly effective in generating high-fidelity images. DiffiT achieves state-of-the-art (SOTA) benchmarks on a variety of class-conditional and unconditional synthesis tasks. In the latent space, DiffiT achieves a new SOTA FID score of 1.73 on ImageNet-256 dataset. The code and pretrained model will be publicly available.

teaser

Results

Performance on ImageNet-256

Model Dataset Resolution FID-50K Inception Score
DiffiT ImageNet 256x256 1.73 276.49

Performance on ImageNet-512

Model Dataset Resolution FID-50K Inception Score
DiffiT ImageNet 512x512 2.67 252.12

About

Official Repository for DiffiT: Diffusion Vision Transformers for Image Generation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published