Command Palette
Search for a command to run...
Chang Huiwen ; Zhang Han ; Jiang Lu ; Liu Ce ; Freeman William T.

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
Benchmarks
| Benchmark | Methodology | Metrics |
|---|---|---|
| image-generation-on-imagenet-256x256 | MaskGIT | FID: 6.18 |
| image-generation-on-imagenet-256x256 | MaskGIT (a=0.05) | FID: 4.02 |
| image-generation-on-imagenet-512x512 | MaskGIT (a=0.05) | FID: 4.46 Inception score: 342.0 |
| image-generation-on-imagenet-512x512 | MaskGIT | FID: 7.32 Inception score: 156.0 |
| image-outpainting-on-lhqc | MaskGIT | 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-imagenet | MaskGIT-VQGAN (16x16) | FID: 2.28 |
| text-to-image-generation-on-lhqc | MaskGIT | 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.