Image-based Localization using Hourglass Networks

Iaroslav Melekhov, Juha Ylioinas, Juho Kannala, Esa RahtuarXiv 2017

Abstract

Camera relocalization, the task of estimating the 6-DoF pose of a camera from a single image, is critical for applications in robotics and augmented reality. While traditional feature-matching methods struggle with motion blur and textureless environments, early deep learning approaches like PoseNet often lacked precision due to aggressive spatial downsampling. This paper introduces an encoder-decoder "hourglass" architecture that preserves fine-grained visual details through skip connections. Evaluated on the Microsoft 7-Scenes dataset, the proposed model significantly outperforms previous CNN-based methods and contemporary video-based models.

Introduction

Image-based localization involves determining the exact position and orientation of a camera based on a single RGB image. Traditional solutions rely on matching local features (e.g., SIFT) against a 3D point cloud. However, these methods are fragile in environments characterized by repetitive structures, motion blur, or a lack of distinct textures.

Recent deep learning efforts attempted to treat localization as a regression problem. While robust to visual degradations, early CNNs typically employed classification-style architectures that downsample images into high-level semantic features. This process discards the low-level geometric cues necessary for high-precision localization. This research aims to bridge the gap between the robustness of CNNs and the precision of traditional geometric methods.

Hourglass Architecture for Pose Regression

The core contribution of this work is the application of an hourglass (encoder-decoder) network to camera pose regression. Unlike standard CNNs, this architecture focuses on recovering spatial resolution to maintain geometric accuracy.

The proposed hourglass architecture consisting of an encoder, decoder, and regressor for 6-DoF pose estimation.

Encoder and Decoder

The encoder uses a modified ResNet34, pre-trained on ImageNet, to extract rich feature representations. The decoder then uses a series of up-convolutional layers to restore the feature map size to 56x56.

Skip Connections

To prevent the loss of fine-grained details during the bottleneck phase, the authors implement skip connections between corresponding layers of the encoder and decoder. These connections allow low-level visual features to bypass the deepest layers of the network, providing the decoder with the high-resolution cues needed for millimeter-level precision. Two variants were tested: Hourglass-Pose (concatenation) and HourglassSum-Pose (element-wise summation).

Pose Regressor

The final stage of the network is a regressor that takes the decoder's output and predicts a 7-dimensional vector representing the 3D translation (position) and a 4D quaternion (orientation).

Experimental Setup

The models were evaluated using the Microsoft 7-Scenes Dataset, a benchmark for indoor relocalization.

Sample images from the seven indoor environments in the Microsoft 7-Scenes Dataset.

The dataset includes diverse environments such as kitchens, offices, and staircases, presenting challenges like varying illumination and repetitive textures. Although the dataset provides RGB-D data, this study focuses exclusively on localization from RGB images.

Results and Discussion

The hourglass architecture demonstrated superior performance compared to existing state-of-the-art CNN methods, including PoseNet and LSTM-Pose.

  • Accuracy Gains: The HourglassSum-Pose model achieved a median error of 0.23m and 9.53°. This represents a 52.27% improvement in position accuracy over the baseline PoseNet.
  • Robustness: In the "Chess" scene, the model achieved sub-20cm accuracy in over 60% of test cases, a massive leap from PoseNet's 5% success rate at that threshold.
  • Spatial vs. Temporal Context: Interestingly, the single-frame hourglass model outperformed VidLoc, which utilizes temporal information from video sequences. This suggests that high-quality spatial feature extraction is more critical for localization than temporal smoothing.

Conclusion

The use of an hourglass architecture with skip connections effectively addresses the precision limitations of earlier pose regression networks. By restoring spatial resolution, the model achieves a new state-of-the-art for CNN-based single-image localization. Future work may involve extending this architecture to handle large-scale outdoor environments or integrating it with temporal models to further enhance stability in video-based applications.

Summary updated

BibTeX
@misc{melekhov2017image,
  author = {Iaroslav Melekhov and Juha Ylioinas and Juho Kannala and Esa Rahtu},
  title = {{Image-based Localization using Hourglass Networks}},
  year = {2017},
  eprint = {1703.07971},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1703.07971},
}
Figure