MatAnyone

This repository contains the model described in MatAnyone: Stable Video Matting with Consistent Memory Propagation.

Code: https://github.com/pq-yang/MatAnyone

Usage

Requires pip install huggingface_hub.

pip install -q git+https://github.com/pq-yang/MatAnyone

Users will only need to use these two lines to load and instantiate the model.

from matanyone.model.matanyone import MatAnyone
matanyone = MatAnyone.from_pretrained("PeiqingYang/MatAnyone").cuda().eval()

We also provide a stand-alone inference script that could be used as API.

python inference_matanyone_api.py -i <input video> -m <first-frame seg mask>
Downloads last month
110
Safetensors
Model size
35.3M params
Tensor type
F32
·
Inference Providers NEW
This model is not currently available via any of the supported Inference Providers.
The model cannot be deployed to the HF Inference API: The model has no pipeline_tag.

Space using PeiqingYang/MatAnyone 1