This is a Pytorch Lightning checkpoint of VQGAN, which learns a codebook of context-rich visual parts by leveraging both the use of convolutional methods and transformers. It was introduced in
Taming Transformers for High-Resolution Image Synthesis (
CVPR paper).
The model allows the encoding of images as a fixed-length sequence of tokens taken from the codebook.
We fine-tuned on CC3M and YFCC100M to improve the encoding quality of people and faces, which are not very well represented in ImageNet. We used a subset of 2,268,720 images from CC3M and YFCC100M for this purpose.
Finetuning was performed in PyTorch using
taming-transformers. The full training process and model preparation includes these steps:
The checkpoint can be loaded using Pytorch-Lightning.
This model was successfully used as part of the implementation of
DALL·E mini. Our
report contains more details on how to leverage it in an image encoding / generation pipeline.