Divide&Classify: Fine-Grained Classification for City-Wide Visual Place Recognition

Gabriele Trivigno, G. Berton, Carlo Masone, J. Aragon, Barbara Caputo
2/14/2026

No official code found. Best implementation: ga1i13o/Divide-and-Classify (24 stars, last commit 2023-11-09).

Abstract

Visual Place recognition is commonly addressed as an image retrieval problem. However, retrieval methods are impractical to scale to large datasets, densely sampled from city-wide maps, since their dimension impact negatively on the inference time. Using approximate nearest neighbour search for retrieval helps to mitigate this issue, at the cost of a performance drop. In this paper we investigate whether we can effectively approach this task as a classification problem, thus bypassing the need for a similarity search. We find that existing classification methods for coarse, planet-wide localization are not suitable for the fine-grained and city-wide setting. This is largely due to how the dataset is split into classes, because these methods are designed to handle a sparse distribution of photos and as such do not consider the visual aliasing problem across neighbouring classes that naturally arises in dense scenarios. Thus, we propose a partitioning scheme that enables a fast and accurate inference, preserving a simple learning procedure, and a novel inference pipeline based on an ensemble of novel classifiers that uses the prototypes learned via an angular margin loss. Our method, Divide&Classify (D&C), enjoys the fast inference of classification solutions and an accuracy competitive with retrieval methods on the fine-grained, city-wide setting. Moreover, we show that D&C can be paired with existing retrieval pipelines to speed up computations by over 20 times while increasing their recall, leading to new state-of-the-art results. Code is available at https://github.com/ga1i13o/Divide-and-Classify

View on arXivView PDF

Code Implementations(1)

Official repository for ICCV23 paper "Divide&Classify: Fine-Grained Classification for City-Wide Visual Place Recognition"

240PythonAug 11, 20232 years ago

Similar Papers

Cite this paper

@article{trivigno2026divideclassify,
  title  = {Divide&Classify: Fine-Grained Classification for City-Wide Visual Place Recognition},
  author = {Gabriele Trivigno and G. Berton and Carlo Masone and J. Aragon and Barbara Caputo},
  year   = {2026},
  eprint = {2307.08417},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2307.08417},
  journal = {ICCV 2023 2023}
}

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

Discussion