All models

DFormer-RGBD

DFormer, an RGB-D encoder pretrained on image-depth pairs, with a lightweight head for semantic segmentation.

Segmentation · 1,678 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (26 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
39M
Operations
1,678
Framework
PyTorch
Recurrent
No
Published
ICLR 2024
Cited by
37 (as of 27 October 2026)
Authors
Bowen Yin, Xuying Zhang, Zhongyu Li and others
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m15625
Graph hash
27a2dbd90c2ac140ecca8de503b0ac56452e7f682389559c4982741ce072ae23
Skeleton hash
0f5a023276e9f1406f05dd6f511e8b72c4143cbb151847e931c719c82915b602
Architecture hash
4453375ef5ae03611a80a7d19339bf2815bd7f495bda6b1846e6726f247c1ca6
Diagram SHA-256
c142f9b4ff392f71d41082cd3606148e635d7c603a712e3d779c5077c377c34a
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

DFormer is an RGB-D pretraining framework and encoder for segmenting a scene from an RGB image and its depth map. Where earlier methods encode RGB-D input with backbones pretrained on RGB images, DFormer pretrains its backbone on image-depth pairs from ImageNet-1K. The depth maps for pretraining are generated by applying a depth estimator to the ImageNet-1K dataset.

The encoder has four stages, each a stack of RGB-D blocks in which RGB and depth features interact. In the global awareness attention module of a block, the query comes from the concatenation of the RGB and depth features, while the key and value come from the RGB features alone. The local enhancement attention module applies a depth-wise convolution with a large kernel to the depth features and uses the result as attention weights on the RGB features. Only a small portion of the channels encodes depth, which the paper uses to reduce model complexity.

For semantic segmentation a lightweight Hamburger head aggregates features from the last three stages of the encoder, and only the RGB features from the encoder are used in the decoder. The paper reports 57.2% mIoU on NYU Depthv2 for its largest model, DFormer-L, with less than half of the computations of the second-best method, CMNext.

Key idea. DFormer pretrains its RGB-D backbone on image-depth pairs from ImageNet-1K instead of reusing a backbone pretrained on RGB images alone.

  • DFormer
  • DFormer-RGBD
  • RGB-D semantic segmentation
  • RGBD segmentation
  • RGB-D pretraining
  • depth map segmentation
  • RGB-D salient object detection
  • RGB-D representation learning

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{yin2024dformerrethinkingrgbdrepresentation,
      title={DFormer: Rethinking RGBD Representation Learning for Semantic Segmentation}, 
      author={Bowen Yin and Xuying Zhang and Zhongyu Li and Li Liu and Ming-Ming Cheng and Qibin Hou},
      year={2024},
      eprint={2309.09668},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2309.09668}, 
}