Papers › Rethinking Visual Geo-localization for Large-Scale Applications

Rethinking Visual Geo-localization for Large-Scale Applications

5 Apr 2022CVPR 2022 1arXiv:2204.02287archive 2025-07-28

Gabriele Berton, Carlo Masone, Barbara Caputo

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. 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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2204.02287")

Code

Syntology Ran 6 of 10 code samples harvested from 3 repositories linked to this paper; 4 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 5 ran with no contract checked.

By repository: official repository: 7 samples from 1 repository, 4 ran; community (archive-listed): 2 samples from 1 repository, 1 ran; found in paper text by Syntology: 1 sample from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

gmberton/cosplace officialmentioned in papermentioned on GitHubpytorchMIT report
stschubert/vpr_tutorial mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 6 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
5ran
4unverified

Licence: 2 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Flatten gmberton/CosPlace/cosplace_model/cosplace_network.py official repository ran MIT (permissive) · bcef70112e3e16de · report
GeM gmberton/CosPlace/cosplace_model/cosplace_network.py official repository ran fingerprinted MIT (permissive) · 05b61e284a5179a3 · report
L2Norm gmberton/CosPlace/cosplace_model/cosplace_network.py official repository ran MIT (permissive) · a52c26b55a0e2d80 · report
gem gmberton/CosPlace/cosplace_model/cosplace_network.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 79f68aea8273d062 · report
GeoLocalizationNet gmberton/CosPlace/cosplace_model/cosplace_network.py official repository unverified MIT (permissive) · c726b15ccc929238 · report
get_backbone gmberton/CosPlace/cosplace_model/cosplace_network.py official repository unverified MIT (permissive) · 1522a0277165c6be · report
get_pretrained_torchvision_model gmberton/CosPlace/cosplace_model/cosplace_network.py official repository unverified MIT (permissive) · 4102a46eb0cc1ac7 · report
ImageDataset stschubert/vpr_tutorial/feature_extraction/feature_extractor_cosplace.py community (archive-listed) ran GPL-3.0 (copyleft) · pointer only · d0085f34014c954b · report
CosPlaceFeatureExtractor stschubert/vpr_tutorial/feature_extraction/feature_extractor_cosplace.py community (archive-listed) unverified GPL-3.0 (copyleft) · pointer only · afaa2c01250f7753 · report
NetVLAD yxgeee/OpenIBL/ibl/models/netvlad.py found in paper text by Syntology ran MIT (permissive) · 0ddf7bafa24d2ba9 · report

Tasks

Contrastive LearningImage ClassificationImage RetrievalVisual Place Recognitiongeo-localization

1 archive task tag without a task page not shown.

Datasets

Introduced by this paper, per the archive.

SF-XL

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Visual Place Recognition 17 Places CosPlace Recall@1 61.08 #7 of 8 Archive leaderboard report
Visual Place Recognition Baidu Mall CosPlace Recall@1 41.62 #8 of 8 Archive leaderboard report
Visual Place Recognition Gardens Point CosPlace Recall@1 74.00 #4 of 7 Archive leaderboard report
Visual Place Recognition Hawkins CosPlace Recall@1 31.36 #5 of 7 Archive leaderboard report
Visual Place Recognition Laurel Caverns CosPlace Recall@1 24.11 #7 of 7 Archive leaderboard report
Visual Place Recognition MSLS CosPlace Recall@1 79.6 #3 of 3 Archive leaderboard report
Visual Place Recognition Mapillary val CosPlace (ResNet-101 2048-D) Recall@1 86.7 #12 of 18 Archive leaderboard report
Visual Place Recognition Mapillary val CosPlace (ResNet-101 2048-D) Recall@10 93.4 #12 of 18 Archive leaderboard report
Visual Place Recognition Mapillary val CosPlace (ResNet-101 2048-D) Recall@5 92.1 #12 of 18 Archive leaderboard report
Visual Place Recognition Mapillary val CosPlace Recall@10 91.8 #18 of 18 Archive leaderboard report
Visual Place Recognition Mapillary val CosPlace Recall@5 89.9 #18 of 18 Archive leaderboard report
Visual Place Recognition Mid-Atlantic Ridge CosPlace Recall@1 20.79 #7 of 7 Archive leaderboard report
Visual Place Recognition Nardo-Air CosPlace Recall@1 0 #7 of 7 Archive leaderboard report
Visual Place Recognition Nardo-Air R CosPlace Recall@1 91.55 #2 of 8 Archive leaderboard report
Visual Place Recognition Oxford RobotCar Dataset CosPlace Recall@1 91.10 #2 of 7 Archive leaderboard report
Visual Place Recognition Pittsburgh-250k-test CosPlace Recall@1 91.5 #13 of 13 Archive leaderboard report
Visual Place Recognition Pittsburgh-250k-test CosPlace Recall@10 97.9 #13 of 13 Archive leaderboard report
Visual Place Recognition Pittsburgh-250k-test CosPlace Recall@5 96.9 #13 of 13 Archive leaderboard report
Visual Place Recognition Pittsburgh-30k-test CosPlace Recall@1 90.45 #14 of 22 Archive leaderboard report
Visual Place Recognition Pittsburgh-30k-test CosPlace (ResNet-101 2048-D) Recall@1 90.4 #15 of 22 Archive leaderboard report
Visual Place Recognition Pittsburgh-30k-test CosPlace (ResNet-101 2048-D) Recall@5 95.7 #15 of 22 Archive leaderboard report
Visual Place Recognition SF-XL test v1 CosPlace Recall@1 64.7 #5 of 5 Archive leaderboard report
Visual Place Recognition SF-XL test v1 CosPlace Recall@10 76.6 #5 of 5 Archive leaderboard report
Visual Place Recognition SF-XL test v1 CosPlace Recall@5 73.3 #5 of 5 Archive leaderboard report
Visual Place Recognition SF-XL test v2 CosPlace Recall@1 83.4 #5 of 5 Archive leaderboard report
Visual Place Recognition SF-XL test v2 CosPlace Recall@10 94.1 #5 of 5 Archive leaderboard report
Visual Place Recognition SF-XL test v2 CosPlace Recall@5 91.6 #5 of 5 Archive leaderboard report
Visual Place Recognition St Lucia CosPlace Recall@1 99.59 #8 of 14 Archive leaderboard report
Visual Place Recognition St Lucia CosPlace Recall@5 99.9 #8 of 14 Archive leaderboard report
Visual Place Recognition Tokyo247 CosPlace Recall@1 82.2 #12 of 14 Archive leaderboard report
Visual Place Recognition Tokyo247 CosPlace (ResNet-101 2048-D) Recall@10 96.5 #14 of 14 Archive leaderboard report
Visual Place Recognition Tokyo247 CosPlace (ResNet-101 2048-D) Recall@5 95.9 #14 of 14 Archive leaderboard report
Visual Place Recognition VP-Air CosPlace Recall@1 8.12 #6 of 7 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections