Learning Neural Volumetric Pose Features for Camera Localization

Jingyu Lin, Jiaqi Gu, Bojian Wu, Lubin Fan, Renjie Chen, Ligang Liu, Jieping Ye

Abstract

Absolute Pose Regression (APR) offers an efficient, single-pass solution for camera localization but often lacks the precision of traditional structure-based methods. This paper introduces PMNet, which utilizes PoseMap—a novel neural volumetric feature—to bridge this accuracy gap. By augmenting a Neural Radiance Field (NeRF) with a dedicated pose branch (NeRF-P), PMNet extracts implicit geometric information from the scene's volume to provide a strong supervision signal for the localization network. Evaluations on the 7-scenes and Cambridge Landmarks datasets demonstrate that PMNet achieves up to a 20% performance improvement over existing state-of-the-art APR methods while maintaining real-time inference speeds.

Introduction

Camera localization is a fundamental task in robotics and augmented reality, requiring the estimation of a camera's 6-DOF pose from a single image. While structure-based methods are highly accurate, they are computationally expensive and memory-intensive. Conversely, Absolute Pose Regression (APR) methods are fast but typically struggle with accuracy in complex or repetitive environments. Recent attempts to improve APR using NeRF-based data augmentation have largely overlooked the rich spatial information embedded within the NeRF's volumetric representation. This work proposes to exploit these "implicit clues" through a new feature representation called the PoseMap.

Methodology: The PMNet Framework

The proposed PMNet architecture consists of two primary components: a pose regressor (APRNet) and a modified volumetric model (NeRF-P).

NeRF-P and PoseMap Generation

The core innovation is NeRF-P, an extension of the standard NeRF architecture. In addition to predicting color ($R, G, B$) and density ($\sigma$), NeRF-P includes a branch that predicts a high-dimensional "pose feature" for every 3D point in space.

Figure 1: The NeRF-P architecture generates a 2D PoseMap by volume-rendering 3D pose embeddings. This map serves as a geometric supervision signal.

Through the process of volumetric rendering, these 3D features are projected into a 2D feature map known as the PoseMap ($\mathcal{F}_{posemap}$). This map encodes the geometric structure of the scene from a specific viewpoint, capturing landmarks like edges and occlusions that are critical for accurate localization.

Training Strategy

The training process leverages the PoseMap to supervise the APRNet. As shown in the framework overview, the system compares the PoseMap rendered from the ground-truth pose with the one rendered from the APRNet's predicted pose.

Figure 2: The PMNet training pipeline. APRNet predicts a pose, which is then validated against ground-truth data using both direct pose loss and the novel PoseMap consistency loss.

By minimizing the difference between these maps ($\mathcal{L}_{posemap}$), the APRNet is forced to learn features that are geometrically consistent with the underlying 3D volume. The framework also incorporates a self-supervised alignment mechanism to utilize unlabeled images, further enhancing robustness.

Experimental Results

PMNet was evaluated on two major benchmarks: the indoor 7-scenes dataset and the outdoor Cambridge Landmarks dataset.

  • Accuracy: PMNet achieved a 14.28% average improvement in indoor scenes and a 20.51% improvement in outdoor scenes compared to previous state-of-the-art methods like DFNet.
  • Robustness: In challenging scenarios with sparse training data (e.g., using only 25% of the dataset), PMNet maintained significantly higher accuracy than its competitors.
  • Outlier Mitigation: The method proved particularly effective at handling difficult "outlier" images, reducing translation errors by over 50% in the most challenging test cases (from 1.94m to 0.85m).
  • Efficiency: Inference remains highly efficient, taking approximately 6.27ms per image on an NVIDIA RTX 4090, suitable for real-time deployment.

Conclusion

PMNet demonstrates that NeRFs can serve as powerful supervisors for camera localization, rather than just image generators. By translating 3D volumetric knowledge into 2D PoseMaps, the framework provides APR models with the geometric intelligence needed to compete with more complex structure-based methods. Future work will explore integrating explicit geometric cues, such as depth maps and line features, to further refine localization precision.

Summary updated

BibTeX
@inproceedings{lin2024learning,
  author = {Jingyu Lin and Jiaqi Gu and Bojian Wu and Lubin Fan and Renjie Chen and Ligang Liu and Jieping Ye},
  title = {{Learning Neural Volumetric Pose Features for Camera Localization}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72995-9\_12},
}
Figure