Learning Affinity-Aware Upsampling for Deep Image Matting

Abstract

We show that learning affinity in upsampling provides an effective and efficient approach to exploit pairwise interactions in deep networks. Second-order features are commonly used in dense prediction to build adjacent relations with a learnable module after upsampling such as non-local blocks. Since upsampling is essential, learning affinity in upsampling can avoid additional propagation layers, offering the potential for building compact models. By looking at existing upsampling operators from a unified mathematical perspective, we generalize them into a second-order form and introduce Affinity-Aware Upsampling (A2U) where upsampling kernels are generated using a light-weight low-rank bilinear model and are conditioned on second-order features. Our upsampling operator can also be extended to downsampling. We discuss alternative implementations of A2U and verify their effectiveness on two detail-sensitive tasks: image reconstruction on a toy dataset; and a large-scale image matting task where affinity-based ideas constitute mainstream matting approaches. In particular, results on the Composition-1k matting dataset show that A2U achieves a 14% relative improvement in the SAD metric against a strong baseline with negligible increase of parameters (< 0.5%). Compared with the state-of-the-art matting network, we achieve 8% higher performance with only 40% model complexity.

Cite

Text

Dai et al. "Learning Affinity-Aware Upsampling for Deep Image Matting." Conference on Computer Vision and Pattern Recognition, 2021. doi:10.1109/CVPR46437.2021.00677

Markdown

[Dai et al. "Learning Affinity-Aware Upsampling for Deep Image Matting." Conference on Computer Vision and Pattern Recognition, 2021.](https://mlanthology.org/cvpr/2021/dai2021cvpr-learning-a/) doi:10.1109/CVPR46437.2021.00677

BibTeX

@inproceedings{dai2021cvpr-learning-a,
  title     = {{Learning Affinity-Aware Upsampling for Deep Image Matting}},
  author    = {Dai, Yutong and Lu, Hao and Shen, Chunhua},
  booktitle = {Conference on Computer Vision and Pattern Recognition},
  year      = {2021},
  pages     = {6841-6850},
  doi       = {10.1109/CVPR46437.2021.00677},
  url       = {https://mlanthology.org/cvpr/2021/dai2021cvpr-learning-a/}
}