All models

Monodepth2

A self-supervised model that predicts per-pixel depth from a single color image.

Depth estimation · 422 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 (432 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
27.9M
Operations
422
Framework
PyTorch
Recurrent
Yes
Published
ICCV 2019
Cited by
2,560 (as of 27 October 2026)
Authors
Clément Godard, Oisin Mac Aodha, Michael Firman, Gabriel Brostow
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
m18525
Graph hash
cbb383343da2dfdb70e3b47761320b38ae97a6c4422b6ac2a8a21c3bb5a5fd4c
Skeleton hash
7ec8fea0f88773501ae7df5a3a18683ee6508b7afe0b776b00c63b1839e1ab4b
Architecture hash
78b33125a8a6623f3c5736890b1fc99dca0495e91a3fd4ce7c4f6e8a346bd7a9
Diagram SHA-256
2de622b9c7325b75f1b3b5d4fcf7f911ee7127cc39e4ecbf572da803cb594d0e
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 includes the separate pose network, a ResNet18 modified to accept a pair of color images and predict a single 6-DoF relative pose, alongside the depth network.

Monodepth2 is a self-supervised model that produces a depth map from a single image, and it can be trained with monocular video, stereo pairs, or both. Self-supervision matters here because per-pixel ground-truth depth is hard to acquire at scale. The paper argues that a simple model with well-chosen design decisions gives better predictions than more complex ones.

The depth network is a standard, fully convolutional U-Net. Its encoder is a ResNet18, which the paper reports as containing 11M parameters. For monocular training, a separate pose network, also formed from a ResNet18, takes a pair of color images and predicts a single 6-DoF relative pose.

The paper proposes three changes to the architecture and the loss. The minimum reprojection loss takes, at each pixel, the minimum photometric error over the source images instead of the average. Auto-masking filters out pixels that do not change appearance from one frame to the next. The multi-scale loss first upsamples the lower resolution depth maps to the input image resolution. The paper's models use an input and output resolution of 640 × 192 unless otherwise specified.

Key idea. The paper showed that a simple depth model, trained with a minimum reprojection loss, auto-masking and full-resolution multi-scale sampling, gives better self-supervised depth maps than competing methods.

  • monodepth2
  • monodepth 2
  • digging into self-supervised monocular depth estimation
  • monocular depth estimation
  • self-supervised depth
  • depth from a single image
  • kitti depth
  • depth and pose

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

Cite the paper

@misc{godard2019diggingselfsupervisedmonoculardepth,
      title={Digging Into Self-Supervised Monocular Depth Estimation}, 
      author={Clément Godard and Oisin Mac Aodha and Michael Firman and Gabriel Brostow},
      year={2019},
      eprint={1806.01260},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1806.01260}, 
}