AutoFocusFormer: Image Segmentation off the Grid

Chen Ziwen, Kaushik Patnaik, Shuangfei Zhai, Alvin Wan, Zhile Ren +3 more
4/1/2023

No official code found. Best implementation: apple/ml-autofocusformer (126 stars, last commit 2023-06-15). 1 more below.

Abstract

Real world images often have highly imbalanced content density. Some areas are very uniform, e.g., large patches of blue sky, while other areas are scattered with many small objects. Yet, the commonly used successive grid downsampling strategy in convolutional deep networks treats all areas equally. Hence, small objects are represented in very few spatial locations, leading to worse results in tasks such as segmentation. Intuitively, retaining more pixels representing small objects during downsampling helps to preserve important information. To achieve this, we propose AutoFocusFormer (AFF), a local-attention transformer image recognition backbone, which performs adaptive down-sampling by learning to retain the most important pixels for the task. Since adaptive downsampling generates a set of pixels irregularly distributed on the image plane, we abandon the classic grid structure. Instead, we develop a novel point-based local attention block, facilitated by a balanced clustering module and a learnable neighborhood merging module, which yields representations for our point-based versions of state-of-the-art segmentation heads. Experiments show that our AutoFocusFormer (AFF) improves significantly over baseline models of similar sizes.

View on arXivView PDF

Code Implementations(2)

This is an official implementation for "AutoFocusFormer: Image Segmentation off the Grid".

12611C++, CudaMay 11, 20233 years agoNOASSERTION
affautofocusformerimagenetobject-classificationtransformer

This is an official implementation for "AutoFocusFormer: Image Segmentation off the Grid".

704C++, CudaMay 11, 20233 years agoNOASSERTION
ade20kaffautofocusformercityscapescoco+4 more

Similar Papers

Cite this paper

@article{ziwen2023autofocusformer,
  title  = {AutoFocusFormer: Image Segmentation off the Grid},
  author = {Chen Ziwen and Kaushik Patnaik and Shuangfei Zhai and Alvin Wan and Zhile Ren and A. Schwing and Alex Colburn and Li Fuxin},
  year   = {2023},
  eprint = {2304.12406},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2304.12406},
  journal = {CVPR 2023 2023}
}

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

Discussion