Segment Every Out-of-Distribution Object

Wenjie Zhao, Jia Li, Xin Dong, Yu Xiang, Yunhui Guo
2/14/2026

No official code found. Best implementation: WenjieZhao1/S2M (27 stars, Apache-2.0, last commit 2025-01-09).

Abstract

Semantic segmentation models, while effective for indistribution categories, face challenges in real-world deployment due to encountering out-of-distribution (OoD) objects. Detecting these OoD objects is crucial for safety- critical applications. Existing methods rely on anomaly scores, but choosing a suitable threshold for generating masks presents difficulties and can lead to fragmentation and inaccuracy. This paper introduces a method to convert anomaly Score To segmentation Mask, called S2M, a simple and effective framework for OoD detection in semantic segmentation. Unlike assigning anomaly scores to pixels, S2M directly segments the entire OoD object. By transforming anomaly scores into prompts for a promptable segmentation model, S2M eliminates the need for thresh- old selection. Extensive experiments demonstrate that S2M outperforms the state-of-the-art by approximately 20% in IoU and 40% in mean F1 score, on average, across various benchmarks including Fishyscapes, Segment-Me-If- You-Can, and RoadAnomaly datasets. Code is available at https://github.com/WenjieZhao1/S2M.

View on arXivView PDF

Code Implementations(1)

WenjieZhao1/S2MCommunity63%
Apache-2.0

Code for CVPR2024 'Segment Every Out-of-Distribution Object '

273C++, CudaMar 26, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{zhao2026segment,
  title  = {Segment Every Out-of-Distribution Object},
  author = {Wenjie Zhao and Jia Li and Xin Dong and Yu Xiang and Yunhui Guo},
  year   = {2026},
  eprint = {2311.16516},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2311.16516},
  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/2311.16516.svg)](https://codeofpaper.com/paper/2311.16516)

Discussion