SAD: Segment Any RGBD

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

TL;DR

While the Segment Anything Model (SAM) excels at 2D segmentation, its heavy reliance on texture and color often causes it to over-segment objects. SAD (Segment Any RGBD) addresses this by rendering 2.5D depth maps as pseudo-RGB images using colormaps, feeding them into a zero-shot SAM pipeline, and fusing them with open-vocabulary semantic predictions from OVSeg to produce clean, geometry-aware 3D segmentations without retraining.

What Problem Does This Paper Address?

Foundation segmentation models like SAM are typically trained on massive corpora of standard RGB images. As a result, SAM has a strong bias toward texture, contrast, and color boundaries rather than true 3D spatial geometry. In practice, this often causes over-segmentation: a single tabletop with shadows, reflections, or varied patterns gets fragmented into multiple separate masks.

Conversely, depth maps represent purely geometric structure and ignore distracting surface textures. The authors tackle how to harness SAM’s zero-shot segmentation engine directly on geometric depth data—despite SAM expecting 3-channel visual images—to produce more structurally sound segments with category labels.

Methods

SAD presents a zero-shot, training-free pipeline that converts raw depth data into semantic 3D segmentations:

  1. Depth Rendering via Colormaps: Because SAM requires a 3-channel $[H \times W \times 3]$ input, raw single-channel depth maps $[H \times W]$ are projected into the RGB color space using standard colormap functions (e.g., Viridis, Plasma, Cividis, Gray, and Purples).
  2. SAM on Depth: The rendered pseudo-color depth image is fed into a frozen SAM. Because depth gradients represent true physical surface boundaries, SAM produces class-agnostic masks guided by geometry rather than surface texture.
  3. Open-Vocabulary Semantic Guidance: In parallel, an off-the-shelf Open-Vocabulary Semantic Segmentation model (OVSeg) processes the standard RGB image alongside text prompts to generate coarse, class-labeled regions.
  4. Semantic Majority Voting: For each fine-grained SAM mask, pixels vote on the dominant class prediction from the corresponding OVSeg mask. Adjacent masks assigned the same semantic category are merged into coherent object instances.
  5. 3D Projection: Finally, using camera intrinsics and the depth values, the labeled 2D masks are back-projected into 3D space for stereoscopic visualization.
Depth [H, W]  --> Colormap Render --> Depth [H, W, 3] --> SAM  ----\
                                                                     +--> Semantic Voting & Merging --> 3D Projection
RGB Image     --> Text Prompts    --> OVSeg           --------/

Datasets

The authors evaluate SAD on two standard benchmarks without any task-specific fine-tuning:

  • SAIL-VOS 3D: A synthetic indoor/outdoor video dataset featuring dense 3D mesh annotations and challenging diverse objects.
  • ScanNetV2: A large-scale real-world indoor RGB-D dataset captured using commodity depth sensors, containing noisy and incomplete depth maps.

Key Insights and Ideas

  • SAM transfers zero-shot to non-RGB modalities: By rendering depth using perceptual colormaps, SAM can process structural data off-the-shelf. The authors observed that SAM behaves differently depending on the colormap chosen, showing distinct "color preferences."
  • Geometry suppresses over-segmentation: Rendering depth strips out conflicting visual patterns (e.g., wood grain, text, reflections), preventing SAM from dividing unified flat surfaces into multiple sub-masks.
  • Complementary failure modes:
  • Depth strengths: Fixes texture-based fragmentation (e.g., accurately treating a patterned table as one object instead of four).
  • Depth weaknesses: When two separate objects are flush or physically touching (such as a chair pushed tight against a desk), depth maps exhibit no boundary, causing them to merge. Here, RGB texture remains essential.

Key Results

  • Sailvos3D: SAD using depth inputs achieves 34.35 mIoU in a completely zero-shot setting, compared to 37.90 mIoU when using RGB inputs. Notably, depth inputs outperform RGB inputs on fine-grained geometric objects such as cups (39.88 vs. 19.26 IoU), bottles (42.84 vs. 36.60 IoU), and birds (40.90 vs. 39.52 IoU). Both zero-shot variants surpass the fully supervised DKNet point cloud baseline (13.68 mIoU).
  • ScanNetV2: SAD using depth achieves 28.8 mIoU versus 33.3 mIoU using RGB. While fully supervised models trained directly on the dataset (e.g., BPNet at 67.0 mIoU) remain ahead, SAD demonstrates strong zero-shot baseline performance across both 2D and projected 3D spaces.

Limitations and Future Work

  • Pretraining Domain Gap: Overall average performance using depth inputs still trails RGB inputs, largely because SAM's visual priors were learned from millions of natural RGB photographs.
  • Sensor Artifacts: Real-world depth sensors often produce missing or noisy measurements (visible as black holes in ScanNet). Missing depth values degrade boundary accuracy.
  • Proximity Merging: Objects in close physical contact lack depth discontinuities and can be erroneously merged into a single segment. Future work could benefit from an explicit multi-modal fusion mechanism that jointly optimizes over both RGB textures and depth cues rather than processing them through separate visual pathways.

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