Command Palette
Search for a command to run...
Pair-VPR: Place-Aware Pre-training and Contrastive Pair Classification for Visual Place Recognition with Vision Transformers
Stephen Hausler; Peyman Moghadam

Abstract
In this work we propose a novel joint training method for Visual Place Recognition (VPR), which simultaneously learns a global descriptor and a pair classifier for re-ranking. The pair classifier can predict whether a given pair of images are from the same place or not. The network only comprises Vision Transformer components for both the encoder and the pair classifier, and both components are trained using their respective class tokens. In existing VPR methods, typically the network is initialized using pre-trained weights from a generic image dataset such as ImageNet. In this work we propose an alternative pre-training strategy, by using Siamese Masked Image Modelling as a pre-training task. We propose a Place-aware image sampling procedure from a collection of large VPR datasets for pre-training our model, to learn visual features tuned specifically for VPR. By re-using the Mask Image Modelling encoder and decoder weights in the second stage of training, Pair-VPR can achieve state-of-the-art VPR performance across five benchmark datasets with a ViT-B encoder, along with further improvements in localization recall with larger encoders. The Pair-VPR website is: https://csiro-robotics.github.io/Pair-VPR.
Code Repositories
Benchmarks
| Benchmark | Methodology | Metrics |
|---|---|---|
| visual-place-recognition-on-mapillary-test | Pair-VPR-p | Recall@1: 81.7 Recall@10: 91.3 Recall@5: 90.2 |
| visual-place-recognition-on-mapillary-test | Pair-VPR-s | Recall@1: 79.0 Recall@10: 88.3 Recall@5: 86.9 |
| visual-place-recognition-on-mapillary-val | Pair-VPR-p | Recall@1: 95.4 Recall@10: 97.7 Recall@5: 97.3 |
| visual-place-recognition-on-mapillary-val | Pair-VPR-s | Recall@1: 93.7 Recall@10: 97.3 Recall@5: 97.2 |
| visual-place-recognition-on-pittsburgh-30k | Pair-VPR-p | Recall@1: 95.4 Recall@10: 98.0 Recall@5: 97.5 |
| visual-place-recognition-on-pittsburgh-30k | Pair-VPR-s | Recall@1: 94.7 Recall@10: 97.8 Recall@5: 97.2 |
| visual-place-recognition-on-tokyo247 | Pair-VPR-s | Recall@1: 98.1 Recall@10: 98.7 Recall@5: 98.4 |
| visual-place-recognition-on-tokyo247 | Pair-VPR-p | Recall@1: 100 Recall@10: 100 Recall@5: 100 |
Build AI with AI
From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.