# Depth Map Prediction from a Single Image using a Multi-Scale Deep Network

Two stacked networks predict depth from one image more accurately than Make3D

David Eigen, Christian Puhrsch, Rob Fergus · arXiv · 2014-6-9

- **Problem** Depth from a single image has no second view to match points against, so it must rely on monocular cues. The overall scale of the scene also stays ambiguous, and an elementwise error mixes that scale with depth relations.
- **Method** The method stacks two deep networks. A coarse network predicts a global depth map from the whole image, and a fine network refines it locally, trained with a scale-invariant error.
- **Results** On NYU Depth the model reaches 0.219 RMSE (log, scale inv.), against 0.304 for Make3D. On KITTI it reaches 0.270 RMSE (log), against 0.361 for Make3D.

## Why one image is harder than a stereo pair

Stereo depth can be computed once corresponding points are found across two views, and local appearance features often supply those correspondences. A single image offers no second view, so depth has to come from monocular cues such as line angles, perspective, object sizes, image position and atmospheric effects, and a wide view of the scene is needed to combine them.

Many different three-dimensional scenes could have produced the same picture, so the problem is ill-posed, but most of those scenes are physically implausible, which keeps accurate prediction possible. The remaining ambiguity is the global scale: room and furniture sizes vary moderately across the data, and an elementwise error mixes that scale with the relations between depths.

The authors respond with a coarse global predictor, a local refinement stage, and an error that checks depth relations rather than absolute scale.

## How the coarse and fine stacks connect

The coarse-scale network has five convolution and pooling stages followed by two fully connected layers. Because its upper layers are fully connected, every output can draw on the whole image, while the earlier layers pool features down to a small spatial size so that information from distant parts of the image can be combined.

The output is at 1/4 of the input resolution, and the input is itself half the size of the original dataset image. Instead of predicting on the small top feature map and upsampling it by hand, the top fully connected layer learns its own templates over the larger output area, 74x55 for NYU Depth, so the network learns how to upsample from the features.

The fine-scale network is convolutional only, with one pooling stage for its first-layer edge features, and each of its output units sees a 45x45 pixel patch of the input.

Hidden layers use rectified linear units, the coarse output layer is linear, and dropout is applied to the fully connected layer 6 of the coarse network. The convolutional layers 1 to 5 of the coarse network start from ImageNet pretraining, which the authors found better than random initialization, though the gap was not large.

## Scale-invariant error and training loss

The scale problem is quantified on Make3D: its RMSE (log) on NYUDepth is 0.41, and substituting the mean log depth of each prediction with the ground-truth mean lowers it to 0.33, a 20% relative improvement. For the authors' system the same two numbers are 0.28 and 0.22, so the average scale accounts for a large part of the error in both cases.

For a prediction y and ground truth y\* over n pixels, the error first shifts every log prediction by one shared offset alpha, chosen to minimize the squared difference, and then averages the squared result. \\\[ D(y,y^\*)=\\frac{1}{n}\\sum\_{i=1}^{n}\\left(\\log y\_i-\\log y^\*\_i+\\alpha(y,y^\*)\\right)^2 \\\] Here alpha equals the mean of the log ground truth minus the mean of the log prediction, so multiplying the prediction by any positive constant leaves the error unchanged.

With d\_i equal to log y\_i minus log y\*\_i, the same quantity can be written as a mean of d\_i squared minus the squared mean of the d\_i, which is a linear-time computation. \\\[ D(y,y^\*)=\\frac{1}{n}\\sum\_i d\_i^2-\\frac{1}{n^2}\\left(\\sum\_i d\_i\\right)^2 \\\] The cross term rewards errors that point in the same direction and penalizes errors that cancel, so a prediction whose mistakes agree with one another scores better.

The same expression, with a weight lambda between 0 and 1 on the second term, is used as the per-sample training loss, and the network outputs log depth. \\\[ L(y,y^\*)=\\frac{1}{n}\\sum\_i d\_i^2-\\frac{\\lambda}{n^2}\\left(\\sum\_i d\_i\\right)^2 \\\] Lambda 0 gives the elementwise squared log error and lambda 1 gives the scale-invariant error, and the reported model uses lambda equal to 0.5.

