[Paper Review] Matte Anything: Interactive Natural Image Matting with Segment Anything Models
MatAny uses Segment Anything Model (SAM) and an open-vocabulary detector (GroundingDINO) to generate pseudo trimaps for image matting, enabling interactive, training-free, high-quality alpha mattes with minimal user input and refining steps.
Natural image matting algorithms aim to predict the transparency map (alpha-matte) with the trimap guidance. However, the production of trimap often requires significant labor, which limits the widespread application of matting algorithms on a large scale. To address the issue, we propose Matte Anything (MatAny), an interactive natural image matting model that could produce high-quality alpha-matte with various simple hints. The key insight of MatAny is to generate pseudo trimap automatically with contour and transparency prediction. In our work, we leverage vision foundation models to enhance the performance of natural image matting. Specifically, we use the segment anything model to predict high-quality contour with user interaction and an open-vocabulary detector to predict the transparency of any object. Subsequently, a pre-trained image matting model generates alpha mattes with pseudo trimaps. MatAny is the interactive matting algorithm with the most supported interaction methods and the best performance to date. It consists of orthogonal vision models without any additional training. We evaluate the performance of MatAny against several current image matting algorithms. MatAny has 58.3% improvement on MSE and 40.6% improvement on SAD compared to the previous image matting methods with simple guidance, achieving new state-of-the-art (SOTA) performance. The source codes and pre-trained models are available at https://github.com/hustvl/Matte-Anything.
Motivation & Objective
- Reduce manual labor in trimap creation for natural image matting by leveraging foundation vision models.
- Show that pseudo trimaps derived from segmentation and object-detection can drive high-quality matting without additional training.
- Demonstrate interactive refinement with simple user inputs (points, boxes, scribbles, text) to improve results.
- Evaluate generalization across synthetic and real-world datasets and against leading matting methods.
Proposed method
- Use Segment Anything Model (SAM) to obtain high-quality instance masks under user interaction.
- Employ GroundingDINO as an open-vocabulary detector to identify and text-prompt potential transparent objects.
- Generate pseudo trimaps from SAM masks and transparency predictions, applying erosion/dilation to create basic trimaps and then refine with a transparency correction strategy.
- Pass the original image and the pseudo trimap to a pretrained matting model (ViTMatte) to predict the alpha matte without additional training.
- Allow user corrections to adjust transparency predictions with a simple click, improving matting of misidentified transparent regions.
Experimental results
Research questions
- RQ1Can a fully interactive, training-free matting system achieve competitive results by composing foundation models (SAM, OV detectors) with a pre-trained matting model?
- RQ2How effective are pseudo trimaps generated from segmentation and transparency detection for guiding matting across diverse datasets?
- RQ3What level of user interaction is required to refine results to state-of-the-art performance on standard matting benchmarks?
- RQ4How well does the approach generalize to real-world and class-specific matting scenarios (humans, animals, transparent objects) compared to traditional trimap-based methods?
Key findings
- MatAny achieves strong performance on Composition-1k, outperforming other x-guided matting methods and remaining competitive with trimap-based matting after refinement.
- GroundingDINO’s transparency predictions are highly impactful but can introduce errors; a single-click correction can yield substantial improvements (MatAny vs. MatAny† showing large SAD/MSE gains).
- The proposed pseudo trimap strategy enables high-quality matting with minimal user input and no additional training.
- MatAny demonstrates competitive results on AIM-500 and real-world class-specific datasets (AM-2k, P3M-500) compared with both trimap-free and trimap-based state-of-the-art methods.
- The system supports a broad set of interactions (points, boxes, scribbles, text) and can be refined quickly, achieving top performance among x-guided methods.
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.