# Repository Briefing: open-mmlab/mmaction2
> Source: https://repoforai.com/repo/open-mmlab/mmaction2 (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/open-mmlab/mmaction2
- **Official Docs / Website**: https://mmaction2.readthedocs.io
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: Python
- **License**: Apache-2.0
- **Engineering Health**: B (60/100 · Maintenance 6/35 · Adoption 23/25 · Releases 11/20 · License 20/20)
- **Latest Release**: v1.2.0 (2023-10-12) — https://github.com/open-mmlab/mmaction2/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Docker, CLI
- **Momentum**: 5,213 ★ total (+1 24h / +6 7d) · 1,353 forks
- **Topics**: `action-recognition`, `ava`, `benchmark`, `deep-learning`, `i3d`, `non-local`, `openmmlab`, `posec3d`, `pytorch`, `slowfast`, `spatial-temporal-action-detection`, `temporal-action-localization`
- **When to Use**: Best for: Research and applied ML teams comparing video models, fine-tuning checkpoints on their own data, or sharing training and evaluation infrastructure across video tasks. Skip if: You only need to run one fixed checkpoint with minimal dependencies, or you need a turnkey video inference service rather than a framework.

## Overview
```text
### Architecture & Core Mechanics
MMAction2 is a configuration-driven Python framework for video understanding. PyTorch supplies model execution, MMEngine supplies training infrastructure, and MMCV provides computer-vision utilities. The repository separates reusable code in `mmaction/` from experiment recipes in `configs/`, with `tools/` and `demo/` for running workflows and `projects/` for applications built on the framework.

A typical integration starts with a task-specific configuration that pairs the data pipeline with the model and evaluation setup. Use the matching checkpoint for inference or adapt the recipe for training. The extension point is the set of configurable components, not a service API. MMDetection and MMPose are optional integrations for workflows that need detection or pose estimation; they need not be part of a basic recognition environment.

### Key Capabilities & Differentiators
The task families differ in what they predict. Clip recognition assigns action labels; temporal localization identifies when an action occurs; spatio-temporal detection also associates actions with locations in the frame. Skeleton-based recognition uses pose data, while video retrieval matches text and video. Representative baselines include SlowFast, VideoSwin, and VideoMAE for recognition; BMN and TCANet for localization; SlowFast with Fast R-CNN for detection; PoseC3D and ST-GCN for skeleton recognition; and CLIP4Clip for retrieval.

Kinetics-400/600/700, UCF101, and Something-Something V1/V2 are listed recognition datasets, and AVA-2.1 is used in the detection examples. The model zoo offers results and checkpoints as starting points for evaluation, not as guarantees on new footage. The multimodal scope is model-specific: ActionCLIP is a recognition option, while CLIP4Clip addresses retrieval. Select the task and its evaluation protocol before comparing models.

### Trade-offs & Limitations
Compared with maintaining a standalone PyTorch implementation, MMAction2 is more useful when a team needs to compare several model families or reuse training and evaluation workflows across tasks. Its abstractions are harder to justify for a single frozen model and one inference path, where a smaller dependency footprint is easier to deploy. The framework supplies training and inference building blocks; do not budget on it replacing a managed serving or labeling product.

Measure the entire video pipeline rather than just model execution. Decoding and sampling contribute to latency, and detection or pose estimation can add work before action prediction. GPU memory and throughput depend on the selected model, clip length, resolution, batch size, and concurrency. Apache-2.0 covers the project code; check checkpoint, dataset, and third-party terms separately before commercial deployment.

### Hardware & Deployment Guide
Run a pretrained demo or the existing-model inference workflow locally before integrating custom data. The installation example uses a Python 3.8 Conda environment, PyTorch and torchvision, OpenMIM to install MMEngine and MMCV, and an editable MMAction2 install. Python 3.8 is an example, not a complete support matrix. For NVIDIA GPU deployment, validate and pin the PyTorch, CUDA, and MMCV combination before adding optional detection or pose packages.

The tree includes `docker/`, but its presence does not establish a turnkey serving image or API. For offline runs, provision the runtime dependencies, configurations, checkpoints, and input data ahead of time. Version 1.0.0 introduced the OpenMMLab 2.0 framework structure; 1.1.0 added text-based recognition and retrieval models; and 1.2.0 added ActionCLIP training, VindLU, MSVD support, and MobileOne TSN/TSM. Treat migration from 0.x as a configuration and compatibility change, not just a package upgrade.
```

## Key Capabilities
```text
- Configuration: `configs/` defines experiment recipes, while `mmaction/` holds reusable components; model and dataset indexes sit at the repository root.
- Recognition baselines: TSN, SlowFast, VideoSwin, and VideoMAE span segment-based, 3D convolutional, and transformer approaches.
- Localization and detection: BSN, BMN, and TCANet cover temporal localization; SlowFast with Fast R-CNN is a separate spatio-temporal detection baseline.
- Skeleton inputs: ST-GCN and PoseC3D offer distinct recognition baselines; MMPose is an optional dependency for workflows that need pose estimation.
- Video–text workflows: CLIP4Clip covers retrieval; v1.2.0 adds VindLU, ActionCLIP training, and support for the MSVD retrieval dataset.
- Lightweight recognition: v1.2.0 adds MobileOne variants of TSN and TSM, giving teams alternatives to profile on their target hardware.
```

## Quick Start / Clone
```bash
conda create --name openmmlab python=3.8 -y
conda activate openmmlab
conda install pytorch torchvision -c pytorch  # This command will automatically install the latest version PyTorch and cudatoolkit, please check whether they match your environment.
pip install -U openmim
mim install mmengine
mim install mmcv
mim install mmdet  # optional
mim install mmpose  # optional
git clone https://github.com/open-mmlab/mmaction2.git
cd mmaction2
pip install -v -e .
```
