ViTMatte: Boosting Image Matting with Pretrained Plain Vision Transformers

Jingfeng Yao, Xinggang Wang, Shusheng Yang, Baoyuan Wang
5/24/2023
cs.CV

No official code found. Best implementation: hustvl/ViTMatte (539 stars, MIT, last commit 2025-08-13).

Abstract

Recently, plain vision Transformers (ViTs) have shown impressive performance on various computer vision tasks, thanks to their strong modeling capacity and large-scale pretraining. However, they have not yet conquered the problem of image matting. We hypothesize that image matting could also be boosted by ViTs and present a new efficient and robust ViT-based matting system, named ViTMatte. Our method utilizes (i) a hybrid attention mechanism combined with a convolution neck to help ViTs achieve an excellent performance-computation trade-off in matting tasks. (ii) Additionally, we introduce the detail capture module, which just consists of simple lightweight convolutions to complement the detailed information required by matting. To the best of our knowledge, ViTMatte is the first work to unleash the potential of ViT on image matting with concise adaptation. It inherits many superior properties from ViT to matting, including various pretraining strategies, concise architecture design, and flexible inference strategies. We evaluate ViTMatte on Composition-1k and Distinctions-646, the most commonly used benchmark for image matting, our method achieves state-of-the-art performance and outperforms prior matting works by a large margin.

View on arXivView PDF

Code Implementations(1)

hustvl/ViTMatteCommunity100%
MIT

[Information Fusion (Vol.103, Mar. '24)] Boosting Image Matting with Pretrained Plain Vision Transformers

53952PythonMay 25, 20231 years agoMIT

Similar Papers

Cite this paper

@article{yao2023vitmatte,
  title  = {ViTMatte: Boosting Image Matting with Pretrained Plain Vision Transformers},
  author = {Jingfeng Yao and Xinggang Wang and Shusheng Yang and Baoyuan Wang},
  year   = {2023},
  eprint = {2305.15272},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.15272v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.15272.svg)](https://codeofpaper.com/paper/2305.15272)

Discussion