Paper page - OneFormer: One Transformer to Rule Universal Image Segmentation (original) (raw)

Published on Nov 10, 2022

Abstract

OneFormer is a multi-task universal image segmentation framework that achieves state-of-the-art performance across semantic, instance, and panoptic segmentation using a single model through task-conditioned training and contrastive loss.

Universal Image Segmentation is not a new concept. Past attempts to unify image segmentation in the last decades include scene parsing, panoptic segmentation, and, more recently, new panoptic architectures. However, such panoptic architectures do not truly unify image segmentation because they need to be trained individually on the semantic, instance, or panoptic segmentationto achieve the best performance. Ideally, a truly universal framework should be trained only once and achieve SOTA performance across all three image segmentation tasks. To that end, we propose OneFormer, a universal image segmentation framework that unifies segmentation with a multi-task train-once design. We first propose a task-conditioned joint training strategy that enables training on ground truths of each domain (semantic, instance, andpanoptic segmentation) within a single multi-task training process. Secondly, we introduce a task token to condition our model on the task at hand, making our model task-dynamic to support multi-task training and inference. Thirdly, we propose using a query-text contrastive loss during training to establish better inter-task and inter-class distinctions. Notably, our single OneFormer model outperforms specialized Mask2Former models across all three segmentation tasks on ADE20k, CityScapes, and COCO, despite the latter being trained on each of the three tasks individually with three times the resources. With newConvNeXt and DiNAT backbones, we observe even more performance improvement. We believe OneFormer is a significant step towards making image segmentation more universal and accessible. To support further research, we open-source our code and models at https://github.com/SHI-Labs/OneFormer

View arXiv page View PDF Add to collection

Get this paper in your agent:

hf papers read 2211.06220

Don't have the latest CLI?

curl -LsSf https://hf.co/cli/install.sh | bash

Models citing this paper 10

shi-labs/oneformer_ade20k_swin_large Image Segmentation • Updated Jan 19, 2023 • 122k • 35

shi-labs/oneformer_ade20k_swin_tiny Image Segmentation • Updated Jan 19, 2023 • 132k • 16

shi-labs/oneformer_ade20k_dinat_large Image Segmentation • Updated Aug 30, 2023 • 11.7k • 12

shi-labs/oneformer_coco_swin_large Image Segmentation • Updated Jan 19, 2023 • 98.2k • 8

Browse 10 models citing this paper

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2211.06220 in a dataset README.md to link it from this page.

Spaces citing this paper 27

Collections including this paper 2