ViTMatte high-level overview. Taken from the original paper. 
Resources
A list of official Hugging Face and community (indicated by 🌎) resources to help you get started with ViTMatte.

A demo notebook regarding inference with [VitMatteForImageMatting], including background replacement, can be found here.

The model expects both the image and trimap (concatenated) as input. Use [ViTMatteImageProcessor] for this purpose.