This release is a pre-release and may not be stable for production use.
MaskGIT: Masked Generative Image Transformer
Official Jax Implementation of the CVPR 2022 Paper
[Paper] [Project Page] [Demo Colab]
Summary
MaskGIT is a novel image synthesis paradigm using a bidirectional transformer decoder. During training, MaskGIT learns to predict randomly masked tokens by attending to tokens in all directions. At inference time, the model begins with generating all tokens of an image simultaneously, and then refines the image iteratively conditioned on the previous generation.
Running pretrained models
Class conditional Image Genration models:
| Dataset | Resolution | Model | Link | FID |
|---|---|---|---|---|
| ImageNet | 256 x 256 | Tokenizer | checkpoint | 2.28 (reconstruction) |
| ImageNet | 512 x 512 | Tokenizer | checkpoint | 1.97 (reconstruction) |
| ImageNet | 256 x 256 | MaskGIT Transformer | checkpoint | 6.06 (generation) |
| ImageNet | 512 x 512 | MaskGIT Transformer | checkpoint | 7.32 (generation) |
You can run these models for class-conditional image generation and editing in the demo Colab.
Training
[Coming Soon]
BibTeX
@InProceedings{chang2022maskgit,
title = {MaskGIT: Masked Generative Image Transformer},
author={Huiwen Chang and Han Zhang and Lu Jiang and Ce Liu and William T. Freeman},
booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2022}
}
Disclaimer
This is not an officially supported Google product.
Metadata
Release files for maskgit 0.0.1.dev0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| maskgit-0.0.1.dev0-py3-none-any.whl | Python 3 | none | any | Details for maskgit-0.0.1.dev0-py3-none-any.whl |
Release files / maskgit-0.0.1.dev0-py3-none-any.whl
| Download URL | maskgit-0.0.1.dev0-py3-none-any.whl |
|---|---|
| Size | 30.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2339a47edbd06b12a1b8477e27e14c270c80ba2187838890d205ce8e3b380f9e
|
|
BLAKE2b-256 checksum How to use checksums |
feaf7835247ad28cf0dfae940d1b9f08e893c2ff2da7854c36c035037e468b85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.13
|
Security for maskgit 0.0.1.dev0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.