All models

UniMatch (Optical Flow + Stereo + Depth unified)

A unified matching model that predicts optical flow, stereo disparity or depth from an image pair.

Depth estimation · 1,998 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

This diagram has 1,998 operations (1.6 MB) and is drawn when you ask.

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
7.4M
Operations
1,998
Framework
PyTorch
Recurrent
Yes
Published
IEEE TPAMI 2023
Cited by
251 (as of 30 October 2026)
Authors
Haofei Xu, Jing Zhang, Jianfei Cai 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
m21197
Graph hash
83182d8f3b146a8db51aec635f0eca43f05dba8e973b55551e4898c2face584f
Skeleton hash
3739e2fe1427615bffb895bbfc526ec52c1559d801fe7161ded1dd45f025c3b5
Architecture hash
a055d3ca20709c1b37fb223b8acdd106c03eea0d12cb05cc3eebf34801529ac4
Diagram SHA-256
fe0b161a54073adf90fd451712c384316d4bdad6ad3c91ef2da03e77bf40b3e8
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

This model is the unified architecture set up for optical flow, which it predicts from an image pair.

GMStereo and UniMatch come from one unified formulation and model for three motion and 3D perception tasks: optical flow, rectified stereo matching and unrectified stereo depth estimation from posed images. Instead of a specialized architecture for each task, the paper formulates all three as a unified dense correspondence matching problem, solved with a single model by directly comparing feature similarities. That formulation calls for discriminative feature representations, which the authors obtain with a Transformer, in particular the cross-attention mechanism.

Because the model architecture and parameters are shared across tasks, the unified model enables cross-task transfer. The paper reports outperforming RAFT on the Sintel dataset with the unified model, and its final model adds a few task-specific refinement steps. The authors describe the work as a substantial extension of their earlier conference paper, GMFlow.

Key idea. The paper formulates optical flow, rectified stereo matching and unrectified stereo depth estimation as one dense correspondence matching problem solved by a single model that compares feature similarities.

  • gmstereo
  • unimatch
  • gmflow
  • gmdepth
  • unifying flow stereo and depth estimation
  • stereo matching
  • optical flow
  • depth estimation
  • dense correspondence matching
  • global matching

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

Cite the paper

@misc{xu2023unifyingflowstereodepth,
      title={Unifying Flow, Stereo and Depth Estimation}, 
      author={Haofei Xu and Jing Zhang and Jianfei Cai and Hamid Rezatofighi and Fisher Yu and Dacheng Tao and Andreas Geiger},
      year={2023},
      eprint={2211.05783},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2211.05783}, 
}