newcrfs
Monocular depth from a transformer encoder and a fully-connected CRF decoder run inside shifted windows.
Depth estimation · 528 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
- Depth estimation
- Parameters
- 36.4M
- Operations
- 528
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2022
- Cited by
- 46 (as of 29 October 2026)
- Authors
- Weihao Yuan, Xiaodong Gu, Zuozhuo Dai and others
- 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
- m12047
- Graph hash
- 5a3e7791005dc40fdb012f34415b8e81ae73baa5875af36dcc07f2888cddc42e
- Skeleton hash
- 7890d2e36d8b3f2d959ec56964ff624d574575d7a6ae6ae5817fc91622c05054
- Architecture hash
- ff3fe016bd30a6a3cc438f5170a9e091a472caf996ff8b62ddabc36f3efef092
- Diagram SHA-256
- e05ee553d6407f21caef11fa960703c1d72e6f3581cc6a4a0dd9ddae3a559294
- 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
How this diagram was made
menagerie.classics.newcrfs:build_newcrfs: build({}) What it is
NeW CRFs, short for Neural Window Fully-connected CRFs, is a monocular depth estimator that takes the path of conditional random field optimization rather than yet another network that regresses depth directly. Estimating depth from a single image is inherently ambiguous and ill-posed, since infinitely many 3D scenes project to the same 2D image. Fully-connected CRFs relate every node to every other and are much stronger than neighbourhood CRFs, but their cost had confined earlier deep methods to neighbour CRFs.
The trick is to split the input into windows and run the fully-connected CRF optimization inside each window, which cuts the computation enough to make FC-CRFs feasible. The pairwise potential is computed with a multi-head attention mechanism, giving a multi-head potential function that is fed to the network to output an optimized depth map. The whole model is a bottom-up-top-down structure in which this neural window FC-CRFs module is the decoder and a vision transformer is the encoder. A window shift action compensates for the isolation of each window, and global features from global average pooling layers supply the global information the windows lack.
The paper reports lower errors across all metrics on KITTI and NYUv2: on KITTI the Abs-Rel and RMS errors fell by 10.3% and 9.8%, on NYUv2 by 7.8% and 8.2%. The same method applies directly to panorama images and outperforms all previous panorama methods on MatterPort3D.
Key idea. A neural fully-connected CRF decoder for monocular depth that makes FC-CRFs tractable by optimizing within shifted windows and computing the pairwise potential with multi-head attention, on top of a vision transformer encoder.
- NeW CRFs
- NeWCRFs
- Neural Window Fully-connected CRFs
- monocular depth estimation
- depth prediction
- CRF
- KITTI
- NYUv2
- single image depth
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{yuan2022newcrfsneuralwindow,
title={NeW CRFs: Neural Window Fully-connected CRFs for Monocular Depth Estimation},
author={Weihao Yuan and Xiaodong Gu and Zuozhuo Dai and Siyu Zhu and Ping Tan},
year={2022},
eprint={2203.01502},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2203.01502},
}