Deep Permutation Equivariant Structure from Motion

Dror Moran, Hodaya Koslowsky, Yoni Kasten, Haggai Maron, Meirav Galun, Ronen BasriICCV 2021

Abstract

Existing deep methods produce highly accurate 3D reconstructions in stereo and multiview stereo settings, i.e., when cameras are both internally and externally calibrated. Nevertheless, the challenge of simultaneous recovery of camera poses and 3D scene structure in multiview settings with deep networks is still outstanding. Inspired by projective factorization for Structure from Motion (SFM) and by deep matrix completion techniques, we propose a neural network architecture that, given a set of point tracks in multiple images of a static scene, recovers both the camera parameters and a (sparse) scene structure by minimizing an unsupervised reprojection loss. Our network architecture is designed to respect the structure of the problem: the sought output is equivariant to permutations of both cameras and scene points. Notably, our method does not require initialization of camera parameters or 3D point locations. We test our architecture in two setups: (1) single scene reconstruction and (2) learning from multiple scenes. Our experiments, conducted on a variety of datasets in both internally calibrated and uncalibrated settings, indicate that our method accurately recovers pose and structure, on par with classical state of the art methods. Additionally, we show that a pre-trained network can be used to reconstruct novel scenes using inexpensive fine-tuning with no loss of accuracy.

Introduction

Structure from Motion (SfM) is a cornerstone of computer vision, tasked with recovering camera poses and 3D scene geometry from 2D point tracks across multiple images. Traditionally, this problem is solved using Bundle Adjustment (BA), a non-linear optimization process. However, BA is notoriously sensitive to initialization; poor starting guesses for camera positions often lead to local minima. While deep learning has revolutionized many vision tasks, applying it to multiview SfM has been challenging due to the need for pre-calibrated cameras and the difficulty of handling an arbitrary number of cameras and points. This paper introduces a deep learning architecture that addresses these issues by baking permutation equivariance directly into the network, allowing for accurate reconstruction without any initialization.

Methodology

The proposed architecture is designed around the principle of permutation equivariance, ensuring that the physical 3D reconstruction remains consistent regardless of the order in which images or point tracks are presented to the model.

Overview of the proposed architecture, showing the permutation equivariant encoder and the dual heads for 3D points and camera parameters.

Permutation Equivariant Architecture

The model takes a sparse $m \times n \times 2$ tensor as input, representing $n$ point tracks across $m$ images. The core is a shared feature encoder $E$ that utilizes layers ensuring equivariance to permutations of both rows (images) and columns (point tracks). This inductive bias significantly reduces the parameter space and improves robustness. The encoded features are then passed to two dedicated heads:

  • $H_{cams}$: Predicts camera matrices (rotation and translation).
  • $H_{pts}$: Predicts 3D point coordinates.

Unsupervised Learning

The network is trained by minimizing an unsupervised reprojection loss—the distance between the original 2D points and the projections of the recovered 3D points. Additionally, a hinge loss is used to enforce cheirality, ensuring that reconstructed points remain in front of the cameras.

Experimental Results

The authors evaluated the method on standard SfM benchmarks, including Olsson’s and VGG datasets, covering both calibrated and uncalibrated settings. The test cases ranged from small sets of 10 images to large-scale reconstructions with over 400 images and 150,000 point tracks.

Quantitative comparison of translation error ($t_{error}$), rotation error ($R_{error}$), and reprojection error across various scans against classical methods like COLMAP.

As shown in the results, the method achieves sub-pixel reprojection accuracy, performing on par with gold-standard classical tools like COLMAP and VarPro. A key advantage is the "fine-tuning shortcut": a pre-trained network can produce a high-quality initial 3D estimate for a new scene in milliseconds. Subsequent fine-tuning then brings the reconstruction to state-of-the-art accuracy much faster than starting classical optimization from scratch.

Conclusion and Future Work

By leveraging permutation equivariance, this research demonstrates that deep networks can solve the multiview SfM problem without the need for complex initialization schemes. While the current model focuses on sparse reconstructions from pre-detected point tracks, it lays the groundwork for future end-to-end systems that could operate directly on raw pixels, potentially bypassing manual feature matching and achieving dense 3D scene recovery.

Summary updated

BibTeX
@inproceedings{moran2021deep,
  author = {Dror Moran and Hodaya Koslowsky and Yoni Kasten and Haggai Maron and Meirav Galun and Ronen Basri},
  title = {{Deep Permutation Equivariant Structure from Motion}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  url = {https://openreview.net/forum?id=CvYuL3clG8N},
}
Figure