All models

MonoViT

Self-supervised monocular depth network that mixes convolutions with Transformer blocks in its encoder.

Depth estimation · 2,250 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 2,250 operations (8 KB) 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
27.9M
Operations
2,250
Framework
PyTorch
Recurrent
No
Published
3DV 2022
Cited by
287 (as of 28 October 2026)
Authors
Chaoqiang Zhao, Youmin Zhang, Matteo Poggi 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
m18524
Graph hash
71e83fd9ee246e84571066823c7d9456fc61ead321fbdd89c45ccbabc523e884
Skeleton hash
3b3e7295b89bb20aa8ea4cea8ef25ae56eb51cd58ea5d6e2a7620d2c199f779f
Architecture hash
3677cb0c4413de7a72dc3f8ef13282301f700916893e4f8bbe10790f85df1afb
Diagram SHA-256
e51cecdad4116060541fe52c0d516882705aaca0bd9dbb87fc9d33223e5305cc
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

MonoViT estimates depth from a single image and is trained without depth labels, using unlabeled monocular videos and an image reconstruction objective. Its argument is that convolutional networks have a limited receptive field and so reason only locally, which the authors address by combining plain convolutions with Transformer blocks.

The depth network is an encoder-decoder whose encoder follows the design of MPViT in five stages: a convolutional stem, then four stages of Multi-Path Transformer Blocks. Inside each block, a multi-scale patch embedding feeds four parallel branches, three Transformer blocks and one convolutional block, and a 1×1 convolution fuses their outputs for the next stage. The Transformer branches use self-attention in a factorized form. The decoder fuses features across scales with spatial and channel attention, and four heads, each two convolutional layers and a sigmoid, predict disparity (inverse depth) at full, 1/2, 1/4 and 1/8 resolution.

During training a separate PoseNet with the lightweight structure of ResNet18 takes a pair of concatenated images and outputs the 6 DoF relative pose between adjacent video frames. The paper reports results on the KITTI dataset and tests generalization on Make3D and DrivingStereo. The authors note that their code is built on Monodepth2.

Key idea. MonoViT combines convolutions with Transformer blocks in a self-supervised monocular depth network so that it can reason both locally and globally.

  • MonoViT
  • monocular depth estimation
  • self-supervised depth estimation
  • vision transformer depth
  • disparity prediction
  • KITTI depth
  • depth from a single image

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

Cite the paper

@misc{zhao2022monovitselfsupervisedmonoculardepth,
      title={MonoViT: Self-Supervised Monocular Depth Estimation with a Vision Transformer}, 
      author={Chaoqiang Zhao and Youmin Zhang and Matteo Poggi and Fabio Tosi and Xianda Guo and Zheng Zhu and Guan Huang and Yang Tang and Stefano Mattoccia},
      year={2022},
      eprint={2208.03543},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      doi={https://doi.org/10.1109/3DV57658.2022.00077},
      url={https://arxiv.org/abs/2208.03543}, 
}