arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.15662cs.CV
收藏

MatteFormer:基于变换器的先验标记图像抠图

MatteFormer: Transformer-Based Image Matting via Prior-Tokens

Seoul National University(首尔国立大学);NAVER WEBTOON AI(NAVER WEBTOON人工智能部门)

GyuTae Park, SungJoon Son, JaeYoung Yoo, SeHo Kim, Nojun Kwak

摘要:

在本文中,我们提出了一种基于变换的图像抠图模型MatteFormer,它充分利用了Transformer块中的三分图信息。我们的方法首先引入了一个先验标记,它是每个trimap区域(例如前景,背景和未知)的全局表示。这些先验令牌被用作全局先验,并参与每个块的自注意力机制。编码器的每一级都由PAST(Prior-Attentive Swin Transformer)块组成,PAST块基于Swin Transformer块,但在几个方面有所不同:1)它具有PA-WSA(Prior-Attentive Window Self-Attention)层,不仅使用空间令牌而且使用先验令牌执行自注意。2)它具有先前存储器,其从先前块累积保存先前令牌,并将其传输到下一个块。我们在常用的图像抠图数据集上评估我们的MatteFormer:Composition-1 k和Distinctions-646。实验结果表明,我们提出的方法实现了国家的最先进的性能与大的裕度。我们的代码可在https://github.com/webtoon/matteformer上获得。

英文摘要:

In this paper, we propose a transformer-based image matting model called MatteFormer, which takes full advantage of trimap information in the transformer block. Our method first introduces a prior-token which is a global representation of each trimap region (e.g. foreground, background and unknown). These prior-tokens are used as global priors and participate in the self-attention mechanism of each block. Each stage of the encoder is composed of PAST (Prior-Attentive Swin Transformer) block, which is based on the Swin Transformer block, but differs in a couple of aspects: 1) It has PA-WSA (Prior-Attentive Window Self-Attention) layer, performing self-attention not only with spatial-tokens but also with prior-tokens. 2) It has prior-memory which saves prior-tokens accumulatively from the previous blocks and transfers them to the next block. We evaluate our MatteFormer on the commonly used image matting datasets: Composition-1k and Distinctions-646. Experiment results show that our proposed method achieves state-of-the-art performance with a large margin. Our codes are available at https://github.com/webtoon/matteformer.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