All models

sttr

A stereo depth network that matches pixels along epipolar lines with Transformer self- and cross-attention.

Depth estimation · 335 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 (27 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
84.7K
Operations
335
Framework
PyTorch
Recurrent
No
Published
ICCV (arXiv 2020)
Cited by
317 (as of 9 October 2026)
Authors
Zhaoshuo Li, Xingtong Liu, Nathan Drenkow and others
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
m12158
Graph hash
80de167d462e17dd1807663642818b6de94911a2dc594c9f72bd6592c353da39
Skeleton hash
507dc161bd8d69f0fa69657c90beb07ad7ac9478e3738e8835a5fc08a6029cfd
Architecture hash
ad21475004c3ca6fa32039df79c019534ce34d9403a836d22c47c0ebfdb8c040
Diagram SHA-256
bf6529882c458b24f5052acbe996364c824b73111b2b5835de793bcc173382b2
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

menagerie.classics.sttr_stereo:build_sttr: build({})

What it is

STTR (STereo TRansformer) estimates stereo depth from a sequence-to-sequence correspondence perspective, replacing cost volume construction with dense pixel matching that uses position information and attention. The paper names three advantages: it relaxes the limitation of a fixed disparity range, identifies occluded regions with confidence estimates, and imposes uniqueness constraints during matching.

The network first extracts features from the stereo images with a shared feature extractor. A Transformer then alternates self-attention, between pixels along the epipolar line in the same image, and cross-attention, between pixels along corresponding epipolar lines in the left and right images. Positions are encoded as relative pixel distances instead of absolute pixel locations. In the last cross-attention layer the most attended pixel gives the raw disparity, with optimal transport added for compliance with the uniqueness constraint. A context adjustment layer then refines the disparity with information across epipolar lines, conditioned on the left image.

The paper's experiments use 6 self- and cross-attention layers. The paper reports that STTR trained only on synthetic images also generalizes well to other domains without refinement. On the KITTI 2015 benchmark it reports that STTR performs comparably to several competing approaches.

Key idea. STTR treats stereo matching as sequence-to-sequence correspondence, replacing cost volume construction with dense pixel matching using position information and attention.

  • STTR
  • STereo TRansformer
  • stereo depth estimation
  • disparity estimation
  • stereo matching
  • epipolar attention
  • occlusion detection
  • sequence-to-sequence stereo

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

Cite the paper

@misc{li2021revisitingstereodepthestimation,
      title={Revisiting Stereo Depth Estimation From a Sequence-to-Sequence Perspective with Transformers}, 
      author={Zhaoshuo Li and Xingtong Liu and Nathan Drenkow and Andy Ding and Francis X. Creighton and Russell H. Taylor and Mathias Unberath},
      year={2021},
      eprint={2011.02910},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2011.02910}, 
}