Paper commentary
Predicting Depth, Surface Normals and Semantic Labels with a Common Multi-Scale Convolutional Architecture
Single multi-scale ConvNet predicts depth, surface normals and semantic labels
- Problem Depth, surface normals and semantic labels are usually predicted by separate methods. Each is a per-pixel output, but earlier ConvNets for dense outputs relied on local features or proposal regions.
- Method The authors use a three-scale ConvNet that regresses each output map directly from the RGB image. Each scale refines the coarse prediction from the one before, and only the output channels and loss change per task.
- Results The model reached a depth delta-1.25 score of 0.769 and abs rel of 0.158 on NYUDepth v2, against 0.614 and 0.214 for Eigen et al.
One architecture for three pixel-map tasks
The study asks whether a single convolutional network can regress several pixel-maps from one RGB image: depth, surface normals and semantic labels. Each of these outputs stores one value or label per pixel, so moving between tasks mainly means choosing the output channels and the training loss. The authors argue that work on a new task then concentrates on defining a training set and a loss, which is why a shared regressor is attractive.
Earlier ConvNet work on dense outputs mostly used local features or descriptors of discrete proposal regions, whereas this network combines local and global views to predict several output types.
Three scales applied in sequence
The model starts from the two-stage depth design of Eigen et al. [8] and changes it in three ways: it is deeper, it adds a third scale at higher resolution, and it passes multichannel feature maps between scales instead of predictions. Passing feature maps lets scales 1 and 2 be trained jointly from the start, which the authors report simplified training and improved results.
The final output is at half the network input resolution, which is 147× 109 for NYUDepth.
Scale 1 gives every output location a full-image field of view by using two fully connected layers. Its last layer is reshaped to a 1/16-scale grid of 64 features and upsampled by a factor of 4 to a 1/4-scale map of 74× 55. The authors describe this as a constrained form of one large fully connected layer, which would be too large and would give blurry output from the constrained input features.
The 1/16-scale grid is twice the size of the 1/32-scale final convolutional features of the coarse stack, and each output location connects to all image features. This is the property the authors single out as important for depth and normals. Two model sizes differ only in this scale: one uses an ImageNet-trained AlexNet and the other is initialized from the Oxford VGG network.
Scale 2 combines the coarse feature maps with a single convolution and pooling branch run at finer stride, giving a narrower but more detailed view. For NYUDepth it outputs a 55x74 prediction, with the channel count set by the task.
Task-specific losses on a shared output
For depth, the network predicts log depth D and the loss compares it with the ground truth D*, using the difference d_i = D_i − D*_i over valid pixels, where n is the number of valid pixels. \[ L_{depth}(D,D^*) = \frac{1}{n}\sum_i d_i^2 - \frac{1}{2n^2}\left(\sum_i d_i\right)^2 + \frac{1}{n}\sum_i \left[(\nabla_x d_i)^2 + (\nabla_y d_i)^2\right] \] The first two terms are an L2 term and a scale-invariant difference term, which follows the loss of Eigen et al.
[8]. The third term adds a first-order matching term on the horizontal and vertical image gradients of the difference. The authors report that the gradient term makes predicted depth follow depth gradients more closely, with no loss of L2 performance.
For normals, the output has three channels, each pixel's vector is normalized to unit L2 norm, and gradients pass back through that normalization. \[ L_{normals}(N,N^*) = -\frac{1}{n}\sum_i N_i\cdot N^*_i \] The loss is a negative mean dot product between predicted and ground-truth normals over valid pixels, so minimizing it pushes each predicted normal toward its ground-truth direction.
Ground-truth normals are computed from depth with the method of Silberman et al. [31], which fits least-squares planes to neighbouring points in the point cloud.
For semantic labeling, a pixelwise softmax produces one channel per class, and the loss is a per-pixel cross-entropy. \[ L_{semantic}(C,C^*) = -\frac{1}{n}\sum_i C^*_i \log(C_i), \qquad C_i = \frac{e^{z_i}}{\sum_c e^{z_{i,c}}} \] On NYUDepth, the ground-truth depth and normals are added as input channels. Each of RGB, depth and normals is convolved with its own set of 32× 9× 9 filters before the results are concatenated with the previous scale's output.
The authors tried the HHA encoding of Gupta et al. [14] and saw no benefit, so they feed depth and xyz-normals directly.
Two-phase training and shared hyperparameters
Training runs in two phases with SGD. Scales 1 and 2 are trained jointly first, and then their parameters are fixed while Scale 3 is trained. Scale 3 has four times as many pixels as Scale 2, so the authors train it on random crops of size 74x55. The cropped RGB input and the Scale 2 prediction go through the Scale 3 network, and the reported speedup is about a factor of 3, including the cost of inference for the first two scales.
The authors report that cropping gives about the same error, or slightly better error, than full-image training.
Scale 1 convolutional layers start from ImageNet weights, while its fully connected layers and all layers of Scales 2 and 3 are initialized randomly. Learning rates and initialization are shared across the three tasks. The hyperparameters were first tuned on depth and then checked on a validation set of 50 scenes for the other tasks. Three settings differ by task: the normals learning rate is 10 times larger, the relative rates of layers 1.6 and 1.7 are 0.1 each for depth and normals but 1.0 and 0.01 for labels, and the dropout rate of layer 1.6 is 0.5 for depth and normals but 0.8 for labels.
Batches hold 32 images for the AlexNet-initialized model and 16 for the VGG-initialized model, which the authors attribute to memory limits.
Online augmentation applies random scaling, in-plane rotation, translation, color changes, flips and contrast changes, and the same transform is applied to RGB, depth, normals and labels. Transforms on targets must respect the geometry: flips and rotations also flip or rotate the normals, and scaling the image by s divides the depths by s while multiplying the z component of the normals and renormalizing.
Sharing computation between depth and normals
A combined model uses one Scale 1 stack with separate Scale 2 and Scale 3 stacks, so it predicts depth and normals together from an RGB image. This is reported to give a 1.6x speedup relative to using two separate models. The authors also tried to enforce agreement between predicted normals and finite differences of predicted depth. That constraint improved the finite-difference normals but did not improve either task individually, so the final combined model does not use it.
The authors state that all three outputs can be generated at test time at ∼30Hz. The text gives this rate without hardware details.
Depth on NYUDepth v2
The model is trained on the full raw NYUDepth v2 distribution using the official scene split, and tested on the common distribution depth maps, including filled-in areas, within the rectangle where depth projection is valid. Network outputs are bilinearly upsampled to 640x480, and the missing border is filled by a cross-bilateral filter.
Ours (VGG) reached δ<1.25 of 0.769 and abs rel of 0.158, against 0.614 and 0.214 for Eigen et al. [8], with higher being better for δ<1.25 and lower being better for abs rel. The AlexNet variant reached 0.697 and 0.198 on the same two measures, so the VGG version is ahead on both and the authors attribute the gap to model size. The authors report best scores on all metrics in the table, and they point to sharper detail than Eigen et al.
[8] in the qualitative examples.
Surface normals against two ground-truth constructions
The normals are compared with 3DP, Ladicky et al. [21], Fouhey et al. [11] and Wang et al. [38], using both the ground truth built as in [21] and the one built as in [31]. The construction in [21] smooths more aggressively and gives flatter areas, while the construction in [31] is noisier but keeps more detail. The metrics are the mean and median angle to the ground truth over unmasked pixels, and the percentage of pixels within 11.25, 22.5 and 30 degrees.
Against the [21] ground truth, Ours (VGG) reached a mean angle distance of 20.9 and a median of 13.2, against 26.9 and 14.8 for Wang et al. [38]. The AlexNet variant reached a mean of 23.7 but a median of 15.5, which is above Wang et al.'s median of 14.8. Against the [31] ground truth, Ours (VGG) reached a mean of 22.2 and Ours (AlexNet) reached 25.9, against 28.8 for Wang et al.
[38].
Semantic labels on NYUDepth v2 at 4, 13 and 40 classes
The 4-, 13- and 40-class sets follow [31], [6] and [13]. The 4-class task uses the labels floor, structure, furniture and props. The 4- and 13-class tasks are scored with pixelwise and per-class accuracy, and the 40-class task also with frequency-weighted and flat Jaccard averages. All NYUDepth labeling runs feed ground-truth depth and normals as inputs.
On the 4-class task, Ours (VGG) reached pixelwise accuracy of 83.2 and per-class accuracy of 82.0, against 72.3 and 71.9 for Mueller et al. [26]. On the 13-class task, Ours (VGG) reached pixelwise accuracy of 75.4, against 54.2 for Hermans et al. [17]. Khan et al. use a different overlapping label set, and that row is marked accordingly.
On the 40-class task, Ours (VGG) reached average Jaccard of 34.1 and Ours (AlexNet) reached 30.8, against 34.0 for Long et al. [24] and 28.6 for Gupta et al. '14 [14]. Long et al. has higher frequency-weighted Jaccard, and the AlexNet variant is below Long et al. on average Jaccard. The authors note that the model uses no superpixels or piecewise constant assumption, yet its outputs form large constant regions most of the time.
Sift Flow and Pascal VOC
Sift Flow contains outdoor cityscapes and landscapes in 33 categories. The NYUDepth kernel sizes and learning rates are kept, and only the output sizes change to match the new image sizes. Ours (VGG) (1), without reweighting, reached pixelwise accuracy of 86.8, against 85.1 for Long et al. [24], but its average Jaccard of 38.8 is below the 39.5 reported for Long et al.
The authors describe the smaller model as substantially ahead of all methods except Long et al., and the larger model as similar to Long et al.
For Pascal VOC, models are trained on the 2011 training set augmented with 8498 images from Hariharan et al. [16], and evaluated on 736 validation images and on the 2011 and 2012 test sets. Inputs are square, the smaller image side is scaled to 256, and testing uses a stride of 128. On the 2012 test set, Ours (VGG) reached average Jaccard of 62.6, against 62.2 for Long et al.
[24]. Chen et al. [5] reports 71.6 on that set, and the authors describe Chen et al. as augmenting a convolutional network with a fully connected CRF. On the 2011 validation set, Ours (VGG) matches Long et al. on pixelwise accuracy at 90.3, and is below on per-class accuracy at 72.4 against 75.9.
What each scale contributes
Scale-only variants are compared for depth, normals, and the 4- and 13-class labeling tasks, using Scale 1, Scale 2, Scales 1 and 2, and Scales 1, 2 and 3. For the Scale 1 only variant, the last fully connected layer is replaced by one that outputs directly to the target size, which gives a pixel map with 1, 3, 4 or 13 channels depending on the task.
Depth is measured by abs rel, normals by mean angle distance, and semantic labeling by pixelwise accuracy.
Adding scales improves depth from 0.218 with Scale 1 alone to 0.198 with all three scales, and normals from 29.7 to 25.9 in mean angle distance, where lower is better for both. Scale 2 alone gives depth 0.290 and normals 31.8, so the coarse scale carries most of the depth and normals performance. The authors identify the coarse Scale 1 as the largest single contributor for depth and normals, while Scale 2 is the larger contributor for the semantic tasks with depth and normals channels because those channels enter at Scale 2.
For 13-class labeling with RGB input only, pixelwise accuracy rises from 58.1 with Scale 1 alone to 64.0 with all three scales, where higher is better. The authors also trained Scale 1 from random initialization, which reached 54.5% for 13-class labeling, still the largest single contribution, though by a smaller margin.
How depth and normals inputs affect labeling
The 13-class labeling task is run with three input conditions: RGB only, RGB with predicted depth and normals, and RGB with ground-truth depth and normals, each with Scale 2 alone or with Scales 1 and 2. Accuracy for both pixelwise and per-class scores is reported in the same table, and the per-class figures are reported only in that table.
With Scales 1 and 2, adding ground-truth depth and normals raises pixelwise accuracy from 63.2 to 69.8, and per-class accuracy from 50.6 to 58.9. With Scale 2 alone, the same ground-truth inputs raise pixelwise accuracy from 53.1 to 65.1. Predicted inputs with Scale 2 alone raise pixelwise accuracy from 53.1 to 58.7, but with Scales 1 and 2 they raise it only from 63.2 to 65.0, and per-class accuracy falls from 50.6 to 49.5.
The authors suggest that the labeling network can learn from the RGB input and the labels what the predicted depth and normals would have supplied, which is why the gain disappears when both scales are used. They also note that supplying predicted depth and normals to Scale 2 recovers much of the pixelwise performance of the RGB-only Scales 1 and 2 model.
Limitations
The NYUDepth semantic results use ground-truth depth and normals as inputs, so the labeling results do not measure a pipeline that starts from RGB alone. Predicted depth and normals as labeling inputs were tested only in the 13-class ablation. Depth outputs are at half the input resolution, and the border outside the network output is filled by extrapolation.
Sift Flow used the NYUDepth kernel sizes and learning rates without adjustment, so the Sift Flow settings were not tuned for that dataset. The two normal ground-truth constructions give different scores, so results are compared only within one construction. On the Pascal VOC 2012 test set, Chen et al. [5] reports a higher average Jaccard than Ours (VGG).
Paper info
- Authors
- David Eigen, Rob Fergus
- Venue
- arXiv · Preprint
- First published
- 2014-11-18
- Added
- 2026-11-12
- Updated
- 2015-12-17
- Version
- v4
- arXiv
- 1411.4734
- 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
David Eigen, Rob Fergus (2014). Predicting Depth, Surface Normals and Semantic Labels with a Common Multi-Scale Convolutional Architecture. arXiv:1411.4734v4. https://arxiv.org/abs/1411.4734v4
BibTeX
@misc{eigen2014predicting,
title = {{Predicting Depth, Surface Normals and Semantic Labels with a Common Multi-Scale Convolutional Architecture}},
author = {David Eigen and Rob Fergus},
year = {2014},
eprint = {1411.4734},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1411.4734v4}
}