← Open Source
facebookresearch

mae

PyTorch implementation of MAE https//arxiv.org/abs/2111.06377.

ModelsVision modelsPython
Open on GitHub
Momentum
+-1stars in 24 hours-0.0%
8.36k
Stars
1.34k
Forks
+0
This week
0
Contributors
Created 2021-12-06 · Updated 2026-10-15 · #18433 today

facebookresearch/mae is ranked 18,433 with 8,361 stars.

Same-category comparison

facebookresearch/mae is ranked 18,433 among these 8 peers; LianjiaTech/BELLE is ranked 18,434.

Same-category comparison
NameRankMetrics
facebookresearch/maskrcnn-benchmark18,412
Language:
Python
Stars:
9,359
Forks:
2,450
Description:
Fast, modular reference implementation of Instance Segmentation and Object Detection algorithms in PyTorch.
facebookresearch/ImageBind18,418
Language:
Python
Stars:
9,075
Forks:
839
Description:
ImageBind One Embedding Space to Bind Them All.
facebookresearch/DiT18,423
Language:
Python
Stars:
8,675
Forks:
817
Description:
Official PyTorch Implementation of "Scalable Diffusion Models with Transformers".
MVIG-SJTU/AlphaPose18,424
Language:
Python
Stars:
8,609
Forks:
2,019
Description:
Real-Time and Accurate Full-Body Multi-Person Pose Estimation&Tracking System.
LianjiaTech/BELLE18,434
Language:
HTML
Stars:
8,265
Forks:
755
openai/jukebox18,439
Language:
Python
Stars:
8,029
Forks:
1,439
Description:
Code for the paper "Jukebox: A Generative Model for Music".
jaywalnut310/vits18,440
Language:
Python
Stars:
7,894
Forks:
1,378
Description:
VITS: Conditional Variational Autoencoder with Adversarial Learning for End-to-End Text-to-Speech.
01-ai/Yi18,442
Language:
Jupyter Notebook
Stars:
7,834
Forks:
500
Description:
A series of large language models trained from scratch by developers @01-ai.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryModels
SubcategoryVision models
Stars8,361
Forks1,345
Contributors0
Created date2021-12-06
Updated date2026-10-15
Stars in 1 day-1
Stars in 7 days0
Rank18,433
Previous rank7,292
Rank change-11,141
7-day stars rank11,666
Previous 7-day stars rank9,033
7-day stars rank change-2,633
Total stars rank1,711
Previous total stars rank1,710
Total stars rank change-1
CountryUSA
README summary

Masked Autoencoders: A PyTorch Implementation This is a PyTorch/GPU re-implementation of the paper Masked Autoencoders Are Scalable Vision Learners: The original implementation was in TensorFlow+TPU. This re-implementation is in PyTorch+GPU. This repo is a modification on the DeiT repo. Installation and preparation follow that repo. This repo is based on , for which a fix is needed to work with PyTorch 1. Catalog [x] Visualization demo [x] Pre-trained checkpoints + fine-tuning code [x] Pre-training

code Visualization demo Run our interactive visualization demo using Colab notebook (no GPU needed): Fine-tuning with pre-trained checkpoints The following table provides the pre-trained checkpoints used in the paper, converted from TF/TPU to PT/GPU: ViT-Base ViT-Large ViT-Huge pre-trained checkpoint download download download md5 8cad7c b8b06e 9bdbb0 The fine-tuning instruction is in FINETUNE. By fine-tuning these pre-trained models, we rank #1 in these classification tasks (detailed in the paper

): ViT-B ViT-L ViT-H ViT-H 448 prev best ImageNet-1K (no external data) 83. 1 following are evaluation of the same model weights (fine-tuned in original ImageNet-1K): ImageNet-Corruption (error rate) 51. 0 following are transfer learning by fine-tuning the pre-trained MAE on the target dataset: iNaturalists 2017 70. 0 Pre-training The pre-training instruction is in PRETRAIN. License This project is under the CC-BY-NC 4.

Frequently asked questions

How many stars and forks are recorded?

facebookresearch/mae has 8,361 stars and 1,345 forks.

What is the repository rank?

facebookresearch/mae is ranked 18,433.

What language and category are recorded?

facebookresearch/mae has 8,361 stars, uses Python and belongs to Models.

Which repository is closest in rank?

facebookresearch/mae is compared with LianjiaTech/BELLE, ranked 18,434 with 8,265 stars.

README

Masked Autoencoders: A PyTorch Implementation

This is a PyTorch/GPU re-implementation of the paper Masked Autoencoders Are Scalable Vision Learners:

@Article{MaskedAutoencoders2021,
  author  = {Kaiming He and Xinlei Chen and Saining Xie and Yanghao Li and Piotr Doll{\'a}r and Ross Girshick},
  journal = {arXiv:2111.06377},
  title   = {Masked Autoencoders Are Scalable Vision Learners},
  year    = {2021},
}
  • The original implementation was in TensorFlow+TPU. This re-implementation is in PyTorch+GPU.

  • This repo is a modification on the DeiT repo. Installation and preparation follow that repo.

  • This repo is based on timm==0.3.2, for which a fix is needed to work with PyTorch 1.8.1+.

Catalog

  • [x] Visualization demo
  • [x] Pre-trained checkpoints + fine-tuning code
  • [x] Pre-training code

Visualization demo

Run our interactive visualization demo using Colab notebook (no GPU needed):

Fine-tuning with pre-trained checkpoints

The following table provides the pre-trained checkpoints used in the paper, converted from TF/TPU to PT/GPU:

ViT-Base

ViT-Large

ViT-Huge

pre-trained checkpoint

download

download

download

md5

8cad7c

b8b06e

9bdbb0

The fine-tuning instruction is in FINETUNE.md.

By fine-tuning these pre-trained models, we rank #1 in these classification tasks (detailed in the paper):

ViT-B

ViT-L

ViT-H

ViT-H448

prev best

ImageNet-1K (no external data)

83.6

85.9

86.9

87.8

87.1

following are evaluation of the same model weights (fine-tuned in original ImageNet-1K):

ImageNet-Corruption (error rate)

51.7

41.8

33.8

36.8

42.5

ImageNet-Adversarial

35.9

57.1

68.2

76.7

35.8

ImageNet-Rendition

48.3

59.9

64.4

66.5

48.7

ImageNet-Sketch

34.5

45.3

49.6

50.9

36.0

following are transfer learning by fine-tuning the pre-trained MAE on the target dataset:

iNaturalists 2017

70.5

75.7

79.3

83.4

75.4

iNaturalists 2018

75.4

80.1

83.0

86.8

81.2

iNaturalists 2019

80.5

83.4

85.7

88.3

84.1

Places205

63.9

65.8

65.9

66.8

66.0

Places365

57.9

59.4

59.8

60.3

58.0

Pre-training

The pre-training instruction is in PRETRAIN.md.

License

This project is under the CC-BY-NC 4.0 license. See LICENSE for details.

Nearby in the ranking
Similar items