Pixels without a target depth are left out, and n is replaced by the number of pixels that have one.

## Training data and augmentation

NYU Depth contains 464 indoor scenes recorded as video with a Microsoft Kinect camera, and the official split uses 249 scenes for training and 215 for testing. Training draws on the raw data, which leaves depth values missing where none were recorded, and RGB and depth frames are matched by their closest capture times. Depth values equal to the minimum or maximum of each image are also masked, to remove invalid regions from windows, doorways and specular surfaces.

The coarse network is trained for 2M samples with batches of 32, then held fixed while the fine network is trained for 1.5M samples, and the NYU Depth test set has 694 images with filled-in depth.

For KITTI, 56 scenes from the city, residential and road categories are used, with 28 for training and 28 for testing. Depth is sampled at irregular points by a rotating scanner, so when more than one depth falls on a pixel the one closest to the RGB capture time is kept, and only the bottom part of each image has depth, although the full image is fed to the coarse network.

The coarse KITTI model is trained for 1.5M samples and the fine model for 1M, using the same learning rates as NYU Depth.

Scale changes divide the depths by the scale factor, horizontal flips are applied with probability 0.5, and in-plane rotation and color scaling are also used. Translations are kept although they do not preserve the world geometry, since the authors found the extra data helped, and test images use a single center crop at scale 1.0.

## NYU Depth comparison

On NYU Depth the Coarse + Fine model reaches 0.219 RMSE (log, scale inv.), against 0.304 for Make3D, and the mean depth image scores 0.304 on the same metric in the table. Its scale-dependent RMSE (log) is 0.285, against 0.430 for Make3D, and its absolute relative difference is 0.215, against 0.408 for the mean depth image.

The authors report an average 35% relative gain over the runner-up across the metrics. The gain comes from using the raw dataset, which the authors say contains far more examples than the data used by the other approaches.

Within the authors' own models, the fine stage barely changes the numbers: the coarse output scores 0.221 on RMSE (log, scale inv.) and 0.283 on RMSE (log), while the Coarse + Fine model scores 0.219 and 0.285. Its visible effect is in the depth maps, where surface boundaries become sharper and align more closely with local detail, although some texture edges are also picked up.

Make3D suffers on this dataset because its assumption of horizontally aligned ground planes does not hold here, and the authors say the comparison shows their system predicts both relations and absolute values better.

Training with lambda equal to 0.5 gave no numeric gain over lambda equal to 0, but it produced slightly more detailed outputs in the qualitative results.

## KITTI comparison

On KITTI the Coarse + Fine model reaches 0.270 RMSE (log), against 0.361 for Make3D, and 0.246 on RMSE (log, scale inv.), against 0.359 for Make3D. Across all metrics the authors report an average 31% relative gain over Make3D, with a 25% gain in both the scale-dependent and scale-invariant RMSE.

Make3D is a strong baseline here because its training images are horizontally aligned, and it was trained on a subset of 700 images (25 per scene) because it could not scale further.

The fine stage again changes the error numbers little: RMSE (linear) is 7.156 with it and 7.216 for the coarse output, and RMSE (log) is 0.270 against 0.273. Its sharper transitions, particularly near the road edge, are visible qualitatively, though the authors describe the changes as somewhat limited.

## Limitations

On NYU Depth the fine network does not improve the error metrics, and some texture edges are picked up in the refined maps. On KITTI the gain from the fine stage is small, and using the scale-invariant error as a loss has little visible effect there.

The authors attribute the KITTI limitation to misalignment between depth targets and images, caused by the rotating scanner, which blurs edges into random positions the network averages over.

The KITTI comparison with Make3D rests on a Make3D model trained on 700 images, and the NYU Depth test uses 694 images with filled-in depth. The authors plan to add surface normal prediction and to extend depth maps to the full input resolution through repeated local refinement.

## Paper info

