Morpho-Aware Global Attention for Image Matting

Jingru Yang, Chengzhi Cao, Chentianye Xu, Zhongwei Xie, Kaixiang Huang +2 more
11/15/2024
cs.CV

No official code found. Best implementation: kingbackyang/Morpho-Aware-Global-Attention-for-Image-Matting (5 stars, last commit 2024-10-28).

Abstract

Vision Transformers (ViTs) and Convolutional Neural Networks (CNNs) face inherent challenges in image matting, particularly in preserving fine structural details. ViTs, with their global receptive field enabled by the self-attention mechanism, often lose local details such as hair strands. Conversely, CNNs, constrained by their local receptive field, rely on deeper layers to approximate global context but struggle to retain fine structures at greater depths. To overcome these limitations, we propose a novel Morpho-Aware Global Attention (MAGA) mechanism, designed to effectively capture the morphology of fine structures. MAGA employs Tetris-like convolutional patterns to align the local shapes of fine structures, ensuring optimal local correspondence while maintaining sensitivity to morphological details. The extracted local morphology information is used as query embeddings, which are projected onto global key embeddings to emphasize local details in a broader context. Subsequently, by projecting onto value embeddings, MAGA seamlessly integrates these emphasized morphological details into a unified global structure. This approach enables MAGA to simultaneously focus on local morphology and unify these details into a coherent whole, effectively preserving fine structures. Extensive experiments show that our MAGA-based ViT achieves significant performance gains, outperforming state-of-the-art methods across two benchmarks with average improvements of 4.3% in SAD and 39.5% in MSE.

View on arXivView PDF

Code Implementations(1)

This is the official implementation of "MAGA: Morpho-Aware Global Attention for Image Matting"

50PythonOct 17, 20241 years ago

Similar Papers

Cite this paper

@article{yang2024morphoaware,
  title  = {Morpho-Aware Global Attention for Image Matting},
  author = {Jingru Yang and Chengzhi Cao and Chentianye Xu and Zhongwei Xie and Kaixiang Huang and Yang Zhou and Shengfeng He},
  year   = {2024},
  eprint = {2411.10251},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.10251v1}
}

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/2411.10251.svg)](https://codeofpaper.com/paper/2411.10251)

Discussion