HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

MaskGIT: Masked Generative Image Transformer

Chang Huiwen ; Zhang Han ; Jiang Lu ; Liu Ce ; Freeman William T.

MaskGIT: Masked Generative Image Transformer

Abstract

Generative transformers have experienced rapid popularity growth in thecomputer vision community in synthesizing high-fidelity and high-resolutionimages. The best generative transformer models so far, however, still treat animage naively as a sequence of tokens, and decode an image sequentiallyfollowing the raster scan ordering (i.e. line-by-line). We find this strategyneither optimal nor efficient. This paper proposes a novel image synthesisparadigm using a bidirectional transformer decoder, which we term MaskGIT.During training, MaskGIT learns to predict randomly masked tokens by attendingto tokens in all directions. At inference time, the model begins withgenerating all tokens of an image simultaneously, and then refines the imageiteratively conditioned on the previous generation. Our experiments demonstratethat MaskGIT significantly outperforms the state-of-the-art transformer modelon the ImageNet dataset, and accelerates autoregressive decoding by up to 64x.Besides, we illustrate that MaskGIT can be easily extended to various imageediting tasks, such as inpainting, extrapolation, and image manipulation.

Code Repositories

HKUNLP/Dream
pytorch
Mentioned in GitHub
valeoai/maskgit-pytorch
pytorch
Mentioned in GitHub
LAION-AI/phenaki
pytorch
Mentioned in GitHub
lucidrains/soundstorm-pytorch
pytorch
Mentioned in GitHub
alibaba/graph-gpt
pytorch
Mentioned in GitHub
lucidrains/phenaki-pytorch
pytorch
Mentioned in GitHub
myscience/open-genie
pytorch
Mentioned in GitHub
dome272/MaskGIT-pytorch
pytorch
Mentioned in GitHub
google-research/maskgit
Official
jax
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
image-generation-on-imagenet-256x256MaskGIT
FID: 6.18
image-generation-on-imagenet-256x256MaskGIT (a=0.05)
FID: 4.02
image-generation-on-imagenet-512x512MaskGIT (a=0.05)
FID: 4.46
Inception score: 342.0
image-generation-on-imagenet-512x512MaskGIT
FID: 7.32
Inception score: 156.0
image-outpainting-on-lhqcMaskGIT
Block-FID (Right Extend): 14.68
Block-FID (Down Extend): 25.57
Block-FID (Left Extend): 14.81
Block-FID (Up Extend): 25.38
image-reconstruction-on-imagenetMaskGIT-VQGAN (16x16)
FID: 2.28
text-to-image-generation-on-lhqcMaskGIT
Block-FID: 24.33

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
MaskGIT: Masked Generative Image Transformer | Papers | HyperAI