Help preserve open and free AI for humanity's future

← All models

MCG-NJU_videomae-base

MCG-NJU · View on Hugging Face ↗

VideoMAE base — self-supervised video understanding backbone for action recognition and video features.

✓ verified · rehash-vs-hf-metadata at 2026-08-24T12:16:01Z

cc-by-nc-4.0non-commercial use only718.9 MB (753,802,825 bytes)transformerspytorchsafetensorsvideomaepretrainingvisionvideo-classificationendpoints_compatiblepaper: 2203.12602paper: 2111.06377

Get this model

Download MCG-NJU_videomae-base.torrent

Recommended — the .torrent carries the webseed url-list, so your client can fall back to plain HTTPS if the swarm is thin. See/verify for the full download + verification walkthrough.

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


license: "cc-by-nc-4.0" tags:

  • vision
  • video-classification

VideoMAE (base-sized model, pre-trained only)

VideoMAE model pre-trained on Kinetics-400 for 1600 epochs in a self-supervised way. It was introduced in the paper VideoMAE: Masked Autoencoders are Data-Efficient Learners for Self-Supervised Video Pre-Training by Tong et al. and first released in this repository.

Disclaimer: The team releasing VideoMAE did not write a model card for this model so this model card has been written by the Hugging Face team.

Model description

VideoMAE is an extension of Masked Autoencoders (MAE) to video. The architecture of the model is very similar to that of a standard Vision Transformer (ViT), with a decoder on top for predicting pixel values for masked patches.

Videos are presented to the model as a sequence of fixed-size patches (resolution 16x16), which are linearly embedded. One also adds a [CLS] token to the beginning of a sequence to use it for classification tasks. One also adds fixed sinus/cosinus position embeddings before feeding the sequence to the layers of the Transformer encoder.

By pre-training the model, it learns an inner representation of videos that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled videos for instance, you can train a standard classifier by placing a linear layer on top of the pre-trained encoder. One typically places a linear layer on top of the [CLS] token, as the last hidden state of this token can be seen as a representation of an entire video.

Intended uses & limitations

You can use the raw model for predicting pixel values for masked patches of a video, but it's mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you.

How to use

Here is how to use this model to predict pixel values for randomly masked patches:

from transformers import VideoMAEImageProcessor, VideoMAEForPreTraining
import numpy as np
import torch

num_frames = 16
video = list(np.random.randn(16, 3, 224, 224))

processor = VideoMAEImageProcessor.from_pretrained("MCG-NJU/videomae-base")
model = VideoMAEForPreTraining.from_pretrained("MCG-NJU/videomae-base")

pixel_values = processor(video, return_tensors="pt").pixel_values

num_patches_per_frame = (model.config.image_size // model.config.patch_size) ** 2
seq_length = (num_frames // model.config.tubelet_size) * num_patches_per_frame
bool_masked_pos = torch.randint(0, 2, (1, seq_length)).bool()

outputs = model(pixel_values, bool_masked_pos=bool_masked_pos)
loss = outputs.loss

For more code examples, we refer to the documentation.

Training data

(to do, feel free to open a PR)

Training procedure

Preprocessing

(to do, feel free to open a PR)

Pretraining

(to do, feel free to open a PR)

Evaluation results

(to do, feel free to open a PR)

BibTeX entry and citation info

misc{https://doi.org/10.48550/arxiv.2203.12602,
  doi = {10.48550/ARXIV.2203.12602},
  url = {https://arxiv.org/abs/2203.12602},
  author = {Tong, Zhan and Song, Yibing and Wang, Jue and Wang, Limin},
  keywords = {Computer Vision and Pattern Recognition (cs.CV), FOS: Computer and information sciences, FOS: Computer and information sciences},
  title = {VideoMAE: Masked Autoencoders are Data-Efficient Learners for Self-Supervised Video Pre-Training},
  publisher = {arXiv},
  year = {2022},
  copyright = {Creative Commons Attribution 4.0 International}
}

Magnet link (secondary — no webseeds)

Opens the swarm directly, but carries no webseed url-list. Prefer the.torrent download above — HTTP fallback seeds ride inside it.

magnet:?xt=urn:btih:30a5cd629f6cd6425f07d789b6db76163401da52&dn=MCG-NJU_videomae-base

Open magnet in torrent client · infohash 30a5cd629f6cd6425f07d789b6db76163401da52

Files & hashes

PathSizeMethodHash
README.md3.7 KB (3,768 B)sha1-git-blob24f28925f975dba30c892347f979e3fbf53e4a70
config.json725 B (725 B)sha1-git-blob941d08806fe1630cc69b5965369c4b9f7e63639e
model.safetensors359.4 MB (376,873,760 B)sha256-lfsbc053ca2840a038b1068269a4eec06ca569689e9a1ed9376a5b2b8a111be5290
preprocessor_config.json271 B (271 B)sha1-git-blob631bd2be5ad5363a0a2d72313d1a091b04981889
pytorch_model.bin359.5 MB (376,924,301 B)sha256-lfs2e0c3f4bc73c6d287b96c30975b43d60c9fc004c548150f252278f1becd89a7d

Provenance

Upstream repositoryMCG-NJU/videomae-base
Revision (pinned)dc740ceda42fce44faed2ea03c6d447db72f6af9
Fetched at2026-08-24T12:15:40Z
License at fetchcc-by-nc-4.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

Webseeds