TL;DR
This paper introduces a novel approach to visual camera re-localization using Graph Neural Networks (GNNs) and relative pose supervision. By leveraging GNNs to refine image representations through message passing and training with relative pose information, the method achieves state-of-the-art accuracy comparable to absolute pose regression methods, while being more efficient and generalizable to unseen scenes.
What Problem Does This Paper Address?
Visual re-localization, the task of determining a camera's 6-DoF pose (position and orientation) within a known environment from a single image, is crucial for many applications like robotics, augmented reality, and autonomous driving. Existing leading methods fall into two main categories: "structure-based" methods that rely on 3D scene reconstructions and camera intrinsics (which are often unavailable or costly to obtain) and can be computationally expensive, and "pose-regression" methods. While absolute pose regression methods directly predict the 6-DoF pose, they typically require training on the specific target scene, limiting their generalization. Sequence-based methods use multiple frames but are more complex. This paper addresses the need for a re-localization method that is accurate, efficient, generalizable to new scenes, and does not require camera intrinsics or full 3D scene reconstructions.
Methods
The proposed method combines image retrieval with Graph Neural Networks (GNNs) for re-localization.
- Visual Encoding: A ResNet34 network extracts feature vectors from input RGB images.
- Image Retrieval & Graph Construction: For training, each "anchor" image is paired with its K nearest neighbors retrieved using NetVLAD (a differentiable image retrieval method). A fully connected graph is constructed where nodes represent images and edges represent relationships between them. For inference, a query image forms a graph with N-1 retrieved training images.
- Graph Message Passing: A GNN is used to iteratively refine node (image) and edge (image pair) representations. This involves updating edge features based on endpoint node features and then passing messages between nodes, incorporating a novel self-attention mechanism to adaptively weight information from neighbors. The aggregated messages are used to update node features.
- Relative Pose Regression: Finally, the refined edge features are used to regress the relative translation and orientation (as a log-quaternion) between image pairs.
- Training: The model is trained end-to-end by minimizing a relative pose loss between predicted and ground truth relative poses of image pairs in the graph. This relative pose supervision is key to enabling generalization.
Datasets
The method is evaluated on two standard re-localization benchmarks:
- 7-Scenes: An indoor dataset with challenging scenes featuring repetitive structures and texture-less regions.
- Cambridge Landmarks: An urban environment dataset collected with a mobile phone, featuring dynamic objects and varying lighting/weather conditions.
Key Insights and Ideas
- GNNs for Relative Pose: This is the first work to successfully apply GNNs for relative pose re-localization using a single query image.
- Relative Pose Supervision: Training with only relative poses, rather than absolute poses, is a crucial enabler for generalization to unseen scenes.
- Image Retrieval + GNN Synergy: Combining image retrieval for graph construction with GNN message passing for representation refinement proves highly effective, balancing relevance and diversity of training data.
- Self-Attention in GNNs: The use of a non-local self-attention mechanism within the GNN allows for more adaptive and context-aware message passing between image nodes.
- Efficiency and Generalization: The proposed method offers a compelling trade-off between accuracy and efficiency, outperforming many existing methods while being significantly faster to train and capable of generalizing to new environments.
Key Results
- Accuracy: The method achieves accuracy comparable to absolute pose regression networks on both 7-Scenes and Cambridge Landmarks datasets, outperforming other relative pose regression methods. For example, on the 7-Scenes dataset, it achieves a median translation error of 0.16m and rotation error of 5.2°.
- Generalization: When trained on six scenes and tested on an unseen seventh scene from the 7-Scenes dataset, the method significantly outperforms other methods like (NC-)EssNet and is competitive with NN-Net.
- Training Speed: The model trains much faster than comparable methods like NN-Net, taking about 1 hour on a single V100 GPU compared to NN-Net's 3 days for the 7-Scenes dataset.
- Qualitative Results: Saliency maps show that the GNN-based method focuses on geometrically meaningful features and edges, ignoring textureless regions and lighting artifacts, suggesting robust generalization.
Limitations and Future Work
- Reproducibility Challenges: The authors encountered significant difficulties in reproducing the results of several leading methods (GL-Net, AnchorPoint, CamNet), highlighting potential issues with existing implementations or reporting.
- Future Work: The authors suggest exploring GNNs for encoding dynamic and sparse neighborhoods, learning sparse graph representations, and investigating different neighborhood sizes. They also mention that geometric averaging can slightly improve rotation accuracy but is less impactful than core components.
Summary updated