Direct-PoseNet: Absolute Pose Regression with Photometric Consistency

Shuai Chen, Zirui Wang, Victor Prisacariu

Abstract

Direct-PoseNet bridges the gap between fast Absolute Pose Regression (APR) and accurate structure-based localization. By integrating a differentiable NeRF-based rendering module, the framework introduces photometric consistency as a supervision signal. This allows the network to refine its pose estimates using visual similarity and even learn from unlabeled data—all while maintaining millisecond-level inference speeds suitable for real-time applications.

Introduction

Camera relocalization—determining the 6-DoF position and orientation of a camera from a single image—is a cornerstone of AR, VR, and autonomous robotics. Historically, researchers have split into two camps:

  1. Structure-based methods: These use 3D models to match 2D pixels to 3D points. They are highly accurate but computationally heavy.
  2. Absolute Pose Regression (APR): These use a single CNN to regress the pose directly. They are incredibly fast but often suffer from poor accuracy and lack an explicit understanding of scene geometry.

Direct-PoseNet addresses this by giving an APR network the geometric "common sense" of structure-based methods without sacrificing its speed.

Methodology

The core innovation is the Direct Matching Module, which uses a Neural Radiance Field (NeRF) to provide a photometric supervision signal during training.

Direct-PoseNet architecture integrating a CNN pose regressor with a NeRF-based volume rendering module for photometric supervision.

The Pipeline

When an image is fed into the APR network (a MobileNetV2-based architecture), it predicts a camera pose. This predicted pose is then handed to a pre-trained NeRF, which renders a synthetic "view" of the scene from that exact perspective.

Photometric Loss

The system calculates the difference (L2 distance) between the actual input image and the NeRF-rendered synthetic image. Because the NeRF renderer is differentiable, this "photometric error" can be backpropagated to update the weights of the APR network. This allows the model to learn from unlabeled training data, as the photometric loss only requires an input image and a rendered view, not a ground-truth label.

Coarse-to-Fine Encoding

To handle "outward-looking" scenes, the authors implemented a coarse-to-fine positional encoding strategy that gradually introduces high-frequency details, significantly reducing rendering artifacts. Crucially, the NeRF module is discarded after training, ensuring inference remains extremely fast.

Experimental Results

The authors evaluated Direct-PoseNet on the 7-Scenes and LLFF benchmarks. The method achieved the best performance among all single-image APR methods on the 7-Scenes benchmark.

Quantitative comparison on the 7-Scenes benchmark, showing Direct-PoseNet's superior performance among APR methods.

Key Performance Metrics

  • Accuracy Gains: On 7-Scenes, the average median error dropped to 0.16m and 5.17° when using unlabeled data, a significant improvement over the original PoseNet (0.44m / 10.44°).
  • Efficiency: The model maintains a tiny memory footprint and runs in roughly 6ms on a standard GPU.
  • Robustness: On the LLFF dataset, the method correctly localized 78% of frames within a 5cm/5° threshold, outperforming iterative optimization methods like iNeRF.

Discussion and Conclusion

Direct-PoseNet demonstrates that NeRF can serve as an effective implicit proxy for scene geometry. By adding a rendering step during training, the network receives immediate feedback on the geometric plausibility of its pose estimates. To ensure valid rotation matrices, the authors utilize Singular Value Decomposition (SVD) during inference, providing more stability than traditional quaternion regression.

While the method's accuracy is currently capped by the quality of the underlying NVS system, it represents a significant step toward combining the speed of regression with the geometric rigor of structure-based localization. Future work will explore more unconstrained NeRF variants to handle dynamic objects and outdoor environments.

Summary updated

BibTeX
@inproceedings{chen2021direct,
  author = {Shuai Chen and Zirui Wang and Victor Prisacariu},
  title = {{Direct-PoseNet: Absolute Pose Regression with Photometric Consistency}},
  booktitle = {3DV},
  year = {2021},
  url = {https://openreview.net/forum?id=UfNw6WiE4bu},
}
Figure