MatAnyone (Consistent Memory Propagation Video Matting)
A memory-based video matting model that follows a target given by a first-frame segmentation mask.
Segmentation · 3,721 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Segmentation
- Parameters
- 35.2M
- Operations
- 3,721
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- CVPR 2025
- Cited by
- 0 (as of 24 October 2026)
- Authors
- Peiqing Yang, Shangchen Zhou, Jixin Zhao and others
- Source
- GitHub: pq-yang/MatAnyone
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m18340
- Graph hash
- 89fc956f457d5ee2054b838461ea1a1ba46e0a4163f8d35ed4b907766fa5d98f
- Skeleton hash
- f521dc5dbc6b9ad0f96abf6ba20a4b2830bd5f6622f5c5cc6482b78a0a338351
- Architecture hash
- 7587e6a0adf02885a82f7c05333600a2c2bb3f6ef4ab32680cbc0232e30b1f05
- Diagram SHA-256
- 27e4854c74542ac9cda294f7204ccc8895d4edf9008040faa71649d8cd162a20
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
MatAnyone is a video matting model that needs only a segmentation mask of the target in the first frame. From there it generates the alpha matte for the assigned object frame by frame. The paper starts from the observation that auxiliary-free human video matting methods, which rely solely on input frames, often struggle with complex or ambiguous backgrounds.
The model has five main components: an encoder, a consistent memory propagation module, an object transformer, a decoder and a value encoder. The encoder is a ResNet-50. The object transformer is derived from Cutie and has three consecutive blocks. Predicted alpha mattes are stored in an alpha memory bank, which the paper says enhances stability in boundary regions. For each current frame, the model estimates the change in alpha value relative to the previous frame for every token. Regions with large change rely more on information queried from the memory bank, while regions with small change tend to retain the memory from the previous frame.
The authors also collected a training dataset, VM800, which they describe as twice as large as VideoMatte240K. Training uses segmentation data within the same head as matting, where earlier practice trained it on a separate prediction head.
Key idea. MatAnyone builds on a memory-based paradigm and adds a consistent memory propagation module with region-adaptive memory fusion, which adaptively integrates memory from the previous frame.
- matanyone
- video matting
- human video matting
- target-assigned video matting
- alpha matte
- consistent memory propagation
- memory-based matting
- stable video matting
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{yang2025matanyonestablevideomatting,
title={MatAnyone: Stable Video Matting with Consistent Memory Propagation},
author={Peiqing Yang and Shangchen Zhou and Jixin Zhao and Qingyi Tao and Chen Change Loy},
year={2025},
eprint={2501.14677},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2501.14677},
}