Canonical: https://instain.ru/en/ai/robust-video-matting/
Language: en

Shanchuan Lin and co-authors  model

# Robust Video Matting. 

Person mattes and transparent video backgrounds

4.40 / 5    [Directory score](https://instain.ru/en/ai/robust-video-matting/#editorial-rating) [Official website ](https://github.com/PeterL1n/RobustVideoMatting)

The model separates a person from the background across a sequence of frames and outputs a transparency matte and foreground for compositing.

![The official Robust Video Matting repository with the results of the separation of a person from the background.](https://instain.ru/assets/images/robust-video-matting-screen-d33de39deb35-1200.webp)

The official Robust Video Matting repository with the results of the separation of a person from the background.  [Open the source ](https://github.com/PeterL1n/RobustVideoMatting)

## Why Masks Are Important to Neighbors

Robust Video Matting highlights the human figure and assesses transparency on the border between the foreground and the background. The model stores the state along the roller. This reduces the risk that the hair or edge of the clothes will begin to blink with a small change in posture. The mask can be useful in an installation project to replace the background or edit only the site with a presenter. The authors give options for displaying the foreground, the transparency map and the frame already collected.

## Transfer the presenter to the substrate

In the training example, give the model a short frame where the presenter turns at the window and raises his hand. Open the mask on top of a simple light substrate, then replace the substrate with a dark one. On one background, the border is better visible, on the other, the missing hair. Scroll at the usual speed to notice trembling, and stop on the frame with an overlap of the arm and face. See if fingers and thin lines of the frame are preserved.

## What to tell the editor

Save the original roller next to the mask and any intermediate assembly. When exporting a sequence of frames, check that the same number of frames, dimensions and order will fall on the next step. If the handler uses the state of the previous fragment, run a new continuous plan separately. Clothing close to the background color, sharp grease and glare can make separation difficult. Checking on one still picture does not show whether the mask is useful in motion.

## Suitable tasks

- Select the host for installation on a new background

- Save human mask for further processing

Features 

## Strengths

- Considers the sequence of neighboring personnel

- Exports foreground and alpha mask

Things to consider 

## Limitations

- The model is designed for people

- In greased places on the edges there are errors of transparency

## Selection and conditions

Free access

Yes

Trial period

Not confirmed

No sign-up required

Not confirmed

Russian interface

Not confirmed

Local installation

Yes

API

Not confirmed

“Not confirmed” means there is not enough information. The feature may still be available; check the developer’s terms.

Input formats

Video

Result

Mask, Video

### Terms

Source code and weights are available from the authors. The repository describes how to run through PyTorch and exported options for other environments.

From task to first result

## Practical example

Task

Select the host for installation on a new background

What to prepare

A short own video frame with a moving person and a fairly contrasting background.

### Task brief or prompt

Select the figure, check the movement of the mask and put a simple color substrate under it.

### Expected result

Frame with a proven foreground mask.

### How to check the result

- Look at the complex footage with overlaps.

- Compare hair and small details on a light and dark background.

An editorial teaching example of a task brief, not the result of hands-on testing of the service. Check that the required mode is available, that you have rights to the source material and that the intended use of the result is permitted.

Check details

## Official sources

-  [Repository of models, formats and launch examples ](https://github.com/PeterL1n/RobustVideoMatting)

-  [Robust Video Matting ](https://peterl1n.github.io/RobustVideoMatting/)

-  [Article about the work of the model in time ](https://arxiv.org/abs/2108.11515)

This description is based on the developer’s material. Features, prices and availability may change; check the primary source before use.

About the tool

Developer

Shanchuan Lin and co-authors

Category

[Video](https://instain.ru/en/category/video/)

Access

Source code and weights are available from the authors. The repository describes how to run through PyTorch and exported options for other environments.

Payment

There is no separate subscription for the repository. The code is published under GPL-3.0. Before distribution, check the conditions of the selected option and dependencies.

API

Check the developer documentation

[Developer terms ](https://github.com/PeterL1n/RobustVideoMatting)

Directory score

4.40 / 5 

Features

4.60 / 5 

Workflows

4.20 / 5 

Ecosystem

4.40 / 5 

Documentation

4.40 / 5 

Scores are an editorial guide to the directory. They are not user reviews or the results of personal testing.

[See the methodology ](https://instain.ru/en/methodology/)

Keep exploring

## For similar tasks

[Full category  ](https://instain.ru/en/category/video/)

Video 

###  [Adobe After Effects](https://instain.ru/en/ai/adobe-after-effects/)

Video masking and compositing

4.53 / 5   editor  

Similar tasks; compare terms, formats and limitations

Video 

###  [Movavi Video Editor](https://instain.ru/en/ai/movavi-video-editor/)

Video editing with background removal and tracking

4.38 / 5   Video editor  

Trial available

Video 

###  [VEGAS Pro](https://instain.ru/en/ai/vegas-pro/)

Isolate moving objects with AI Smart Mask

4.30 / 5   editor  

Similar tasks; compare terms, formats and limitations
