Rethinking Visual Geo-localization for Large-Scale Applications

Gabriele Berton, Carlo Masone, Barbara Caputo
4/5/2022
330 citations
cs.CV

Official code: gmberton/CosPlace (404 stars, Python, MIT, PyTorch, last commit 2026-03-15).

Abstract

Visual Geo-localization (VG) is the task of estimating the position where a given photo was taken by comparing it with a large database of images of known locations. To investigate how existing techniques would perform on a real-world city-wide VG application, we build San Francisco eXtra Large, a new dataset covering a whole city and providing a wide range of challenging cases, with a size 30x bigger than the previous largest dataset for visual geo-localization.

Show full abstract

We find that current methods fail to scale to such large datasets, therefore we design a new highly scalable training technique, called CosPlace, which casts the training as a classification problem avoiding the expensive mining needed by the commonly used contrastive learning. We achieve state-of-the-art performance on a wide range of datasets and find that CosPlace is robust to heavy domain changes. Moreover, we show that, compared to the previous state-of-the-art, CosPlace requires roughly 80% less GPU memory at train time, and it achieves better results with 8x smaller descriptors, paving the way for city-wide real-world visual geo-localization. Dataset, code and trained models are available for research purposes at https://github.com/gmberton/CosPlace.

View on arXivView PDF

Code Implementations(1)

gmberton/CosPlaceOfficial100%
PyTorchMIT

Official code for CVPR 2022 paper "Rethinking Visual Geo-localization for Large-Scale Applications"

40463PythonMar 27, 20228 months agoMIT
computer-visiondatasetdeep-learningdescriptorsgeolocalization+6 more

Similar Papers

Cite this paper

@article{berton2022rethinking,
  title  = {Rethinking Visual Geo-localization for Large-Scale Applications},
  author = {Gabriele Berton and Carlo Masone and Barbara Caputo},
  year   = {2022},
  eprint = {2204.02287},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.02287}
}

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/2204.02287.svg)](https://codeofpaper.com/paper/2204.02287)

Discussion