Paper commentary
Deeper Depth Prediction with Fully Convolutional Residual Networks
A fully convolutional residual network predicts depth from a single image
- Problem Earlier CNN depth models kept the fully connected layers of classification networks. Those layers scale badly when the output is a dense depth map.
- Method The authors replace the fully connected layers with a fully convolutional ResNet-50 encoder and four up-projection stages. They train it end-to-end with the reverse Huber loss.
- Results The model reaches rel 0.127 on NYU Depth v2, against 0.158 for Eigen and Fergus as originally reported.
Why fully connected heads are costly for dense depth
Depth from one RGB image is underdetermined, because an intensity or colour reading alone does not fix how far a point is, so the network has to draw on monocular cues spread across the scene. Earlier CNN depth models, including the work of Eigen and colleagues, keep the fully connected layers of classification networks. These layers see the whole image but scale badly when the output is a dense map.
The receptive field at the last convolutional layer determines whether a network without dense layers can still see the global layout that monocular cues require. AlexNet's 151×151 receptive field allows only very low-resolution inputs, and VGG-16's 276×276 still limits the input resolution for the 304×228 input used here. ResNet-50 has a 483×483 receptive field, large enough to cover the whole input, so it is the encoder the proposed network is built on.
Encoder and up-sampling stages
Its weights start from models pre-trained on ILSVRC image classification, while the new up-sampling layers start from random filters, and the whole network is trained end-to-end.
The decoder is a chain of four up-sampling stages, each doubling the feature map size, so the smallest map is enlarged 16 times. Dropout follows the up-sampling blocks, and a final convolution produces the depth prediction. With four stages, the ResNet-based models output 160×128 pixels, roughly half the input resolution.
Unpooling, up-convolution and up-projection
Each up-sampling step begins with unpooling, which doubles the map by placing each value at the top-left of a 2×2 block of zeros. A 5×5 convolution and a ReLU activation follow. The 5×5 filter touches only some of its taps at each position of the enlarged grid, and the authors call this simple block an up-convolution.
The up-projection keeps the main branch and adds a 3×3 convolution after the up-convolution, plus a projection branch that carries the lower-resolution map forward to the result. The projection branch needs its own up-convolution because the sizes differ. The unpooling is applied once and shared by both branches, and each branch then applies its own 5×5 convolution.
This extends the skip connection idea from ResNet to up-convolutions, so high-level information can pass forward while the feature maps grow.
Fast up-convolutions
After unpooling, three of every four entries of the enlarged map are zeros, so a 5×5 convolution spends much of its work on zero products. Depending on where the filter sits on the unpooled grid, only some of its weights meet non-zero entries. These weights fall into four non-overlapping groups, labelled A, B, C and D.
The 5×5 filter is rearranged into four smaller filters of sizes 3×3, 3×2, 2×3 and 2×2, each applied to the original feature map. Interleaving the outputs of the four filters gives the same result as unpooling followed by the 5×5 convolution, without the zero multiplications. The same reformulation applies to the up-projection operation.
Reverse Huber loss
The baseline is the squared Euclidean (L2) loss between predicted and ground-truth depth values, which the authors found to give good results in their tests. The reverse Huber loss is defined on a residual x with threshold \(c\) as follows.
\[ B(x)=\begin{cases} |x| & |x|\le c \\ \dfrac{x^2+c^2}{2c} & |x|>c \end{cases} \] Inside the threshold the loss is the absolute residual, and outside it the loss is quadratic. The two pieces meet continuously and with a matching first derivative at \(c\). The threshold is recomputed at every gradient step as 20% of the largest absolute residual over all pixels in the batch.
The quadratic part keeps a high weight on pixels with large residuals, unlike a robust loss such as Tukey's biweight, which ignores them. For small residuals the gradient is larger than under L2, which the authors connect to the rel and δ1 measures being more sensitive to small errors. The authors observe a heavy-tailed distribution of depth values in both datasets, which they relate to Zwald and Lambert-Lacroix's case for berHu, and they note that predicting log depth moves a log-normal distribution toward a Gaussian.
NYU Depth v2 data and training schedule
The raw NYU Depth v2 set has 464 scenes captured with a Microsoft Kinect, with an official split of 249 training and 215 test scenes. Equally spaced frames from each training sequence give about 12k unique images, and offline augmentation brings the set to about 95k RGB-D pairs. The authors contrast this with about 120k unique images for the models of Eigen and colleagues, and with 800k samples in the patch-wise approach of Li et al.
Frames of 640×480 are down-sampled to half resolution and centre-cropped to 304×228 inputs, following Eigen et al. Training uses a batch size of 16 for about 20 epochs, starting at a learning rate of 10−2 for all layers and reducing it every 6 to 8 epochs when plateaus appear, with momentum 0.9. Newly added decoder layers are initialized from a normal distribution with zero mean and 0.01 variance.
Augmentation uses small rotations, scaling, colour transformations and flips with a 0.5 chance, followed by random crops to the input size. Predictions are bilinearly up-sampled to 640×480 and compared with ground truth on the 654-image test subset, with invalid pixels filled in.
Encoder, decoder and loss variants on NYU Depth v2
The authors attribute the weaker AlexNet result to its small field of view, which does not capture the global information that the removed fully connected layers provided.
Up-projection also outperforms deconvolution with successive 2×2 kernels, as the authors report.
The authors state that berHu gives lower error than L2 in all shown experiments, with the larger gain in rel and δ1. The VGG up-convolution row is an exception in rms: 0.790 under berHu against 0.746 under L2, while its rel is 0.194 under both losses.
Against published NYU Depth v2 results
Table 2 places the ResNet-UpProj row against values that the authors of each earlier paper reported. Against Eigen and Fergus, the closest multi-scale baseline, rel is 0.127 against 0.158, rms is 0.573 against 0.641, and δ1 is 0.811 against 0.769. On δ2 the values are 0.953 against 0.950, and δ3 is 0.988 for both.
These numbers come from different papers, so they are not a controlled re-run and each inherits its own protocol.
Speed and training data
For a single image, one up-convolutional block takes 1.5 ms and one up-projection takes 0.14 ms. The authors say this exceeds the theoretical speed-up of 4, and attribute it to smaller filter sizes benefiting more from linearization inside cuDNN.
On the authors' setup, whole-network prediction for one image takes 55 ms with up-projection and 78 ms with up-convolutions. With a batch size of 16, the time falls to 14 ms per image with up-projection and 28 ms with up-convolutions. The authors present this as enabling real-time processing of images, for example from a web camera.
The NYU training set has about 95k RGB-D pairs from about 12k unique frames, while the models of Eigen and colleagues use about 120k unique images. The pair count and the unique-image count are different units, so this comparison is indicative only.
Make3D outdoor results
Make3D has 400 training and 134 test images, and its ground-truth depth maps are only 305×55, against 1704×2272 RGB images. Inputs are resized to 345×460 and the RGB input to the network is halved, and the ResNet-UpProj model is trained for 30 epochs with batch size 16 on about 15k augmented samples.
The learning rate is 0.01 with berHu and starts at 0.005 with L2, with momentum 0.9. Pixels beyond 70m are masked out in training, and errors are computed only in regions under 70m, because the sky and other long-range pixels are inaccurate in the ground truth.
Table 3 gives rel 0.176, rms 4.46 and log10 0.072 for the berHu model, and rel 0.223, rms 4.89 and log10 0.089 for the L2 model. The lowest earlier row, Li et al., has rel 0.278, rms 7.19 and log10 0.092. The berHu margin over L2 is larger on this dataset, and berHu improves the relative error more than the rms. Liu et al. remove sky pixels by a per-pixel sky classification, which the authors note as part of their comparison setting.
Using predicted depth in SLAM
Frame-to-frame tracking uses Gauss-Newton optimization on pixelwise intensity differences between consecutive frames, and depth is fused into a global model with point-based fusion. Reconstructions are built from depth predicted by ResNet-UpProj, by AlexNet and by VGG, and from the ground truth, on part of an NYU Depth sequence.
The comparison is qualitative. The authors describe the ResNet-UpProj reconstruction as much more accurate than the AlexNet and VGG ones, and the text gives no numeric SLAM error. The authors link this to the edge-preserving quality of the up-projection output seen in the qualitative depth comparison. To the authors' knowledge, this is the first SLAM reconstruction based on depth predictions from single images.
Limitations and open questions
The fully connected ResNet with a 160×128 output has so many parameters that its convergence becomes harder. At a 64×48 output the fully connected ResNet achieves similar performance to Eigen and Fergus while using 10 times fewer data, according to the authors.
The fully convolutional VGG variant performs worse than the multi-scale VGG model of Eigen and Fergus, and the authors attribute this mainly to the refinement scales. The proposed model is single-scale, so the multi-scale refinement that the authors credit for the stronger model is not part of it.
Make3D errors cover only regions under 70m, because the low-resolution ground truth has long-range inaccuracies. The authors do not claim that their single-image accuracy matches SfM and monocular SLAM, which use temporal consistency. Applying the method to low-textured surfaces such as walls and floors was not tested in this paper. Experiments cover only NYU Depth v2 and Make3D.
Paper info
- Authors
- Iro Laina, Christian Rupprecht, Vasileios Belagiannis, Federico Tombari, Nassir Navab
- Venue
- arXiv · Preprint
- First published
- 2016-6-1
- Added
- 2026-11-12
- Updated
- 2016-9-19
- Version
- v2
- arXiv
- 1606.00373
- Category
- cs.CV
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
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
Iro Laina, Christian Rupprecht, Vasileios Belagiannis, Federico Tombari, Nassir Navab (2016). Deeper Depth Prediction with Fully Convolutional Residual Networks. arXiv:1606.00373v2. https://arxiv.org/abs/1606.00373v2
BibTeX
@misc{laina2016deeper,
title = {{Deeper Depth Prediction with Fully Convolutional Residual Networks}},
author = {Iro Laina and Christian Rupprecht and Vasileios Belagiannis and Federico Tombari and Nassir Navab},
year = {2016},
eprint = {1606.00373},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1606.00373v2}
}