Pre-train a visual understanding model on your own unlabeled image collection
Fine-tune a provided ViT-Base or ViT-Large checkpoint on your own image classification dataset
Run the Colab notebook to visualize how the model fills in hidden patches of your own photos
| facebookresearch/mae | droidrun/mobilerun | baowenbo/dain | |
|---|---|---|---|
| Stars | 8,315 | 8,313 | 8,310 |
| Language | Python | Python | Python |
| Setup difficulty | hard | moderate | hard |
| Complexity | 4/5 | 3/5 | 5/5 |
| Audience | researcher | developer | researcher |
Figures from each repo's GitHub metadata at analysis time.
Requires an NVIDIA GPU with CUDA and large image datasets, pre-trained weights must be downloaded separately before fine-tuning.
This repository contains a PyTorch implementation of Masked Autoencoders (MAE), a technique for training image recognition models developed by researchers at Facebook. The core idea behind MAE is to teach a model to understand images by hiding random patches of an image and asking the model to reconstruct the missing parts. Through this self-supervised training process, the model learns rich visual features without needing labeled data. The training happens in two phases. First, the model is pre-trained on a large collection of unlabeled images using the masking approach. Then the pre-trained model is fine-tuned on a labeled dataset for a specific task, such as classifying what object is in a photo. The researchers found this approach produces models that generalize well: the same pre-trained weights perform strongly across a variety of image recognition benchmarks, including tests that involve sketches, corrupted images, and adversarial examples designed to fool classifiers. Pre-trained model weights are available for three model sizes called ViT-Base, ViT-Large, and ViT-Huge. These names refer to the Vision Transformer architecture, a type of neural network that processes images by dividing them into patches and treating those patches similarly to how language models process words. The largest model (ViT-Huge at 448 pixel input) achieved 87.8% accuracy on ImageNet, which was state of the art at the time of publication. The repository includes code for the visualization demo, fine-tuning on new datasets, and running the pre-training process from scratch. A Colab notebook lets anyone try the visualization without a local GPU. The project is released under the CC-BY-NC 4.0 license, which allows non-commercial use.
A PyTorch implementation of Masked Autoencoders (MAE) that trains image recognition models by hiding random image patches and learning to reconstruct them, without needing labeled data.
Mainly Python. The stack also includes Python, PyTorch, CUDA.
Free for non-commercial use only, you cannot use this in a commercial product without separate permission from Facebook.
Setup difficulty is rated hard, with roughly 1h+ to a first successful run.
Mainly researcher.
This repo across BitVibe Labs
Verify against the repo before relying on details.