[Paper Review] MODNet-V: Improving Portrait Video Matting via Background Restoration
This paper proposes MODNet-V, a lightweight video matting model that improves portrait matting by dynamically restoring the background from previous video frames using a novel Background Restoration Module (BRM). By leveraging self-supervised background priors instead of user-provided trimaps or background images, MODNet-V achieves superior performance with only 1/3 the parameters of MODNet, while enabling end-to-end training on a single GPU and supporting high-resolution inference via a Patch Refinement Module (PRM).
To address the challenging portrait video matting problem more precisely, existing works typically apply some matting priors that require additional user efforts to obtain, such as annotated trimaps or background images. In this work, we observe that instead of asking the user to explicitly provide a background image, we may recover it from the input video itself. To this end, we first propose a novel background restoration module (BRM) to recover the background image dynamically from the input video. BRM is extremely lightweight and can be easily integrated into existing matting models. By combining BRM with a recent image matting model, MODNet, we then present MODNet-V for portrait video matting. Benefited from the strong background prior provided by BRM, MODNet-V has only 1/3 of the parameters of MODNet but achieves comparable or even better performances. Our design allows MODNet-V to be trained in an end-to-end manner on a single NVIDIA 3090 GPU. Finally, we introduce a new patch refinement module (PRM) to adapt MODNet-V for high-resolution videos while keeping MODNet-V lightweight and fast.
Motivation & Objective
- To address the challenge of portrait video matting in real-time applications where user-provided trimaps or background images are impractical.
- To eliminate reliance on manual annotation of trimaps or pre-captured background images, which are costly and infeasible in dynamic or real-time scenarios.
- To improve matting performance and stability by leveraging temporal consistency across video frames to reconstruct a dynamic background prior.
- To develop a lightweight, end-to-end trainable model that maintains high efficiency and scalability for high-resolution videos.
Proposed method
- Proposes a Background Restoration Module (BRM) that maintains latent background features and a binary mask to iteratively update and restore the background from consecutive video frames.
- Integrates BRM with MODNet to form MODNet-V, where the restored background serves as a dynamic prior for alpha matte prediction in each frame.
- Employs a two-stage training strategy: first, end-to-end training of MODNet and BRM on a subset of frames (1st and Tth) to reduce memory usage; second, fine-tuning of the Patch Refinement Module (PRM) on high-resolution data.
- Introduces a Patch Refinement Module (PRM) that selectively refines high-resolution patches based on a confidence threshold (ξ=0.01), reducing refinement overhead by ~6.5×.
- Uses a combined loss function: ℒα for alpha matte prediction and ℒbg to supervise background reconstruction, with γ weighting to emphasize boundary regions.
- Applies a multi-scale training scheme using synthetic composites with 20 background images per video sequence, enhancing robustness to background variations.
Experimental results
Research questions
- RQ1Can the background of a video frame be effectively restored from historical frames to serve as a prior for video matting?
- RQ2Can a self-supervised background restoration mechanism outperform models requiring user-provided priors like trimaps or background images?
- RQ3Can a lightweight BRM be integrated into existing matting models without architectural changes, while improving performance and reducing model size?
- RQ4Can the proposed PRM enable efficient and high-quality inference on high-resolution videos without significant computational cost?
- RQ5Does the combination of BRM and PRM lead to more stable and accurate matting results across diverse real-world video sequences?
Key findings
- MODNet-V achieves a MAD of 65.63×10⁻⁴ and MSE of 32.39×10⁻⁴ on a real-world video matting dataset, outperforming MODNet (MAD: 83.30×10⁻⁴, MSE: 34.05×10⁻⁴).
- Despite having only 1/3 the number of parameters of MODNet, MODNet-V delivers comparable or better performance, demonstrating significant parameter efficiency.
- The model is trainable in an end-to-end fashion on a single NVIDIA 3090 GPU, with a batch size of 16, due to the use of frame sampling (1st and Tth) in the first training stage.
- The Patch Refinement Module (PRM) reduces refinement overhead by approximately 6.5 times by limiting processing to only 15% of patches with high flaw probability (ξ=0.01).
- Visual comparisons show that MODNet-V produces more stable and accurate alpha mattes, especially in challenging regions like hair, due to the enhanced background prior.
- The BRM enables effective handling of dynamic backgrounds by continuously updating the background representation across frames, avoiding failure in scenarios where background changes over time.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.