CMX
A two-stream transformer segmenter that fuses an RGB image with a depth image through rectification and fusion modules.
Segmentation · 1,782 operations Checked
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
- Task
- Segmentation
- Parameters
- 66.6M
- Operations
- 1,782
- Framework
- PyTorch
- Recurrent
- No
- Published
- IEEE Transactions on Intelligent Transportation Systems (arXiv 2022)
- Cited by
- 730 (as of 30 October 2026)
- Authors
- Jiaming Zhang, Huayao Liu, Kailun Yang 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 file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m15138
- Graph hash
- e6b3ad2b739db5b81307aa8ba5635b4ece12414e1c81e73a953134a45349d86c
- Skeleton hash
- aadee047e95de4417782bd82b6dc5854fd2f47e059a26c39e9d17767352af177
- Architecture hash
- b4cc5bd7eaf678f583854802f1ef15613693d2fe15a68bc8bc0540e8457e0de8
- Diagram SHA-256
- 5e7b6c4aa9c728f37b00b8531aed598356d3c8852b44ca11fb0faaa29dbd800c
- 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
CMX is a framework for RGB-X semantic segmentation: it labels every pixel of an RGB image with the help of a second, complementary input such as depth, thermal, polarization, event or LiDAR data. The paper's argument is that earlier fusion methods were tailored to a single modality pair and are hard to extend to other combinations.
CMX is built as two parallel streams, one for RGB and one for the other modality, with two kinds of module between them. Cross-Modal Feature Rectification Modules (CM-FRM) use the features of each modality to rectify those of the other, and sit between adjacent backbone stages so that the rectified features feed the next stage. The Feature Fusion Module (FFM) then merges the two streams in two stages, cross-attention followed by mixed channel embedding. The backbone is the Mix Transformer encoder (MiT) and the decoder is an MLP decoder, both introduced in SegFormer. For RGB-Depth input the depth image is encoded in HHA format, which carries horizontal disparity, height above ground and angle.
On NYU Depth V2, an RGB-D dataset annotated with 40 semantic categories, the paper reports 54.4% mIoU for CMX with the MiT-B2 backbone. The paper also establishes an RGB-Event semantic segmentation benchmark based on the EventScape dataset.
Key idea. CMX fuses RGB with a second modality through cross-modal feature rectification and a cross-attention fusion module, giving one segmentation framework for depth, thermal, polarization, event and LiDAR inputs.
- cmx
- rgb-x semantic segmentation
- cross-modal fusion
- rgb-d semantic segmentation
- rgb-thermal segmentation
- multi-modal semantic segmentation
- cm-frm
- feature fusion module
- scene parsing
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zhang2023cmxcrossmodalfusionrgbx,
title={CMX: Cross-Modal Fusion for RGB-X Semantic Segmentation with Transformers},
author={Jiaming Zhang and Huayao Liu and Kailun Yang and Xinxin Hu and Ruiping Liu and Rainer Stiefelhagen},
year={2023},
eprint={2203.04838},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2203.04838},
}