Colorization Transformer
Manoj Kumar, Dirk Weissenborn, Nal Kalchbrenner
TL;DR
ColTran addresses the inherently stochastic problem of high-resolution image colorization by decomposing it into a coarse low-resolution autoregressive colorizer and two fast parallel upsampling networks. It introduces conditional transformer layers within an Axial Transformer framework to condition colorization on grayscale input, enabling global 2D context with $O(D\sqrt{D})$ complexity. The model achieves state-of-the-art FID on ImageNet (≈19.37) and strong human preferences, while maintaining fast sampling through semi-parallel generation and parallel upsampling. These results demonstrate the viability of fully attention-based colorization for high-resolution images and highlight the value of auxiliary predictions and conditioning components for improved fidelity and diversity.
Abstract
We present the Colorization Transformer, a novel approach for diverse high fidelity image colorization based on self-attention. Given a grayscale image, the colorization proceeds in three steps. We first use a conditional autoregressive transformer to produce a low resolution coarse coloring of the grayscale image. Our architecture adopts conditional transformer layers to effectively condition grayscale input. Two subsequent fully parallel networks upsample the coarse colored low resolution image into a finely colored high resolution image. Sampling from the Colorization Transformer produces diverse colorings whose fidelity outperforms the previous state-of-the-art on colorising ImageNet based on FID results and based on a human evaluation in a Mechanical Turk test. Remarkably, in more than 60% of cases human evaluators prefer the highest rated among three generated colorings over the ground truth. The code and pre-trained checkpoints for Colorization Transformer are publicly available at https://github.com/google-research/google-research/tree/master/coltran
