Large Scale Joint Semantic Re-Localisation and Scene Understanding via Globally Unique Instance Coordinate Regression

Ignas Budvytis, Marvin Teichmann, Tomas Vojir, Roberto CipollaarXiv 2019

TL;DR

This paper introduces a scalable framework for joint 6-DoF camera localization and 3D scene understanding by breaking down global scene coordinate regression into two simpler tasks: predicting globally unique object instance labels and estimating local coordinates within those instances. By combining these predictions at test time, the method achieves state-of-the-art localization accuracy on city-scale maps that are orders of magnitude larger than those handled by previous scene coordinate regression methods.

What Problem Does This Paper Address?

To navigate safely, autonomous vehicles and robots need to know exactly where they are (6-DoF localization) and what surrounds them (3D scene understanding).

Existing approaches generally fall into two camps, both with significant drawbacks:

  1. Direct Pose Regression (e.g., PoseNet): These networks map an image directly to a camera pose. While computationally efficient, they tend to overfit to transient features (like a parked car) and lack geometric verifiability.
  2. Scene Coordinate Regression (SCR): These methods train a network to predict the absolute 3D scene coordinates for every pixel in an image, using those coordinates to compute the camera pose via a Perspective-n-Point (PnP) solver. SCR provides excellent geometric accuracy but struggles to scale. Mapping an absolute 3D coordinate across an entire city creates a highly complex, non-linear optimization problem that causes standard neural networks to fail.

The authors tackle this scalability gap, enabling SCR methods to expand from small, room-sized environments to large, city-scale trajectories.

Methods

The authors propose a three-step pipeline that reformulates scene coordinate regression:

Figure 2: This figure illustrates the three key steps of our method. First, a densely sampled dataset of images is collected and annotated with both class and globally unique instance labels. From these images a 3D point cloud is build using state-of-the-art library for structure from motion - OpenSFM [1]. Second, a CNN is trained to predict panoptic labels L as well as local PCA whitened coordinates C for each object instance. During the final step predicted local coordinates are unwhitened to obtain corresponding scene coordinates S. EPnP [19] with RANSAC is used for camera pose estimation.
  1. Data Collection & Preprocessing: Panoramic video sequences are collected and annotated with semantic class labels and globally unique instance IDs for static objects (primarily buildings). Structure-from-Motion (SfM) is used to generate a ground-truth 3D point cloud.
  2. CNN Training: Instead of forcing a network to predict absolute global coordinates, the authors train a ResNet-50-based Fully Convolutional Network (FCN) to jointly predict two things per pixel:
  3. A panoptic/instance label identifying the specific building.
  4. Local coordinates relative to that specific building instance (normalized using Principal Component Analysis whitening).
  5. Pose Estimation: At test time, the network's local coordinate predictions are "unwhitened" and combined with the predicted building center coordinates to reconstruct global scene coordinates. These coordinates are then passed to a classical, robust EPnP solver with a RANSAC loop to estimate the final 6-DoF camera pose.

Datasets

The approach was evaluated on both real-world and synthetic autonomous driving datasets:

  • CamVid-360: A real-world dataset of panoramic videos captured via cycling, spanning approximately 1.5 km. The evaluation also included a challenging query sequence extracted from Google StreetView images along the same track.
  • SceneCity (Small & Large): Synthetic city environments rendered in Blender. The Large SceneCity dataset represents a massive scale expansion, spanning an 11.5 km driving length and containing 827 distinct buildings and 966 road segments.
  • SceneCity Small (Missing Buildings): A variant where 20% of the buildings were randomly removed to test the system's robustness to environmental changes.

Key Insights and Ideas

  • Divide and Conquer the Coordinate Space: Factoring global coordinate regression into discrete instance recognition and local coordinate regression drastically simplifies the network's optimization landscape. This separation allows the network to converge significantly faster and maintain high accuracy at scale.
  • Geometric Integrity Over Differentiable Shortcuts: Unlike recent trends that use complex, end-to-end differentiable pose estimators, the authors show that simply relying on a classical PnP solver with RANSAC yields superior results. Differentiable pose layers often introduce a reprojection loss that inadvertently degrades the accuracy of the predicted 3D geometry.
  • Primitives are Plenty: The framework is flexible enough to operate on lightweight, approximate 3D maps built from simple geometric primitives (like building-aligned cuboids) rather than dense, expensive SfM point clouds, making it highly practical for real-world deployment.

Key Results

The proposed method (L5-LRec-Lab) significantly outperformed direct pose regression and standard scene coordinate regression across all benchmarks.

Scene coordinate prediction accuracy and convergence rates across different loss functions.
  • Scalability: On the massive Large SceneCity dataset, standard SCR methods failed completely, predicting 0.00% of pixels within 50 cm of their true location. The authors' method successfully predicted 39% of pixels within this threshold, achieving a median camera translation error of just 20 cm.
  • Real-World Performance: On the real-world CamVid-360 dataset, the method achieved a median distance error of 22 cm and a median angular error of 0.71°.
  • Robustness: When tested against the Google StreetView query sequence (which introduces changes in lighting, camera hardware, and viewpoints), the method maintained a median pose error of 75 cm, whereas competing deep localization methods degraded significantly or failed.

Limitations and Future Work

While highly effective, the authors note a few limitations:

  • Instance Mis-predictions: For pixels further than 4 meters away from their true location, the method's accuracy degrades. This is primarily caused by the network misclassifying globally unique instance labels at long distances.
  • Vertical Geometry Challenges: In the Small SceneCity dataset, the reconstruction quality was relatively lower due to a high density of tall buildings; the network's coordinate accuracy dropped noticeably near the tops of these structures.

For future work, the authors highlight the potential of using approximate primitive maps (like cuboids) to completely eliminate the need for computationally expensive 3D point cloud generation during data preprocessing.

Summary updated

Abstract

In this work we present a novel approach to joint semantic localisation and scene understanding. Our work is motivated by the need for localisation algorithms which not only predict 6-DoF camera pose but also simultaneously recognise surrounding objects and estimate 3D geometry. Such capabilities are crucial for computer vision guided systems which interact with the environment: autonomous driving, augmented reality and robotics. In particular, we propose a two step procedure. During the first step we train a convolutional neural network to jointly predict per-pixel globally unique instance labels and corresponding local coordinates for each instance of a static object (e.g. a building). During the second step we obtain scene coordinates by combining object center coordinates and local coordinates and use them to perform 6-DoF camera pose estimation. We evaluate our approach on real world (CamVid-360) and artificial (SceneCity) autonomous driving datasets. We obtain smaller mean distance and angular errors than state-of-the-art 6-DoF pose estimation algorithms based on direct pose regression and pose estimation from scene coordinates on all datasets. Our contributions include: (i) a novel formulation of scene coordinate regression as two separate tasks of object instance recognition and local coordinate regression and a demonstration that our proposed solution allows to predict accurate 3D geometry of static objects and estimate 6-DoF pose of camera on (ii) maps larger by several orders of magnitude than previously attempted by scene coordinate regression methods, as well as on (iii) lightweight, approximate 3D maps built from 3D primitives such as building-aligned cuboids.
BibTeX
@misc{budvytis2019large,
  author = {Ignas Budvytis and Marvin Teichmann and Tomas Vojir and Roberto Cipolla},
  title = {{Large Scale Joint Semantic Re-Localisation and Scene Understanding via Globally Unique Instance Coordinate Regression}},
  year = {2019},
  eprint = {1909.10239},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.10239},
}
Figure