Abstract
Conventional video matting outputs one alpha matte for all instances appearing in a video frame so that individual instances are not distinguished. While video instance segmentation provides time-consistent instance masks, results are unsatisfactory for matting applications, especially due to applied binarization. To remedy this deficiency, we propose Video Instance Matting (VIM), that is, estimating alpha mattes of each instance at each frame of a video sequence. To tackle this challenging problem, we present MSG-VIM, a Mask Sequence Guided Video Instance Matting neural network, as a novel baseline model for VIM. MSG-VIM leverages a mixture of mask augmentations to make predictions robust to inaccurate and inconsistent mask guidance. It incorporates temporal mask and temporal feature guidance to improve the temporal consistency of alpha matte predictions. Furthermore, we build a new benchmark for VIM, called VIM50, which comprises 50 video clips with multiple human instances as foreground objects. To evaluate performances on the VIM task, we introduce a suitable metric called Video Instance-aware Matting Quality (VIMQ). Our proposed model MSG-VIM sets a strong baseline on the VIM50 benchmark and outperforms existing methods by a large margin.
Introduction: The "Missing Middle" in Video Editing
In professional video editing and visual effects, "matting" is the essential process of separating a foreground object from its background by estimating an alpha matte—a grayscale mask representing pixel-level transparency. However, current computer vision techniques suffer from a significant gap between two dominant approaches.
Conventional Video Matting models produce a single alpha matte for the entire foreground. If a scene contains multiple people, they are lumped into one matte, preventing editors from manipulating individual subjects. Conversely, Video Instance Segmentation (VIS) models can track individual objects but produce "hard" binary masks. These masks lack the fine detail required for hair, fur, or motion blur, making them unsuitable for high-quality compositing.
To bridge this gap, we introduce Video Instance Matting (VIM). This new task requires both tracking individual objects and estimating high-quality alpha mattes for each instance simultaneously.
MSG-VIM: A Mask-Guided Baseline
To address the VIM task, we propose MSG-VIM (Mask Sequence Guided Video Instance Matting). Our approach uses a two-stage pipeline: first, a pre-existing VIS method generates rough instance masks; then, MSG-VIM refines these into high-quality alpha mattes.
Key Technical Innovations
- Mask-Guided Architecture: The model processes video frames alongside "target" masks (the object of interest) and "reference" masks (other objects). This explicit guidance helps the model focus on a specific instance while preventing "bleeding" from nearby objects.
- Mixture of Mask Augmentations (MMA): Since initial VIS masks are often noisy, we train the model using aggressive augmentations like Mask Erase, Mask Paste, and Mask Merge. This ensures the network remains robust even when provided with imperfect guidance during inference.
- Temporal Consistency: To prevent flickering, we employ Temporal Mask Guidance (TMG) and Temporal Feature Guidance (TFG). TFG uses a lightweight convolutional recurrent network at the decoder level to pass information between consecutive frames, maintaining stability in fine details like hair strands.
The VIM50 Benchmark and VIMQ Metric
Evaluating VIM requires specialized data and metrics. We established VIM50, a benchmark consisting of 50 high-resolution video clips featuring multiple human instances in various "crowded" scenarios.
To measure performance, we introduced Video Instance-aware Matting Quality (VIMQ). This metric mathematically integrates recognition accuracy, tracking consistency, and matting precision into a single, comprehensive score.
Key Results and Insights
MSG-VIM sets a powerful new baseline for the field. On the VIM50 benchmark, it achieved a VIMQ score of 70.74, vastly outperforming adapted versions of standard video matting models like RVM (5.79) and MODNet (4.01).
Our experiments yielded several critical insights:
- Robustness to Noise: MSG-VIM is remarkably resilient. In perturbation tests, even with 25% mask corruption, performance remained high, whereas models trained without our augmentation strategy failed.
- The Power of Reference Masks: Including masks of neighboring objects significantly reduces false positives by explicitly telling the model which pixels to ignore.
- Superior Generalization: Interestingly, MSG-VIM outperforms specialized global video matting models when its individual instance mattes are merged, proving that instance-level focus improves overall matting quality.
Conclusion and Future Directions
While MSG-VIM represents a significant step forward, challenges remain. The current model is human-centric and relies on a two-stage process. Future work will focus on extending VIM to general object categories and developing end-to-end architectures that perform detection and matting simultaneously to reduce computational overhead.
For more details, visit the project page at https://github.com/SHI-Labs/VIM.
Summary updated