Dilated Fully Convolutional Neural Network for Depth Estimation from a Single Image

Binghan Li, Yindong Hua, Yifeng Liu, Mi LuarXiv 2021

Abstract

Depth prediction plays a key role in understanding a 3D scene. Several techniques have been developed throughout the years, among which Convolutional Neural Network has recently achieved state-of-the-art performance on estimating depth from a single image. However, traditional CNNs suffer from the lower resolution and information loss caused by the pooling layers. And oversized parameters generated from fully connected layers often lead to a exploded memory usage problem. In this paper, we present an advanced Dilated Fully Convolutional Neural Network to address the deficiencies. Taking advantages of the exponential expansion of the receptive field in dilated convolutions, our model can minimize the loss of resolution. It also reduces the amount of parameters significantly by replacing the fully connected layers with the fully convolutional layers. We show experimentally on NYU Depth V2 datasets that the depth prediction obtained from our model is considerably closer to ground truth than that from traditional CNNs techniques.

Introduction

Monocular depth estimation—the task of predicting distance from a single 2D image—is a fundamental challenge in computer vision. It is inherently an "ill-posed" problem, as a single 2D projection can correspond to an infinite number of 3D configurations. While Convolutional Neural Networks (CNNs) have significantly advanced this field, standard architectures like VGG-16 face two primary bottlenecks: resolution loss and parameter explosion.

Resolution loss typically occurs because traditional CNNs rely on pooling layers to expand the receptive field, which downsamples the image and discards fine-grained spatial details. Parameter explosion occurs in the final stages of these networks, where massive fully connected (FC) layers are used to capture global context, leading to high memory consumption and making deployment on mobile or embedded systems difficult.

Proposed Method

Architecture Overview

The proposed model utilizes a two-stage framework consisting of a global coarse-scale network and a local fine-scale network. The coarse-scale stack is responsible for understanding the overall layout of the scene, while the fine-scale stack refines these predictions by aligning them with local image features like edges and textures.

The proposed two-stage architecture featuring coarse-scale and fine-scale stacks.

Dilated Convolutions

To solve the resolution problem, the authors replace standard pooling layers with Dilated Convolutions. By inserting "holes" (zeros) between kernel elements, the network can expand its receptive field exponentially without reducing the spatial dimensions of the feature maps. This allows the network to maintain a consistent 80x60 resolution throughout the coarse stage, avoiding the "blobby" artifacts common in traditional architectures that downsample to 1x1 before reconstruction.

Comparison between 1-dilated (standard) and 2-dilated convolutions.

Fully Convolutional Design and Loss Function

By replacing fully connected layers with fully convolutional layers, the authors significantly reduced the model's parameter count. To train the network, a scale-invariant mean squared error loss was employed. This loss function is particularly effective for monocular systems where absolute scale is difficult to determine, as it prioritizes the relative depth relationships between pixels.

Experimental Results

Dataset and Training

The model was evaluated using the NYU Depth V2 dataset, which contains 1,449 RGB-D images of indoor scenes. The training utilized 800 images, with 200 for validation and 449 for final testing.

Performance and Efficiency

The Dilated FCN demonstrated a dramatic improvement in efficiency, achieving a 7x reduction in total parameters compared to a VGG-16 based baseline. Specifically, the coarse-scale stage's parameter count dropped from approximately 198 million to just 27 million.

Qualitatively, the depth maps produced were sharper and more structurally accurate. While the baseline model often produced blurred estimates, the dilated architecture preserved the spatial ordering and relationships of objects within the scene more effectively. Quantitative benchmarks confirmed that the predictions were considerably closer to the ground truth than those of traditional CNN techniques.

Conclusion and Future Work

This research demonstrates that dilated convolutions provide a "free lunch" for receptive field expansion, allowing for global scene understanding without sacrificing spatial resolution. While the model significantly reduces memory overhead and improves accuracy, challenges remain regarding ambiguous pixels at object boundaries and reflective surfaces. Future work will focus on incorporating boundary-refinement modules to further sharpen the edges of the estimated depth maps.

Summary updated

BibTeX
@misc{li2021dilated,
  author = {Binghan Li and Yindong Hua and Yifeng Liu and Mi Lu},
  title = {{Dilated Fully Convolutional Neural Network for Depth Estimation from a Single Image}},
  year = {2021},
  eprint = {2103.07570},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.07570},
}
Figure