Introduction
Video matting is a critical task in professional film and video production, requiring the extraction of high-precision alpha mattes for foreground objects. However, existing methods often face a "semantic vs. detail" trade-off: they either struggle with temporal stability in complex scenes (auxiliary-free methods) or require labor-intensive manual input for every frame (mask-guided methods).
MatAnyone introduces a "target-assigned" video matting framework that bridges this gap. By adapting the temporal stability of semi-supervised Video Object Segmentation (VOS) to the high-precision requirements of alpha matting, MatAnyone produces flicker-free, highly detailed results even in challenging scenarios involving multiple interacting subjects.
Methodology
MatAnyone adopts a memory-based paradigm. Unlike traditional recurrent models that only look at the immediate previous frame, MatAnyone utilizes a memory bank to propagate identity information from a single user-provided mask on the first frame throughout the entire video sequence.
Consistent Memory Propagation (CMP)
The core innovation is the Consistent Memory Propagation module, which employs region-adaptive memory fusion. The model predicts a "change probability" ($U_t$) for each pixel to handle different parts of the object optimally:
- Core Regions: Areas with low change (the solid interior of an object) retain memory from previous frames to ensure semantic and temporal stability.
- Boundary Regions: Areas with high change (like moving hair or thin limbs) rely more on current frame features to capture fast-moving, fine-grained details.
Training with Weak Supervision
To overcome the scarcity of high-quality video matting datasets, the authors utilize a Scaled Disentangled Detail Compensation (DDC) Loss. This allows the model to be trained on large-scale binary segmentation datasets (like COCO and YouTubeVIS). The Scaled DDC loss prevents the "stair-stepped" artifacts typical of segmentation models by accounting for the color distribution between foreground and background, enabling the model to learn fine boundary details even from 0/1 masks.
Experimental Results
The model was evaluated on YoutubeMatte, a new benchmark of 32 high-resolution (1080p) foregrounds matted onto complex backgrounds. MatAnyone significantly outperforms state-of-the-art (SOTA) methods such as Robust Video Matting (RVM) and MaGGIe.
- Quantitative Performance: MatAnyone achieved a Mean Absolute Difference (MAD) of 1.99, compared to 2.37 for MaGGIe and 4.37 for RVM.
- Temporal Stability: In terms of temporal flicker (measured by dtSSD), MatAnyone scored 1.65, outperforming MaGGIe (1.77) and RVM (2.28).
Qualitatively, MatAnyone excels at tracking specific individuals in crowded scenes. While auxiliary-free models like RVM often "leak" other people into the matte or lose track of the target during occlusions, MatAnyone’s memory-based identity propagation maintains a clean, stable matte of the assigned target.
Conclusion
MatAnyone represents a significant step forward in making professional-grade video matting more accessible. By treating matting as a high-resolution VOS task and leveraging weak supervision from segmentation data, it achieves superior temporal coherence and detail. While it currently depends on an accurate initial mask and carries higher computational overhead than simple recurrent models, its ability to handle complex multi-object interactions sets a new standard for the field. Future work will focus on extending the framework to general objects and optimizing memory efficiency for real-time applications.
Summary updated