HyperPose: Hypernetwork-Infused Camera Pose Localization and an Extended Cambridge Landmarks Dataset

Ron Ferens, Yosi KellerCVPR 2025

Abstract

Absolute Camera Pose Regressors (APRs) offer a computationally efficient alternative to structure-based localization methods but often struggle with accuracy and environmental robustness. We present HyperPose, a framework that integrates hypernetworks into APRs to dynamically generate model weights based on input image features. This allows the model to adapt to varying lighting, weather, and seasonal conditions on the fly. We also introduce the Extended Cambridge Landmarks (ECL) dataset, which uses generative AI to simulate diverse environmental conditions for more rigorous benchmarking. Our multi-scene model, MS-HyperPose, achieves state-of-the-art performance on standard benchmarks while maintaining real-time inference capabilities.

Introduction

Camera pose localization—determining the 6-degree-of-freedom (6DoF) position and orientation of a camera from a single image—is essential for autonomous systems and augmented reality. While structure-based methods are highly accurate, they are often too memory-intensive for edge devices. APRs are faster and lighter but suffer from a significant "domain gap." A model trained on static weights often fails when the test environment differs from the training environment (e.g., sunny vs. rainy). HyperPose addresses this by treating network weights as dynamic functions of the input visual context.

Methods

Hypernetwork-Infused Architecture

The core innovation of HyperPose is the transition from static to dynamic weights in the regression heads. In a standard APR, a CNN backbone extracts features which are then processed by a Multi-Layer Perceptron (MLP) with fixed weights. HyperPose introduces an auxiliary hypernetwork that takes these features as input and predicts the weights ($\theta_h$) for the primary network's regression heads.

Comparison between baseline APR and Hypernetwork-infused architecture.

This "hyper-infusion" allows the model to essentially reconfigure itself for every image. If a query image is dark or blurry, the hypernetwork generates weights optimized for those specific visual conditions, effectively narrowing the domain gap without requiring retraining.

MS-HyperPose

To scale this approach to multiple scenes, we proposed MS-HyperPose. This model utilizes dual-branch Transformers—one for position and one for orientation—to handle multiple locations within a single architecture. Hypernetworks are integrated into these branches to refine the final 6DoF predictions based on the selected scene index.

Detailed architecture of MS-HyperPose featuring dual-branch Transformers and Hypernetworks.

Datasets and the Extended Cambridge Landmarks (ECL)

HyperPose was evaluated on standard benchmarks including Cambridge Landmarks, 7 Scenes, and Oxford RobotCar. To further test robustness, we introduced the Extended Cambridge Landmarks (ECL) dataset. Using the generative tool InstructPix2Pix, we augmented original images to create synthetic versions representing different seasons (winter, summer) and times of day (evening). This provides a challenging benchmark for testing how well models handle out-of-distribution environmental shifts.

Key Results

  • State-of-the-Art Performance: MS-HyperPose achieved the best average results among APR methods on Cambridge Landmarks (1.27m / 2.41°) and 7 Scenes (0.18m / 7.12°).
  • Consistent Gains: Adding a hypernetwork to a baseline APR reduced the average error on the Cambridge dataset from 1.13m to 1.08m.
  • Real-Time Efficiency: Despite the added complexity, MS-HyperPose maintains an inference time of approximately 30.93ms, making it suitable for real-time applications on edge devices.
  • Robustness: The model significantly outperformed original baselines on the Oxford RobotCar dataset, particularly in challenging "Full" loops with high environmental variation.

Limitations and Future Work

The primary trade-off for HyperPose is model size; MS-HyperPose requires 571MB compared to 71MB for its non-hypernetwork counterpart. Additionally, while it leads the APR field, it still trails structure-based methods in absolute precision. Future research will focus on weight compression and more efficient hypernetwork architectures to reduce the memory footprint while scaling to city-scale environments.

Summary updated

BibTeX
@inproceedings{ferens2025hyperpose,
  author = {Ron Ferens and Yosi Keller},
  title = {{HyperPose: Hypernetwork-Infused Camera Pose Localization and an Extended Cambridge Landmarks Dataset}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01078},
}
Figure