ImLoc: Revisiting Visual Localization with Image-based Representation
Xudong Jiang, Fangjinhua Wang, Silvano Galliani, Christoph Vogel, Marc Pollefeys
TL;DR
ImLoc reframes visual localization by keeping a 2D image-based map augmented with dense depth maps, enabling strong geometric reasoning without building a global 3D model. The pipeline uses retrieval for coarse localization, dense per-pixel matching with RoMa to generate dense 2D-2D correspondences, which are lifted to 2D-3D via precomputed depth maps and solved with a GPU-accelerated LO-RANSAC PnP, yielding state-of-the-art accuracy under memory-efficient map sizes. The approach showcases robust performance across diverse benchmarks (Oxford Day & Night, LaMAR, Cambridge, Aachen) and supports flexible memory-accuracy trade-offs (nano/micro maps) through aggressive compression and configurable depth/rgb resolutions. The work emphasizes simplicity, adaptability, and scalability, offering a practical baseline for robust, storage-efficient visual localization in dynamic environments and providing code and models for reproducibility. Overall, ImLoc demonstrates that depth-augmented 2D image representations coupled with dense matching can rival or surpass more complex 3D or NVS-based methods while maintaining easy maintenance and updateability.
Abstract
Existing visual localization methods are typically either 2D image-based, which are easy to build and maintain but limited in effective geometric reasoning, or 3D structure-based, which achieve high accuracy but require a centralized reconstruction and are difficult to update. In this work, we revisit visual localization with a 2D image-based representation and propose to augment each image with estimated depth maps to capture the geometric structure. Supported by the effective use of dense matchers, this representation is not only easy to build and maintain, but achieves highest accuracy in challenging conditions. With compact compression and a GPU-accelerated LO-RANSAC implementation, the whole pipeline is efficient in both storage and computation and allows for a flexible trade-off between accuracy and highest memory efficiency. Our method achieves a new state-of-the-art accuracy on various standard benchmarks and outperforms existing memory-efficient methods at comparable map sizes. Code will be available at https://github.com/cvg/Hierarchical-Localization.
