This comparison is based on both projects' official GitHub pages and documentation, checked on 6 December 2026. Speed claims mentioned here are the RVM authors' own published results, not ours.
Both tools cut people out of video on your own PC, without a green screen and without uploading footage anywhere. They take very different approaches, though, and that decides which one suits you.
At a glance
| MatAnyone 2 | Robust Video Matting (RVM) |
|---|
Developer | S-Lab, Nanyang Technological University, and SenseTime Research | Developed at ByteDance |
Paper | CVPR 2026 (Highlight) | WACV 2022 |
Code released | March 2026 (inference) | August 2021 |
Extra input | First-frame mask of the subject | None |
Subjects | The target(s) you mask | Designed for human video matting |
Formats | PyTorch, CLI, Gradio demo | PyTorch, TorchScript, ONNX, TensorFlow, TensorFlow.js, Core ML |
Licence | NTU S-Lab License 1.0 | GPL-3.0 |
How they work
RVM uses a recurrent neural network that keeps a temporal memory as it moves through a video, and needs no extra input: you give it the video and it returns a foreground and alpha matte. Its authors describe it as real-time, and its README lists speed results at HD and 4K on the GTX 1080 Ti, RTX 2060 Super and RTX 3090, all of which they report as real-time. It comes in two sizes: MobileNetV3, which the authors recommend for most uses, and a larger ResNet50 version with what they call small performance improvements.
MatAnyone 2 needs a segmentation mask for the first frame, which tells it exactly who to follow. You can make one with a model such as SAM 2, or click the subject in the project's local Gradio demo. Its authors say the second version scales video matting by using a learned quality evaluator. In the original MatAnyone README, the authors show RVM being confused by a harmonised test frame from their YouTubeMatte benchmark while MatAnyone holds up. That is the MatAnyone team's own comparison, not an independent one.
Ease of use
RVM is simpler to drop into a pipeline: no mask, a single convert_video call in Python, and a downsample_ratio setting with a guideline table in its documentation (0.25 for a 1080p portrait shot, 0.125 for a 4K portrait shot, higher for full-body shots). The ONNX and Core ML exports make it usable well beyond PyTorch, and ONNX Runtime has been tested by the authors with both CPU and CUDA backends.
MatAnyone 2 asks for slightly more effort per clip because of the mask, but the Gradio demo makes that a few clicks. The mask also lets you choose between people: the original MatAnyone README shows separate runs for person 1 and person 2 in the same video.
Hardware
Neither project gives a minimum VRAM figure. RVM is clearly the lighter of the two: its authors' speed results include the GTX 1080 Ti from 2017, and it can run on a CPU through ONNX Runtime. MatAnyone 2's example code targets an NVIDIA GPU through CUDA, and its --max-size option lets you cap resolution when a clip is too demanding. Our best GPUs for AI video matting guide covers which cards make sense.
Development and licence
RVM's GitHub repository was last updated in April 2024, so treat it as a finished project. MatAnyone 2 is more recent: its repository was last updated in July 2026, and a third-party Core ML port for Apple devices was listed in June 2026. On licensing, RVM's GPL-3.0 is a standard open-source licence, whereas MatAnyone uses the NTU S-Lab License 1.0, which you should read before any commercial use.
Which should you choose?
Choose RVM if you want fast, fully automatic matting of people, a CPU fallback, or a model you can export to ONNX or run in a browser.
Choose MatAnyone 2 if you want the most up-to-date research model, need to pick a particular subject, and don't mind marking the first frame. Our MatAnyone 2 guide walks through setup.
For live webcam backgrounds rather than editing recorded video, see our OBS background removal vs NVIDIA Broadcast comparison.