Skip to content

VersusGPU

MatAnyone 2 vs Robust Video Matting: Which Local AI Video Matting Tool?

MatAnyone 2 and Robust Video Matting both remove video backgrounds locally without a green screen, but one follows a subject you mark in the first frame while the other is fully automatic. We compare how they work, ease of use, hardware demands, formats, development and licences.

By , Senior Hardware Editor

3 min read

MatAnyone 2 vs Robust Video Matting: Which Local AI Video Matting Tool?

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.

The bottom line

RVM is the quick, automatic and lightweight option, with authors' results showing real-time speeds on older cards and exports for many frameworks, but it hasn't been updated since 2024. MatAnyone 2 is the newer, more recently updated research model that follows a subject you mark in the first frame. Pick RVM for speed and simplicity, MatAnyone 2 for control and the latest research.

Sources

  1. 01Robust Video Matting (Peter Lin et al.), GitHub repository and README
  2. 02Robust Video Matting, inference documentation (GitHub)
  3. 03MatAnyone 2 (S-Lab, NTU), GitHub repository and README
  4. 04MatAnyone (S-Lab, NTU), GitHub repository and README

About the author

Callum Reid

Senior Hardware Editor

Callum leads GPU, CPU and platform architecture coverage at Forge PC. Before joining the editorial desk, he spent nine years specifying, assembling and stress-testing custom gaming and workstation systems in the UK, with a focus on PCIe bandwidth, VRM thermal design, DDR5 memory tuning and 1440p/4K frame-time consistency.

More from Callum Reid

Read next

Best GPUs for Local AI Video Matting in 2026

Best Picks

Best GPUs for Local AI Video Matting in 2026

AI video matting tools such as MatAnyone 2 and Robust Video Matting run on your own graphics card. We pick the best NVIDIA GPUs for removing video backgrounds locally, from the 16GB RTX 5070 Ti and RTX 5060 Ti to the 32GB RTX 5090 and a budget 8GB RTX 5060, based on official specs and documentation.

Hannah Vance3 min

How to Remove a Video Background Locally with MatAnyone 2

How-To

How to Remove a Video Background Locally with MatAnyone 2

MatAnyone 2 is an open AI video matting model that cuts people out of footage on your own PC without a green screen. We explain what hardware you need, how to install it with Conda or uv, how to make the first-frame mask it needs (or use its local demo), the key settings and how to composite the result.

Marcus Thorne4 min