- **Authors**: David Eigen, Christian Puhrsch, Rob Fergus
- **Venue**: arXiv · Preprint
- **First published**: 2014-6-9
- **Added**: 2026-11-12
- **Updated**: 2014-6-9
- **Version**: v1
- **arXiv**: 1406.2283
- **Category**: cs.CV
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1406.2283v1) · [PDF ↗](https://arxiv.org/pdf/1406.2283v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

David Eigen, Christian Puhrsch, Rob Fergus (2014). Depth Map Prediction from a Single Image using a Multi-Scale Deep Network. arXiv:1406.2283v1. https://arxiv.org/abs/1406.2283v1

**BibTeX**

```
@misc{eigen2014depth,
  title = {{Depth Map Prediction from a Single Image using a Multi-Scale Deep Network}},
  author = {David Eigen and Christian Puhrsch and Rob Fergus},
  year = {2014},
  eprint = {1406.2283},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1406.2283v1}
}
```

## Other paper commentary

- [KPConv: Flexible and Deformable Convolution for Point Clouds](https://refivu.com/en/papers/aadc9ee6-ee0e-485d-ae5a-841bc5fcdfb3-kpconv-flexible-and-deformable-convolution-for-point-clouds.md)
- [RandAugment: Practical automated data augmentation with a reduced search space](https://refivu.com/en/papers/8b56147c-5b9a-4e55-85b2-0f0992053956-randaugment-practical-automated-data-augmentation-with-a.md)
- [MnasNet: Platform-Aware Neural Architecture Search for Mobile](https://refivu.com/en/papers/9898212b-ee8e-448d-817e-c0047d43e15a-mnasnet-platform-aware-neural-architecture-search-for-mobile.md)
- [What Uncertainties Do We Need in Bayesian Deep Learning for Computer Vision?](https://refivu.com/en/papers/6f981a48-48a7-46de-b89d-79c37884de4f-what-uncertainties-do-we-need-in-bayesian-deep.md)
- [FaceForensics++: Learning to Detect Manipulated Facial Images](https://refivu.com/en/papers/715249f5-5289-4880-bf0c-b3dbd3630c47-faceforensics-learning-to-detect-manipulated-facial-images.md)
- [Efficient Multi-Scale 3D CNN with Fully Connected CRF for Accurate Brain Lesion Segmentation](https://refivu.com/en/papers/5fa28c90-a21c-4b80-9a3e-409a47ddd061-efficient-multi-scale-3d-cnn-with-fully-connected.md)
- [On Hyperparameter Optimization of Machine Learning Algorithms: Theory and Practice](https://refivu.com/en/papers/e35d8e99-a32c-4e33-acef-50ee792021f2-on-hyperparameter-optimization-of-machine-learning.md)
- [Lost in the Middle: How Language Models Use Long Contexts](https://refivu.com/en/papers/990be3e6-ce8b-473a-94d1-735a4cb6a76f-lost-in-the-middle-how-language-models-use.md)
- [InfoGAN: Interpretable Representation Learning by Information Maximizing Generative Adversarial Nets](https://refivu.com/en/papers/9891b5b5-2ddd-42e7-a5df-4b7e02d593dc-infogan-interpretable-representation-learning-by-information.md)
- [Robust Recovery of Subspace Structures by Low-Rank Representation](https://refivu.com/en/papers/14c27646-6e22-4f5b-b820-67e75508bf84-robust-recovery-of-subspace-structures-by-low-rank.md)
- [Self-Attention Generative Adversarial Networks](https://refivu.com/en/papers/819d5b11-1213-4c83-93af-58db3c44b12f-self-attention-generative-adversarial-networks.md)

## Terms in this paper

- [ImageNet](https://refivu.com/en/terms/5eadad128667-imagenet)
- [dropout](https://refivu.com/en/terms/db73f75bbdd3-dropout)
- [Data Augmentation](https://refivu.com/en/terms/cc5618231f4a-data-augmentation)
- [KITTI](https://refivu.com/en/terms/300e3e1e2f51-kitti)
- [training loss](https://refivu.com/en/terms/684fcdc4da77-training-loss)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/c95f6db5-ef02-41ca-945a-e4e0afa1fb1c-depth-map-prediction-from-a-single-image-using)
