Abstract
One-Trimap Video Matting (OTVM) introduces a novel framework for high-quality video matting that requires only a single user-annotated frame to process an entire sequence. By jointly modeling trimap propagation and alpha prediction, OTVM addresses the "drifting" problem prevalent in decoupled methods where errors accumulate over time. The system achieves a 56% improvement in accuracy over previous state-of-the-art methods while maintaining superior temporal stability.
Introduction
Video matting—the process of precisely separating a foreground object from its background—is a cornerstone of modern visual effects. Traditionally, this requires "trimaps": hand-drawn maps that categorize pixels as definitely foreground, definitely background, or unknown. Creating these for every frame is incredibly labor-intensive.
Recent "decoupled" deep learning approaches tried to solve this by propagating a few user-provided trimaps across the rest of the video. However, these methods often suffer from "drifting." Because propagation doesn't "understand" the underlying alpha matte, errors accumulate, leading to flickering or complete failure in complex scenes. OTVM proposes a joint approach to mitigate these issues.
Methodology
The OTVM framework treats trimap propagation and alpha prediction as a joint, interactive task rather than two separate stages. The core insight is that the alpha matte, containing richer detail than a coarse trimap, can serve as a better guide for propagation.
Architecture
The system is composed of three primary modules:
- Trimap Propagation: Based on Space-Time Memory (STM) networks, this module "memorizes" past frames to predict the current trimap.
- Alpha Prediction: Uses the FBA matting network as a baseline to predict the initial alpha matte from the generated trimap.
- Refinement Module: This lightweight module produces a refined alpha and trimap, along with a 16-dimensional hidden latent feature. This feature carries complex, non-visual cues through the temporal memory to the next frame.
Training Strategy
To ensure stable convergence, the authors developed a four-stage progressive training strategy:
- Stage 1: Train modules separately.
- Stage 2: Train alpha/refinement modules using "noisy" propagated trimaps.
- Stage 3: Train the propagation module while leveraging losses from the alpha prediction.
- Stage 4: Full end-to-end fine-tuning on video datasets.
Evaluation and Results
The model was rigorously tested on benchmarks such as Adobe Image Matting (AIM), Deep Video Matting (DVM), and VideoMatting108.
OTVM sets a new performance bar in the "one-trimap" setting. On the VideoMatting108 benchmark, it achieved a 56.7% improvement in Mean Squared Error (MSE) compared to previous state-of-the-art decoupled methods. Furthermore, the model showed significantly lower temporal flickering (dtSSD), indicating superior stability. Qualitatively, OTVM maintains sharp details around hair and complex boundaries even in long sequences where other models' trimaps completely drift away from the target object.
Conclusion
OTVM significantly lowers the barrier for high-quality video editing by requiring minimal manual annotation. By informing trimap propagation with alpha matte data and utilizing hidden latent features, the system achieves unprecedented temporal consistency. While the framework still depends on the quality of the initial user-provided trimap, it represents a major advancement in making professional-grade video matting accessible for long-form content.
Summary updated