--- title: SAM2Matting emoji: 🎭 colorFrom: indigo colorTo: gray sdk: gradio sdk_version: 6.15.1 app_file: app.py short_description: Image matting with diverse prompts via SAM2Matting python_version: "3.12" startup_duration_timeout: 30m --- # SAM2Matting Demo This Space demonstrates **SAM2Matting** — a generalized matting framework that decouples high-level tracking from dedicated low-level matting. It takes an image and a rough foreground mask as input and produces a high-quality alpha matte with fine detail (hair, fur, translucent edges). ## Model - **Checkpoint**: SAM2Matting-SAM2.1Tiny (SAM2.1-T backbone, ~39M params) - **Source**: [FudanCVL/SAM2Matting](https://huggingface.co/FudanCVL/SAM2Matting) - **Paper**: [arXiv:2606.27339](https://arxiv.org/abs/2606.27339) - **Code**: [GitHub](https://github.com/FudanCVL/SAM2Matting) ## License CC-BY-NC-SA-4.0 (non-commercial research use only).