<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Efficient multilevel architecture for depth estimation from a single image</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>01/19/2020</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10140798</idno>
					<idno type="doi">10.2352/ISSN.2470-1173.2020.14.COIMG-377</idno>
					<title level='j'>Electronic Imaging</title>
<idno>2470-1173</idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Bruno Artacho</author><author>Nilesh Pandey</author><author>Andreas Savakis</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Monocular depth estimation is an important task in scene understanding with applications to pose, segmentation and autonomous navigation. Deep Learning methods relying on multilevel features are currently used for extracting local information that is used to infer depth from a single RGB image. We present an efficient architecture that utilizes the features from multiple levels with fewer connections compared to previous networks. Our model achieves comparable scores for monocular depth estimation with better efficiency on the memory requirements and computational burden.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Introduction</head><p>Estimating depth from a single image is an important problem in computer vision. The goal of monocular depth estimation algorithms is to obtain a depth value for every pixel in an image. Obtaining a precise depth map directly benefits several applications such as semantic segmentation <ref type="bibr">[2]</ref>, pose estimation <ref type="bibr">[26]</ref>, object detection and tracking <ref type="bibr">[27]</ref>. Recent approaches, based on deep learning, utilize an encoder-decoder framework in an attempt to fuse features of the image for extracting depth information <ref type="bibr">[6]</ref>. However, memory requirements of recent methods are high and it would be beneficial to reduce their footprint.</p><p>The objective of this work is to achieve monocular depth estimation results that are comparable to state-of-the-art, while reducing the size of the network. We propose a framework called Structure Aware Waterfall for depth estimation (SAWdepth) network. Our SAWdepth method consists of an encoder-decoder structure that projects a higher amount of scales inside the network, compared to state-of-the-art methods <ref type="bibr">[6]</ref>, while having a smaller number of feature maps, resulting in a significantly smaller and consequently easier to train and faster network. Examples of depth estimation obtained with our method are shown in Figure <ref type="figure">1</ref>.</p><p>An important component of our architecture is the use of the Waterfall Atrous Spatial Pooling (WASP) module <ref type="bibr">[1]</ref>, which combines the cascaded approach for atrous convolution with the larger FOV obtained from parallel configuration from the Atrous Spatial Pyramid Pooling (ASPP) module <ref type="bibr">[3]</ref>. Our SAWdepth architecture, based on the Waterfall module for atrous spatial pooling and an encoder-decoder structure, which significantly reduces the size of the network.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Related Work</head><p>In current research, the vast majority of depth estimation methods rely in the use of CNNs for the inference of depth. Initial developments of monocular methods for depth estimation were conducted by <ref type="bibr">[7]</ref> using a multi-scale approach. The use of ResNet <ref type="bibr">[12]</ref> backbone for feature extraction generated significant improvement in depth estimation accuracy in <ref type="bibr">[20]</ref>. Other net- works utilized for the task of depth estimation include DenseNet <ref type="bibr">[16]</ref> and the Squeeze-and-Excitation network (SENet) <ref type="bibr">[14]</ref>.</p><p>A complication resulting from the lack of pooling layers is a reduction of spatial invariance. Thus, additional techniques are used to recover spatial definition, namely, Conditional Random Fields (CRF) and atrous Convolutions. The implementation of postprocessing CRF by Li et al. <ref type="bibr">[21]</ref> improved the efficiency of networks for the depth estimation of small objects that were previously hard to identify due to loss of resolution from pooling. Aiming for better delineation of objects in the image, <ref type="bibr">[30]</ref> combines CNN and CRF in a single network to incorporate the probabilistic method of Gaussian pairwise potentials during inference. A limitation of architectures using CRF is that CRF has a greater difficulty capturing boundaries, as these regions have low confidence in the unary term of the CRF energy function.</p><p>The work of Ronneberger et al. <ref type="bibr">[25]</ref> introduced the U-Net architecture, consisting of a "U" shape network for the encoder and decoder stages of processing. The U-Net approach can be applied for the depth estimation task that presents similar complexity to semantic segmentation and in addition requires a contextual interpretation of the image.</p><p>An important challenge with pixel-wise tasks incorporating CNN layers is the significant reduction of resolution caused by pooling. Semantic segmentation with Fully Convolutional Networks (FCN) <ref type="bibr">[22]</ref> addressed the resolution reduction problem by deploying upsampling strategies across deconvolution layers. These attempt to reverse the convolution operation and increase the feature map size back to the dimensions of the original image.</p><p>Multi-scale approaches became popular for overcoming the loss of pooling <ref type="bibr">[8]</ref>. Hao et al. <ref type="bibr">[11]</ref> initially made use of atrous convolutions to access multiple scales for depth. Similarly, <ref type="bibr">[15]</ref> implements a multi-scale approach with improved results by fusing feature scales, although it still lacks in precision for more complex objects. Other methods that use multi-scales include <ref type="bibr">[6]</ref>, as well as <ref type="bibr">[28]</ref> which combines the multi-scale with CRF.</p><p>With the goal of reducing the complexity of depth estimation, the approach in <ref type="bibr">[8]</ref> redefines depth estimation as an ordinal regression task by implementing a spacing-increasing discretization (SID) strategy. The use of ordinary regression loss applies a multi-scale approach in order to avoid additional unpooling layers and obtain a larger number of scales in the network.</p><p>Approaches to estimate depth without supervision were introduced by unsupervised <ref type="bibr">[10]</ref> and semi-supervised methods <ref type="bibr">[19]</ref>. The methods obtain the losses of the network by comparing the differences between the left and right side of the estimation map. A similar approach was used by <ref type="bibr">[5]</ref> using a pair-wise information ranking system to propose and determine the estimation of depth in the image. The work by <ref type="bibr">[24]</ref> aims to estimate depth using a geometric neural network. The method combines the geometric relation of the depth and normal surfaces.</p><p>Networks for depth estimation and semantic segmentation exhibit significant commonalities. A multitude of networks employ similar structures and occasionally perform both tasks simultaneously. Several networks rely on leveraging information from the backbone to perform both tasks in multi-scale approaches <ref type="bibr">[7]</ref>, <ref type="bibr">[29]</ref>, and <ref type="bibr">[17]</ref>.</p><p>A popular technique for maintaining the original resolution is the use of dilated or atrous convolutions <ref type="bibr">[3]</ref>. Atrous convolutions aim to increase the size of the receptive fields in the network, avoid downsampling, and generate a multi-scale framework for processing. In the simpler case of one-dimensional convolution, the output of the signal is defined as follows:</p><p>where r is the rate of dilation, &#969;[l] is the filter of length L, x[i] is the input, and y[i] is the output. A rate value of one results in a regular convolution operation. Motivated by the success of the Spatial Pyramids applied on pooling operations <ref type="bibr">[13]</ref>, the ASPP architecture was successfully incorporated in DeepLab <ref type="bibr">[3]</ref> for semantic segmentation. The ASPP approach assembles atrous convolutions in four parallel branches with different rates, that are combined by fast bilinear interpolation with an additional factor of eight. This configuration recovers the feature maps in the original image resolution. The increase in resolution and FOV in the ASPP network can be beneficial for contextual segmentation as well as depth estimation.</p><p>The Res2Net module <ref type="bibr">[9]</ref> is another promising multi-scale backbone architecture that achieves improved representations. The WASP module, recently introduced by <ref type="bibr">[1]</ref>, allows the application of atrous convolutions in a hybrid configuration between parallel and cascade assembling, leveraging both the increased FOV and reduced size of the network. We leverage this capability of the WASP method in the SAWdepth framework.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Methodology</head><p>We propose an efficient architecture for depth estimation that makes use of the large FOV generated by the WASP module combined with an encoder-decoder structure to fuse the multiple scales of representation extracted through our network.</p><p>The processing pipeline is shown in Figure <ref type="figure">2</ref>. The input image is initially fed into a deep CNN, namely a SENet-154 architecture, following approaches by <ref type="bibr">[15]</ref> and <ref type="bibr">[6]</ref>. The resultant score maps from five different levels are fed into five different WASP modules for further extraction of features across scales. Our decoder extracts the final depth estimation as a combination of all fused scales obtained from the WASP modules.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>WASP Module</head><p>Introduced by <ref type="bibr">[1]</ref>, the WASP module generates an efficient multi-scale representation that helps the network to increase the number of scales obtained without significantly increasing the size of the network. The WASP architecture, shown in Figure <ref type="figure">3</ref>, is designed to leverage both the larger FOV of the ASPP configuration and the reduced size of the cascade approach to obtain multiscale representations. The WASP module combines the benefits of the ASPP <ref type="bibr">[3]</ref>, Cascade <ref type="bibr">[4]</ref>, and Res2Net <ref type="bibr">[9]</ref> modules.</p><p>The WASP module utilizes atrous convolutions, which are fundamental to ASPP, to maintain a large FOV. It also performs a cascade of atrous convolutions at increasing rates to gain efficiency. Furthermore, WASP incorporates multi-scale features. In contrast to ASPP and Res2Net, WASP does not immediately par-2 377-2</p><p>IS&amp;T International Symposium on Electronic Imaging 2020 Computational Imaging allelize the input stream. Instead, it creates a waterfall flow by first processing through a filter and then creating a new branch. WASP also goes beyond the cascade approach by combining the streams from all its branches and average pooling of the original input to achieve a multi-scale representation. WASP aims to reduce the number of parameters in order to deal with memory constraints and overcome the main limitation of atrous convolutions. The four branches in WASP have different FOV and are arranged in a waterfall-like fashion. The atrous convolutions in WASP start with a small rate of 6, which consistently increases in subsequent branches (rates of <ref type="bibr">6,</ref><ref type="bibr">12,</ref><ref type="bibr">18,</ref><ref type="bibr">24)</ref>. This configuration gains efficiency due to the smaller filter sizes, and creates multi-scale features with each branch that are combined to obtain a richer representation. The WASP module is utilized in the SAWdepth architecture of Figure <ref type="figure">2</ref> for depth estimation.  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Decoder</head><p>Our decoder module estimates the final depth from multiple scales generated from five WASP modules, using higher resolutions to refine coarser scales. Figure <ref type="figure">4</ref> shows the structure of our decoder. Differently then previous works using a multi-scale encoder <ref type="bibr">[6]</ref>, we used a larger amount of maps from lower level features and a lower amount of maps from the pyramid feature stage (WASP module). By re-configuring the decoder in this fashion, we are able to further reduce the size of the network while maintaining the larger amount of map scales.</p><p>The depth maps resulting from lower resolutions are intended to obtain a more general overall depth in the image, while higher resolution maps extract the details in the image depth. We predict the depth from each image after two convolutional layers that are added to the higher resolution branch after bilinear interpolation. By computing the mean square error at every level of resolution in our decoder, we refine the depth estimation at various levels of detail, extracting the final depth estimation from the combined higher resolution layer combined with all other lower resolution representations.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Structure Aware Residual Network</head><p>In addition to our proposed SAWdepth method, we also experimented we other approaches for depth estimation while reducing the size of the network. We considered the Residual Block, obtained from the ResNet architecture, at every scale of our backbone, resulting in a Structure Aware Residual Block (SARB). The output of each residual block is processed through a Residual Refinement Module (RRM) introduced by <ref type="bibr">[6]</ref>. After fusing all scales, the output consists of the bilinear interpolation of the scales to the original resolution of the image. Figure <ref type="figure">5</ref> shows the stages used after the backbone for the estimation of depth in this experimental method.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Experiments and Results</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Dataset</head><p>We performed training and testing of SAWdepth and SARB based on the NYU v2 depth dataset <ref type="bibr">[23]</ref>. NYU v2 is an indoor segmentation and depth dataset, consisting of RGBD images obtained with the Microsoft Kinect sensor. The dataset is composed of 1,449 densely labelled indoor images, paired with their depth images. We utilized data augmentation on the NYU v2 samples to obtain a training set of over 50,000 images. The data augmentation for the training dataset consists of horizontal flipping, rotation of up to 5 degrees, cropping, light variation, color normalization, and color jitter including brightness, contrast, and saturation, following similar procedures adopted by <ref type="bibr">[15]</ref> and <ref type="bibr">[6]</ref>.</p><p>Similarly to previous studies, we evaluate our methods by assessing the Root Mean Square Error (RMSE). We used a Mean Square Error (MSE) during training in a Stochastic Gradient Descent (SGD) optimizer. We input the native resolution of the input image without resizing, in order to train the network with the most detail possible. We adopted a starting learning rate of 10 -5 that is regulated through an Adam optimizer <ref type="bibr">[18]</ref>. All experiments were performed using PyTorch 1.0 running on Ubuntu 16.04. The workstation has an Intel i5-2650 2.20GHz CPU with 16 GB of RAM and an NVIDIA Tesla V100 GPU.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Results</head><p>Following training, the SAWdepth and SARB methods were compared with SARPN in terms of accuracy and network size. The results for the NYUD v2 dataset are presented in Table <ref type="table">1</ref>. An RMSE loss of mIOU of 0.561 was achieved in only 4 epochs with SAWdepth, in contrast to 20 epochs used for SARPN <ref type="bibr">[6]</ref>. Our SAWdepth network reduced the memory required for SARPN by 41.9%, from an original size of 6.33 GB to 3.68 GB, for a batch size of 1. We also tested the residual block network, and obtained a size reduction of 41.5% and a RMSE loss of 0.589. A comparison between SAWdepth and SARB shows that SAWdepth outperforms SARB in both accuracy and size, due to the use of the WASP module.</p><p>Table <ref type="table">2</ref> shows a comparison of SAWdepth with other stateof-the-art methods, based on RMSE, for depth estimation on the NYUD v2 dataset. The results demonstrate the SAWdepth is competitive with respect to performance while significantly reducing the network size, based on the results of Table <ref type="table">1</ref>. Examples of depth estimation with SAWdepth for the NYUD v2 dataset are  Method RMSE SARPN <ref type="bibr">[6]</ref> 0.514 Hu et al. <ref type="bibr">[15]</ref> 0.530 SAWdepth (ours) 0.561 Geonet <ref type="bibr">[24]</ref> 0.569 Xu et al. <ref type="bibr">[28]</ref> 0.586 Li et al. <ref type="bibr">[21]</ref> 0.821</p><p>shown in Figure <ref type="figure">6</ref>. It is noticeable from these examples that our method estimates the depth of main objects in the image with good accuracy. Challenging conditions for estimation include objects and walls located further away from the camera, having a less define reference frame. A significant source of error occurred from the presence of transparent objects such as glass and windows, since they do not present a solid surface for interpretation. Since most images in the dataset contains an upper middle section as the furthest away from the camera, this resulted in a bias to assign larger depth for regions near the image center. Representative examples of fail 4 377-4</p><p>IS&amp;T International Symposium on Electronic Imaging 2020 Computational Imaging cases are shown in Figure <ref type="figure">7</ref> for the presence of glass and mirrors in the image, as well as the bias, from training on this dataset, to locate larger depth in the center of the image.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Conclusions</head><p>We presented SAWdepth, a multi-scale architecture based on the WASP module for efficient depth estimation that drastically decreases the size of the network compared to other methods. The smaller size of our architecture results in faster training and easier implementation that improves its usefulness in applications, such as pose estimation, autonomous driving, and scene analysis.</p></div></body>
		</text>
</TEI>
