Abstract
Image-based localization, the task of estimating the 6 DoF camera pose from a single RGB image, is a foundational challenge in autonomous navigation and augmented reality. Traditional patch-based coordinate regression methods are computationally intensive and often fail to capture the global context necessary to disambiguate repetitive structures. This paper introduces a full-frame encoder-decoder architecture that regresses dense scene coordinates for an entire image in a single pass. By leveraging global scene context and a novel 3D-aware data augmentation strategy, the proposed method achieves state-of-the-art performance on the 7-Scenes benchmark, providing up to a 15x speedup over previous state-of-the-art methods like DSAC.
Introduction
Determining the exact position and orientation of a camera is essential for various applications. While traditional methods rely on matching local features (e.g., SIFT) to 3D models, they often struggle in environments with repetitive textures or low visual detail. Recent deep learning approaches, such as Differentiable RANSAC (DSAC), have improved robustness by regressing 3D coordinates for individual image patches. However, these methods are computationally expensive due to redundant processing of thousands of patches and lack the global context required to distinguish between visually similar areas in different parts of a scene.
Methods
The proposed pipeline consists of a two-stage process: dense coordinate regression followed by robust pose optimization.
Full-Frame Coordinate CNN
Instead of processing isolated patches, the architecture utilizes a fully convolutional encoder-decoder network based on the DispNet design. This network takes a $640 \times 480$ RGB image as input and outputs a dense "scene coordinate image," where each pixel corresponds to a predicted $(x, y, z)$ location in the world coordinate system. This full-frame approach allows the network to utilize distant landmarks to disambiguate local structures, effectively using global context to improve localization accuracy.
3D Data Augmentation
To prevent overfitting—a common issue when training high-capacity full-frame networks on limited datasets—the authors introduced a geometric 3D data augmentation technique. Unlike standard 2D transformations, this method uses ground-truth 3D data to synthesize new camera viewpoints by "wiggling" the virtual camera in 3D space and re-projecting the scene. This ensures that the augmented training samples remain geometrically consistent with the environment.
Optimization
The predicted 2D-to-3D correspondences are processed using a RANSAC-based Perspective-n-Point (PnP) algorithm to compute the final 6 DoF camera pose.
Experimental Results
The method was evaluated on the 7-Scenes dataset, which includes challenging indoor environments like the "Stairs" scene, characterized by extreme repetitive structures.
Accuracy and Robustness
The full-frame approach demonstrated significant improvements in robustness. On the "Stairs" sequence, the proposed method achieved 29.5% accuracy (within 5cm/5°), a substantial increase over the 4.5% achieved by the patch-based DSAC. Across the 7-Scenes benchmark, the method consistently matched or exceeded the performance of existing learning-based and feature-based baselines.
Computational Efficiency
By eliminating the need for redundant patch processing, the full-frame network is significantly faster. On an NVIDIA GTX 1080, the network processes an image in 0.02s, compared to 0.3s for patch-based methods. This efficiency is even more pronounced on mobile-grade hardware, where the full-frame approach is up to 15 times faster than its predecessors.
Conclusion
Transitioning from patch-based to full-frame scene coordinate regression enables the use of global spatial context, which is vital for navigating complex environments. While the method requires scene-specific training and still faces challenges in highly repetitive scenes like stairs, the combination of efficient architecture and 3D-aware data augmentation represents a significant step forward for real-time image-based localization.
Summary updated