MegaSaM: Accurate, Fast, and Robust Structure and Motion from Casual Dynamic Videos

Zhengqi Li, Richard Tucker, Forrester Cole, Qianqian Wang, Linyi Jin +4 more
2/9/2026

No official code found. Best implementation: mega-sam/mega-sam (1,336 stars, Apache-2.0, last commit 2026-01-05).

Abstract

We present a system that allows for accurate, fast, and robust estimation of camera parameters and depth maps from casual monocular videos of dynamic scenes. Most conventional structure from motion and monocular SLAM techniques assume input videos that feature predominantly static scenes with large amounts of parallax. Such methods tend to produce erroneous estimates in the absence of these conditions. Recent neural network-based approaches attempt to overcome these challenges; however, such methods are either computationally expensive or brittle when run on dynamic videos with uncontrolled camera motion or unknown field of view. We demonstrate the surprising effectiveness of a deep visual SLAM framework: with careful modifications to its training and inference schemes, this system can scale to real-world videos of complex dynamic scenes with unconstrained camera paths, including videos with little camera parallax. Extensive experiments on both synthetic and real videos demonstrate that our system is significantly more accurate and robust at camera pose and depth estimation when compared with prior and concurrent work, with faster or comparable running times. See interactive results on our project page: mega-sam.github.io.

View on arXivView PDF

Code Implementations(1)

mega-sam/mega-samCommunity72%
Apache-2.0

Code for the project "MegaSaM: Accurate, Fast and Robust Structure and Motion from Casual Dynamic Videos"

1,33684Shell, PythonDec 6, 20249 months agoApache-2.0
pose-estimationvideo-depth

Similar Papers

Cite this paper

@article{li2026megasam,
  title  = {MegaSaM: Accurate, Fast, and Robust Structure and Motion from Casual Dynamic Videos},
  author = {Zhengqi Li and Richard Tucker and Forrester Cole and Qianqian Wang and Linyi Jin and Vickie Ye and Angjoo Kanazawa and Aleksander Holynski and Noah Snavely},
  year   = {2026},
  eprint = {2412.04463},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2412.04463},
  journal = {CVPR 2024 2024}
}

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

Discussion