SAD: Segment Any RGBD

Jun Cen, Yizheng Wu, Kewei Wang, Xingyi Li, Jingkang Yang, Yixuan Pei, Lingdong Kong, Ziwei Liu, Qifeng Chen · DOI

Abstract

Meta’s Segment Anything Model (SAM) has established a new paradigm for zero-shot 2D image segmentation. However, its reliance on RGB data often leads to "texture bias," where complex patterns or lighting variations cause a single physical object to be fragmented into multiple segments. We introduce SAD (Segment Any RGBD), a framework designed to overcome these limitations by incorporating geometric information. By rendering depth maps into a color-mapped format that SAM can process, SAD leverages spatial consistency to produce more holistic object masks. Our approach enables high-quality 3D panoptic segmentation and demonstrates superior performance in unifying multi-colored objects that standard RGB-based models struggle to identify as single entities.

Introduction: The Texture Bias Problem

While SAM is a powerhouse for 2D computer vision, it frequently gets distracted by surface-level details. Because it was trained primarily on RGB images, the model prioritizes color and pattern over physical structure. In real-world scenarios, this results in significant "over-segmentation." For instance, a wooden table with a prominent grain or a patterned rug might be segmented into dozens of distinct pieces by SAM, even though it is geometrically a single continuous object.

Standard SAM segmentation on an RGB image, demonstrating over-segmentation due to texture and lighting variations.

In contrast, humans use a combination of visual texture and spatial intuition to identify objects. To truly "segment anything" in a 3D environment, models must respect the underlying geometry. The challenge lies in providing a 2D-centric model like SAM with a sense of 3D depth without the prohibitive cost of retraining the model from scratch on depth data.

Methodology: Bridging 2D and 3D

The SAD framework introduces a multi-stage pipeline to bridge the gap between 2D texture and 3D geometry:

  1. Depth Rendering: To make raw depth data intelligible to SAM, the researchers map depth maps into the RGB space using standard colormap functions such as Viridis, Plasma, or Cividis. This transformation converts geometric distances into visual gradients that SAM’s pre-trained weights can interpret as boundaries.
  2. Geometry-Aware Segmentation: SAM is applied directly to these rendered depth images. By ignoring color and lighting, the model focuses purely on geometric "clues," resulting in masks that are inherently resistant to texture-induced over-segmentation.
  3. Open-Vocabulary Labeling: Since SAM is class-agnostic, the pipeline employs OVSeg (Open-Vocabulary Semantic Segmentation) on the original RGB image to provide coarse semantic labels for the scene.
  4. Semantic Voting: To finalize the segmentation, the model performs "semantic voting." For every geometric mask generated by SAM from the depth map, it analyzes the corresponding pixels in the OVSeg mask and assigns the majority class label to the entire segment.
  5. 3D Projection: Finally, these 2D semantic segments are projected back into 3D space using the original depth map, achieving the goal of 3D panoptic segmentation.
A depth map rendered using the Viridis colormap, providing a geometry-focused input for the SAM model.

Datasets and Evaluation

The researchers evaluated SAD on two major benchmarks to test its versatility across synthetic and real-world environments:

  • Sailvos3D: A synthetic dataset primarily used for high-quality 3D mesh reconstruction and object detection.
  • ScanNetV2: A widely used real-world dataset consisting of thousands of indoor RGB-D scans, providing a rigorous test for the model's robustness against sensor noise.

Key Insights and Results

A primary insight of this work is the role of depth as a denoiser. By converting depth to a colormap, the researchers essentially strip the scene of distracting textures. A patterned rug or a wood-grain table becomes a solid geometric block, making it much easier for the model to identify as a single entity. SAD is the first framework to utilize SAM for directly segmenting rendered depth images, rather than just using SAM on RGB to assist with 3D tasks.

The paper highlights a fascinating trade-off between modalities. RGB is superior for distinguishing between two different objects that are touching (where depth is nearly identical), while Depth is superior for unifying a single object with many colors. SAD attempts to capture the best of both worlds by using RGB for semantic labeling and Depth for boundary definition.

Qualitative results demonstrate a significant reduction in over-segmentation. In scenarios where an RGB-based SAM would split a table into several parts due to shadows, SAD correctly identifies it as one segment. Furthermore, because it leverages the pre-trained weights of SAM and OVSeg, SAD performs remarkably well in zero-shot settings across diverse indoor and outdoor scenes.

Limitations and Future Work

The authors acknowledge a primary limitation: under-segmentation. When two objects are in very close proximity—such as a chair pushed tightly against a wall—the depth map might show them as a single continuous surface. In these cases, the model may fail to separate them because it lacks the texture cues that would distinguish the fabric of the chair from the paint of the wall. Future work will likely involve a more sophisticated fusion strategy that dynamically weights RGB and Depth information based on the local context of the scene.

Summary updated

BibTeX
@inproceedings{cen2023sad,
  author = {Jun Cen and Yizheng Wu and Kewei Wang and Xingyi Li and Jingkang Yang and Yixuan Pei and Lingdong Kong and Ziwei Liu and Qifeng Chen},
  title = {{SAD: Segment Any RGBD}},
  booktitle = {R0-FoMo @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=fzLpelzcXl},
}
Figure