TL;DR
This paper introduces a scalable framework for joint 6-DoF camera localization and 3D scene understanding by breaking down global scene coordinate regression into two simpler tasks: predicting globally unique object instance labels and estimating local coordinates within those instances. By combining these predictions at test time, the method achieves state-of-the-art localization accuracy on city-scale maps that are orders of magnitude larger than those handled by previous scene coordinate regression methods.
What Problem Does This Paper Address?
To navigate safely, autonomous vehicles and robots need to know exactly where they are (6-DoF localization) and what surrounds them (3D scene understanding).
Existing approaches generally fall into two camps, both with significant drawbacks:
- Direct Pose Regression (e.g., PoseNet): These networks map an image directly to a camera pose. While computationally efficient, they tend to overfit to transient features (like a parked car) and lack geometric verifiability.
- Scene Coordinate Regression (SCR): These methods train a network to predict the absolute 3D scene coordinates for every pixel in an image, using those coordinates to compute the camera pose via a Perspective-n-Point (PnP) solver. SCR provides excellent geometric accuracy but struggles to scale. Mapping an absolute 3D coordinate across an entire city creates a highly complex, non-linear optimization problem that causes standard neural networks to fail.
The authors tackle this scalability gap, enabling SCR methods to expand from small, room-sized environments to large, city-scale trajectories.
Methods
The authors propose a three-step pipeline that reformulates scene coordinate regression:
- Data Collection & Preprocessing: Panoramic video sequences are collected and annotated with semantic class labels and globally unique instance IDs for static objects (primarily buildings). Structure-from-Motion (SfM) is used to generate a ground-truth 3D point cloud.
- CNN Training: Instead of forcing a network to predict absolute global coordinates, the authors train a ResNet-50-based Fully Convolutional Network (FCN) to jointly predict two things per pixel:
- A panoptic/instance label identifying the specific building.
- Local coordinates relative to that specific building instance (normalized using Principal Component Analysis whitening).
- Pose Estimation: At test time, the network's local coordinate predictions are "unwhitened" and combined with the predicted building center coordinates to reconstruct global scene coordinates. These coordinates are then passed to a classical, robust EPnP solver with a RANSAC loop to estimate the final 6-DoF camera pose.
Datasets
The approach was evaluated on both real-world and synthetic autonomous driving datasets:
- CamVid-360: A real-world dataset of panoramic videos captured via cycling, spanning approximately 1.5 km. The evaluation also included a challenging query sequence extracted from Google StreetView images along the same track.
- SceneCity (Small & Large): Synthetic city environments rendered in Blender. The Large SceneCity dataset represents a massive scale expansion, spanning an 11.5 km driving length and containing 827 distinct buildings and 966 road segments.
- SceneCity Small (Missing Buildings): A variant where 20% of the buildings were randomly removed to test the system's robustness to environmental changes.
Key Insights and Ideas
- Divide and Conquer the Coordinate Space: Factoring global coordinate regression into discrete instance recognition and local coordinate regression drastically simplifies the network's optimization landscape. This separation allows the network to converge significantly faster and maintain high accuracy at scale.
- Geometric Integrity Over Differentiable Shortcuts: Unlike recent trends that use complex, end-to-end differentiable pose estimators, the authors show that simply relying on a classical PnP solver with RANSAC yields superior results. Differentiable pose layers often introduce a reprojection loss that inadvertently degrades the accuracy of the predicted 3D geometry.
- Primitives are Plenty: The framework is flexible enough to operate on lightweight, approximate 3D maps built from simple geometric primitives (like building-aligned cuboids) rather than dense, expensive SfM point clouds, making it highly practical for real-world deployment.
Key Results
The proposed method (L5-LRec-Lab) significantly outperformed direct pose regression and standard scene coordinate regression across all benchmarks.
- Scalability: On the massive Large SceneCity dataset, standard SCR methods failed completely, predicting 0.00% of pixels within 50 cm of their true location. The authors' method successfully predicted 39% of pixels within this threshold, achieving a median camera translation error of just 20 cm.
- Real-World Performance: On the real-world CamVid-360 dataset, the method achieved a median distance error of 22 cm and a median angular error of 0.71°.
- Robustness: When tested against the Google StreetView query sequence (which introduces changes in lighting, camera hardware, and viewpoints), the method maintained a median pose error of 75 cm, whereas competing deep localization methods degraded significantly or failed.
Limitations and Future Work
While highly effective, the authors note a few limitations:
- Instance Mis-predictions: For pixels further than 4 meters away from their true location, the method's accuracy degrades. This is primarily caused by the network misclassifying globally unique instance labels at long distances.
- Vertical Geometry Challenges: In the Small SceneCity dataset, the reconstruction quality was relatively lower due to a high density of tall buildings; the network's coordinate accuracy dropped noticeably near the tops of these structures.
For future work, the authors highlight the potential of using approximate primitive maps (like cuboids) to completely eliminate the need for computationally expensive 3D point cloud generation during data preprocessing.
Summary updated