pq-yang/MatAnyone2
[CVPR 2026 Highlight] MatAnyone 2: Scaling Video Matting via a Learned Quality Evaluator
What it solves
MatAnyone 2 addresses the challenge of high-quality human video matting—extracting a person from a video background—while avoiding the coarse, "segmentation-like" boundaries often found in simpler tools. It is designed to be robust under challenging real-world conditions while preserving fine details like hair and edges.
How it works
The framework uses a learned quality evaluator to scale video matting performance. For inference, it takes a video and a segmentation mask of the first frame (which can be generated by tools like SAM2) as input. It then processes the video to produce both a foreground output and an alpha matte (the transparency map) for the target person.
Who it’s for
This tool is for video editors, researchers, and developers working on computer vision tasks that require precise foreground-background separation in videos, such as visual effects or background replacement.
Highlights
- Fine Detail Preservation: Avoids harsh boundaries to maintain a natural look.
- Real-world Robustness: Enhanced ability to handle difficult lighting or complex backgrounds.
- Flexible Input: Supports both video files (.mp4, .mov, .avi) and folders of frames.
- Interactive Demo: Includes a Gradio-based interface for easy mask assignment and processing.
Related
- Project
- Project
- Project
- Dispatch
- Project