Introduction
Camera localization—the task of estimating a camera's position and orientation (pose) from a single image—is fundamental to robotics, autonomous driving, and augmented reality. While traditional structure-based methods match 2D points to 3D maps with high accuracy, they are often computationally intensive and memory-heavy. Recent deep learning approaches, such as PoseNet, attempt to regress poses directly from images. However, these "black-box" models frequently lack the geometric consistency inherent in traditional methods, leading to "coarse-grained" supervision that limits their precision.
Pixel-Level Geometric Supervision
To bridge the gap between deep regression and geometric principles, the authors propose a fine-grained, pixel-level epipolar geometry constraint. Unlike previous methods that rely on image-level pose comparisons, this approach enforces the geometric relationship between individual pixels across different views.
The core idea is based on the epipolar constraint: if a camera's predicted pose is accurate, a pixel in one image must lie on a corresponding epipolar line in another image. By minimizing the Symmetrical Epipolar Distance (SED), the network is forced to respect the physical laws of scene geometry.
The EpiLoc and EpiSingle Frameworks
The authors developed two complementary frameworks to handle different data types: EpiLoc for sequential video data and EpiSingle for non-sequential, single-image datasets.
EpiLoc (Sequential Supervision)
For video sequences, EpiLoc utilizes optical flow (e.g., via FlowNet2) to establish pixel correspondences between adjacent frames. It introduces a Cross Symmetrical Epipolar Distance (CSED) loss, which calculates the fundamental matrix using a combination of estimated and ground-truth poses. This prevents the model from merely learning relative motion and instead drives it toward refining absolute pose accuracy.
EpiSingle (Single-Image Supervision)
EpiSingle is a self-supervised variant designed for datasets without sequential frames. It treats the ground-truth pose as a virtual "second view" of the same image, ensuring geometric consistency even within a single frame.
Architecture
Both frameworks utilize a ResNet34 backbone for feature extraction. The network regresses the logarithm of a unit quaternion for rotation, which offers more efficient optimization than standard quaternions.
Experimental Results
The proposed methods were evaluated on the indoor 7Scenes and outdoor Oxford RobotCar benchmarks.
- Indoor Performance: On 7Scenes, EpiLoc outperformed multi-image methods like MapNet, achieving a median translation error of 0.18m and a rotation error of 6.82°.
- Outdoor Performance: The impact was most significant in large-scale outdoor environments. On the RobotCar dataset, EpiLoc reduced translation error to 17.8m (a 25% improvement over the previous SOTA, AtLoc) and nearly halved the rotation error to 4.53°.
Conclusion
EpiLoc demonstrates that integrating pixel-level geometric constraints as a regularizer significantly enhances the robustness and accuracy of deep camera localization. By providing thousands of supervisory signals per image pair through epipolar geometry, the model gains a "physical anchor" that guides it toward mathematically plausible solutions without requiring expensive 3D models during training.
Summary updated