Learning to Localize in Unseen Scenes with Relative Pose Regressors

Ofer Idan, Yoli Shavit, Yosi Keller
3/5/2023
cs.CV

No official code found. Best implementation: yolish/relformer (12 stars, last commit 2026-01-14).

Abstract

Relative pose regressors (RPRs) localize a camera by estimating its relative translation and rotation to a pose-labelled reference. Unlike scene coordinate regression and absolute pose regression methods, which learn absolute scene parameters, RPRs can (theoretically) localize in unseen environments, since they only learn the residual pose between camera pairs. In practice, however, the performance of RPRs is significantly degraded in unseen scenes. In this work, we propose to aggregate paired feature maps into latent codes, instead of operating on global image descriptors, in order to improve the generalization of RPRs. We implement aggregation with concatenation, projection, and attention operations (Transformer Encoders) and learn to regress the relative pose parameters from the resulting latent codes. We further make use of a recently proposed continuous representation of rotation matrices, which alleviates the limitations of the commonly used quaternions. Compared to state-of-the-art RPRs, our model is shown to localize significantly better in unseen environments, across both indoor and outdoor benchmarks, while maintaining competitive performance in seen scenes. We validate our findings and architecture design through multiple ablations. Our code and pretrained models is publicly available.

View on arXivView PDF

Code Implementations(1)

yolish/relformerCommunity100%
122PythonJan 23, 20239 months ago

Similar Papers

Cite this paper

@article{idan2023learning,
  title  = {Learning to Localize in Unseen Scenes with Relative Pose Regressors},
  author = {Ofer Idan and Yoli Shavit and Yosi Keller},
  year   = {2023},
  eprint = {2303.02717},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.02717v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.02717.svg)](https://codeofpaper.com/paper/2303.02717)

Discussion