MatAnyone-E README

The project's README from github.com/Shuyun-Wang/MatAnyone-E. As one markdown file: README.md.

MatAnyone-E Logo

Sparse Memory Propagation for Efficient High-Resolution Video Matting

Shuyun Wang1,2  Shangchen Zhou2†  Peiqing Yang2  Yuekun Dai2  Xin Yu3*  Chen Change Loy2*
1The University of Queensland  2S-Lab, Nanyang Technological University  3University of Adelaide
†Project lead *Corresponding authors

4K speed race: MatAnyone 2 at 2.3 FPS vs MatAnyone-E at 28.6 FPS on one H200

MatAnyone-E mattes native 4K video at 28.6 FPS on a single H200 (with torch.compile), 12× faster than MatAnyone 2, using 3.1 GB of GPU memory, while keeping fine details such as hair strands.

:movie_camera: More results on the project page.


📮 Update

🏄🏻‍♀️ TODO

🔎 Overview

overview

MatAnyone-E keeps the architecture of MatAnyone 2 and replaces the two parts whose cost grows fastest with resolution:

⚡ Efficiency

FPS and peak GPU memory on one NVIDIA A800-SXM4-80GB (fp16); (C.) = with torch.compile.

Resolution MatAnyone 2 Ours Ours (C.) MatAnyone 2 memory Ours memory Ours (C.) memory
1024×1024 29.5 41.3 47.3 1.60 GB 0.92 GB 0.61 GB
1920×1080 13.6 26.6 37.6 5.47 GB 1.66 GB 1.07 GB
2560×1440 5.6 16.5 25.1 16.20 GB 3.04 GB 2.02 GB
3840×2160 ~1.1 8.1 13.6 ~79.69 GB 6.08 GB 3.89 GB

~ extrapolated (a full memory bank does not fit in 80 GB). On one H200 with torch.compile: 73.07 FPS at 1080p, 28.62 FPS at 4K.

📑 Citation

If you find our repo useful for your research, please consider citing our paper:

@article{wang2026matanyonee,
  title   = {{MatAnyone-E}: Sparse Memory Propagation for Efficient High-Resolution Video Matting},
  author  = {Shuyun Wang and Shangchen Zhou and Peiqing Yang and Yuekun Dai and Xin Yu and Chen Change Loy},
  journal = {arXiv preprint arXiv:2610.35724},
  year    = {2026}
}

📝 License

This project is licensed under NTU S-Lab License 1.0. Redistribution and use should follow this license.

👏 Acknowledgement

This project is built upon MatAnyone 2 and MatAnyone. Thanks for their awesome works!

📧 Contact

If you have any questions, please feel free to reach us at [email protected].

MatAnyone-E (Shuyun-Wang/MatAnyone-E)

arxiv
Searching Database…

What is this?MatAnyone-E is a research model for high-resolution video matting (splitting a video into foreground and background with an alpha mask) that runs far faster and with much less GPU memory than the original MatAnyone 2, while still preserving fine details like hair strands.
Is this a brand-new model, or a modified version of something else?It keeps the MatAnyone 2 architecture but replaces the two parts whose cost grows fastest with resolution: a sparse memory propagation module that only runs high-res matching on pruned query/memory pairs, and a lightweight decoder trained by distillation from the original one.
Can I run this myself right now?Not yet. Only the paper and project page are published so far; inference code and checkpoints, a Hugging Face demo, and a ComfyUI custom node are still listed as TODO.
What hardware will I need once the code is released?A CUDA GPU, sized to your target resolution: the paper benchmarks on an NVIDIA A800-80GB and an H200, and even with torch.compile optimizations, native 4K matting still uses around 3.9 GB of VRAM at minimum.
Does it stay fast and light at any resolution?Memory use still grows with resolution. At 4K the authors could not even measure MatAnyone 2 directly and had to extrapolate its memory use, because a full memory bank does not fit into 80GB of GPU memory.
Why is it called 'Sparse Memory Propagation'?A cheap low-resolution pass first figures out which query locations are uncertain and which stored memory frames actually matter for them, then the expensive high-resolution matching only runs on that small pruned set of pairs instead of everything.
How much faster is it than the original MatAnyone 2?At native 4K on an H200 with torch.compile it hits 28.6 FPS versus roughly 1.1 FPS for MatAnyone 2 (about 12x faster), while using 3.1 GB of GPU memory instead of an extrapolated ~80 GB.
Size
3.2 MB
Stars
198
Updated
CommitNov 05
Age
1mo
Commits · 90 Days