TL;DR
The paper introduces Kapture, an open-source unified data format and toolbox designed to overcome format fragmentation in visual localization and Structure-from-Motion (SfM) research. Alongside this format, the authors present a state-of-the-art hierarchical localization pipeline featuring Fast-R2D2, a modified local feature extractor that delivers a 3x speedup and significantly lower memory footprint with zero loss in pose accuracy.
What Problem Does This Paper Address?
Visual localization—estimating a camera's precise 6-degrees-of-freedom (6DoF) position and orientation from an image—is a cornerstone technology for self-driving cars, robotics, and AR/VR. However, evaluating these algorithms is notoriously difficult because the community lacks data standards.
Popular SfM and localization tools (like COLMAP, OpenMVG, and Bundler) all use incompatible custom data formats. Furthermore, none of these formats natively support the full stack of modern multi-sensor data, such as global image features, depth maps, LiDAR point clouds, or non-vision data (WiFi, IMU, GPS). This fragmentation forces researchers to write tedious conversion scripts and limits their ability to test algorithms across diverse, challenging environments.
Methods
The authors tackle these challenges with a three-pronged approach:
- The Kapture Format & Toolbox: A unified open-source data specification that handles both raw sensor inputs (images, camera rigs, timestamps, and non-vision sensors) and processed reconstruction data (local/global features, matches, and 3D points). It includes a suite of conversion tools and a built-in dataset downloader.
- A Versatile Hierarchical Pipeline: A standard structure-based localization pipeline that uses global image retrieval to find candidate map images, performs local feature matching, and solves the Perspective-n-Point (PnP) problem within a RANSAC loop to determine the final pose.
- Fast-R2D2: The original R2D2 local feature extractor preserves fine details by processing images at full resolution, which is computationally expensive and memory-intensive. The authors modify this architecture by introducing an early downsampling (pooling) step inside the network, processing the lower-resolution representation, and upsampling right before the final prediction branches.
Datasets
To demonstrate Kapture's flexibility, the authors converted and evaluated their pipeline on eight major public benchmarks representing both indoor and outdoor environments under changing conditions (day/night, seasons, weather):
- Aachen Day-Night v1.1
- RobotCar Seasons v2
- Extended CMU-Seasons
- SILDa Weather and Time of Day
- InLoc (challenging indoor university buildings)
- Cambridge Landmarks
- 7-scenes
- Baidu-mall (where baseline maps were built using LiDAR)
- 12-scenes (used for supplementary validation)
Key Insights and Ideas
- Downsampling Can Maintain (or Improve) Accuracy: Counterintuitively, the early downsampling step in Fast-R2D2 did not degrade localization performance. In fact, it slightly improved accuracy on several datasets while drastically reducing the computational burden.
- Late Fusion Combats Outliers: Combining multiple global descriptors (APGeM, NetVLAD, DELG) using a late fusion operator called Generalized Weighted Harmonic Mean (GHARM) consistently outperformed any single descriptor, proving highly robust against environmental changes like night-to-day transitions.
- Spatial Distance Beats Visual Features for Mapping: When selecting image pairs to build a 3D map, ranking pairs based on actual spatial distance (camera poses) yielded better results than using global visual features, as it avoids the visual biases inherent to specific feature descriptors.
Key Results
- 3x Speedup with Fast-R2D2: Fast-R2D2 achieved a threefold increase in processing speed and a significantly smaller memory footprint. For instance, on the large images of the InLoc test set, the original R2D2 crashed due to out-of-memory errors on a 16GB GPU, whereas Fast-R2D2 processed them seamlessly in under 5.5 seconds.
- State-of-the-Art Performance: Powered by Kapture, the proposed pipeline ranked at the top across all eight evaluated datasets, setting new state-of-the-art performance records on Aachen Day-Night, RobotCar, Cambridge Landmarks, and 7-scenes.
Limitations and Future Work
While the pipeline excels at single-camera localization, the authors note that directly leveraging multi-camera rigs during the localization step (via generalized P3P solvers) warrants deeper investigation, particularly for edge cases where individual cameras fail to find enough feature matches. Additionally, the authors highlight that integrating and fully exploring alternative RANSAC frameworks (such as those in RansacLib) remains an open task for future community development using the Kapture framework.
Summary updated