{"id":13561880,"url":"https://github.com/google-research/maskgit","last_synced_at":"2025-04-03T17:32:03.351Z","repository":{"id":40342515,"uuid":"478610318","full_name":"google-research/maskgit","owner":"google-research","description":"Official Jax Implementation of MaskGIT","archived":true,"fork":false,"pushed_at":"2022-11-18T17:05:15.000Z","size":9328,"stargazers_count":439,"open_issues_count":13,"forks_count":50,"subscribers_count":17,"default_branch":"main","last_synced_at":"2024-11-04T13:38:12.803Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/google-research.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-06T15:05:11.000Z","updated_at":"2024-10-30T03:40:55.000Z","dependencies_parsed_at":"2023-01-21T06:00:33.057Z","dependency_job_id":null,"html_url":"https://github.com/google-research/maskgit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-research%2Fmaskgit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-research%2Fmaskgit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-research%2Fmaskgit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-research%2Fmaskgit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google-research","download_url":"https://codeload.github.com/google-research/maskgit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247047127,"owners_count":20874774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T13:01:02.207Z","updated_at":"2025-04-03T17:31:58.337Z","avatar_url":"https://github.com/google-research.png","language":"Jupyter Notebook","readme":"# MaskGIT: Masked Generative Image Transformer\nOfficial Jax Implementation of the CVPR 2022 Paper\n\n[![PWC](https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/maskgit-masked-generative-image-transformer/image-generation-on-imagenet-512x512)](https://paperswithcode.com/sota/image-generation-on-imagenet-512x512?p=maskgit-masked-generative-image-transformer)\n[![PWC](https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/maskgit-masked-generative-image-transformer/image-generation-on-imagenet-256x256)](https://paperswithcode.com/sota/image-generation-on-imagenet-256x256?p=maskgit-masked-generative-image-transformer)\n\n[[Paper](https://arxiv.org/abs/2202.04200)] [[Project Page](https://masked-generative-image-transformer.github.io/)] [[Demo Colab](https://colab.research.google.com/github/google-research/maskgit/blob/main/MaskGIT_demo.ipynb)]\n\n![teaser](imgs/teaser.png)\n\n## Summary\nMaskGIT 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. \n\n## Running pretrained models\n\nClass conditional Image Genration models:\n\n| Dataset  | Resolution | Model | Link | FID |\n| ------------- | ------------- | ------------- | ------------- | ------------- |\n| ImageNet  | 256 x 256 | Tokenizer | [checkpoint](https://storage.googleapis.com/maskgit-public/checkpoints/tokenizer_imagenet256_checkpoint)| 2.28 (reconstruction) |\n| ImageNet  | 512 x 512 | Tokenizer | [checkpoint](https://storage.googleapis.com/maskgit-public/checkpoints/tokenizer_imagenet512_checkpoint)| 1.97 (reconstruction) |\n| ImageNet  | 256 x 256 | MaskGIT Transformer |[checkpoint](https://storage.googleapis.com/maskgit-public/checkpoints/maskgit_imagenet256_checkpoint)| 6.06 (generation) |\n| ImageNet  | 512 x 512 | MaskGIT Transformer | [checkpoint](https://storage.googleapis.com/maskgit-public/checkpoints/maskgit_imagenet512_checkpoint) | 7.32 (generation) |\n\nYou can run these models for class-conditional image **generation** and **editing** in the [demo Colab](https://colab.research.google.com/github/google-research/maskgit/blob/main/MaskGIT_demo.ipynb).\n\n![teaser](imgs/class-conditional-teaser-small.png)\n\n## Training\n[Coming Soon]\n\n\n## BibTeX\n\n```\n@InProceedings{chang2022maskgit,\n  title = {MaskGIT: Masked Generative Image Transformer},\n  author={Huiwen Chang and Han Zhang and Lu Jiang and Ce Liu and William T. Freeman},\n  booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},\n  month = {June},\n  year = {2022}\n}\n```\n\n## Disclaimer\n\nThis is not an officially supported Google product.\n","funding_links":[],"categories":["Jupyter Notebook","Image Generation","Fundamental MIM Methods"],"sub_categories":["Augoregressive or MLM Paradigm in Discrete Space","Image Generation"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle-research%2Fmaskgit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogle-research%2Fmaskgit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle-research%2Fmaskgit/lists"}