HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

AutoFocusFormer: Image Segmentation off the Grid

Chen Ziwen Kaushik Patnaik Shuangfei Zhai Alvin Wan Zhile Ren Alex Schwing Alex Colburn Li Fuxin

AutoFocusFormer: Image Segmentation off the Grid

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 downsampling 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.

Code Repositories

apple/ml-autofocusformer
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
instance-segmentation-on-cityscapes-valAFF-Base (single-scale, point-based Mask2Former)
AP50: 74.2
mask AP: 46.2
instance-segmentation-on-cityscapes-valAFF-Small (single-scale, point-based Mask2Former)
AP50: 72.8
mask AP: 44.0
panoptic-segmentation-on-cityscapes-valAFF-Base (single-scale, point-based Mask2Former)
AP: 46.2
PQ: 67.7
PQst: 71.5
PQth: 62.5
mIoU: 83.0
panoptic-segmentation-on-cityscapes-valAFF-Small (single-scale, point-based Mask2Former)
AP: 44.2
PQ: 66.9
PQst: 70.8
PQth: 61.5
mIoU: 82.2

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
AutoFocusFormer: Image Segmentation off the Grid | Papers | HyperAI