SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2211.06220 · 2022

OneFormer: One Transformer to Rule Universal Image Segmentation

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 5 functions out of this paper's own repositories and ran 2 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
SHI-Labs/OneFormer canonical 2 of 5
FunctionStatusWhere it lives
linear_sum_assignment_with_nan Ran SHI-Labs/OneFormer/oneformer/modeling/matcher.py
code served (permissive licence) · get_code("0b93a4545ba92b2d")
sigmoid_ce_loss Ran SHI-Labs/OneFormer/oneformer/modeling/criterion.py
code served (permissive licence) · get_code("dc4a40c394479bd8")
batch_dice_loss Not yet run SHI-Labs/OneFormer/oneformer/modeling/matcher.py
code served (permissive licence) · get_code("bc2cb481a75c370d")
batch_sigmoid_ce_loss Not yet run SHI-Labs/OneFormer/oneformer/modeling/matcher.py
code served (permissive licence) · get_code("1edd24985036b0bf")
dice_loss Not yet run SHI-Labs/OneFormer/oneformer/modeling/criterion.py
code served (permissive licence) · get_code("89f75e54ff128be0")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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 segmentation to 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, and panoptic 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 new ConvNeXt 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

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2211.06220")
get_code_for_paper("2211.06220")
have("2211.06220")

Connect an agent — have() is free.