Tracking Everything Everywhere All at Once

Qianqian Wang, Yen-Yu Chang, Ruojin Cai, Zhengqi Li, Bharath Hariharan, Aleksander Holynski, Noah Snavely · DOI

Abstract

We present a new test-time optimization method for estimating dense and long-range motion from a video sequence. Prior optical flow or particle video tracking algorithms typically operate within limited temporal windows, struggling to track through occlusions and maintain global consistency of estimated motion trajectories. We propose a complete and globally consistent motion representation, dubbed OmniMotion, that allows for accurate, full-length motion estimation of every pixel in a video. OmniMotion represents a video using a quasi-3D canonical volume and performs pixel-wise tracking via bijections between local and canonical space. This representation allows us to ensure global consistency, track through occlusions, and model any combination of camera and object motion. Extensive evaluations on the TAP-Vid benchmark and real-world footage show that our approach outperforms prior state-of-the-art methods by a large margin both quantitatively and qualitatively.

Introduction

Estimating motion in video sequences is a fundamental task in computer vision, traditionally divided into dense optical flow (short-range, prone to drift) and sparse feature tracking (long-range, but limited to specific points). OmniMotion bridges this gap by providing a dense, full-length, and globally consistent pixel tracking framework. By representing video as a "quasi-3D" canonical volume linked by invertible neural networks, OmniMotion can track every pixel through complex occlusions and long durations, as shown in Figure 1.

OmniMotion achieves dense, long-range tracking across diverse scenarios including animals and sports.

Methodology

The core of OmniMotion is a move away from 2D pixel-space tracking toward a quasi-3D representation that enforces physical constraints.

Quasi-3D Canonical Volume

Instead of treating video frames as independent 2D planes, OmniMotion constructs a single, time-independent 3D "atlas" or canonical volume of the entire scene. This volume stores the geometry and color of all elements appearing throughout the video.

Local-Canonical Bijections

The system learns a bijective mapping between the local 3D space of each individual frame and the global canonical volume. These mappings are implemented using Invertible Neural Networks (specifically Real-NVP). Because these mappings are mathematically reversible, a point tracked from frame $i$ to the canonical space and then to frame $j$ is guaranteed to be consistent, inherently solving the "cycle consistency" problem.

Occlusion Handling and Optimization

To manage occlusions, OmniMotion employs a NeRF-like alpha compositing approach. It renders pixels by shooting rays through the local 3D space, mapping sampled points to the canonical volume to retrieve density and color. The model is optimized per-video, using initial noisy estimates from existing flow models (like RAFT) as a guide. A "hard mining" strategy is used during optimization to focus the model's learning on fast-moving or difficult-to-track objects.

Experiments and Results

The performance of OmniMotion was evaluated on the TAP-Vid benchmark, which includes real-world datasets like DAVIS and Kinetics, as well as synthetic datasets like RGB-Stacking.

Quantitative Performance

OmniMotion significantly outperforms previous state-of-the-art methods. On the DAVIS dataset, it achieved an Average Jaccard (AJ) score of 51.7, a substantial improvement over the 39.9 achieved by the previous leader, PIPs. The method also demonstrates superior Temporal Coherence (TC), producing smoother and more physically realistic trajectories.

Qualitative Analysis

Qualitatively, OmniMotion excels in scenarios with extended occlusions. While baseline methods often lose tracks when objects pass behind obstacles, OmniMotion maintains the identity and trajectory of pixels throughout the entire sequence. Figure 2 illustrates the method's robustness across a wide variety of challenging motions.

Qualitative results across the TAP-Vid benchmark showing robust tracking through occlusions and complex motion.

Conclusion and Future Work

OmniMotion represents a significant step toward the "Holy Grail" of motion estimation. By leveraging a quasi-3D representation and bijective mappings, it ensures global consistency and handles occlusions more effectively than 2D-based methods. However, the current reliance on test-time optimization makes it computationally expensive, often requiring hours to process short clips. Future research will focus on accelerating this process through meta-learning and extending the representation to handle even more complex deformations and longer sequences.

Summary updated

BibTeX
@misc{wang2023tracking,
  author = {Qianqian Wang and Yen-Yu Chang and Ruojin Cai and Zhengqi Li and Bharath Hariharan and Aleksander Holynski and Noah Snavely},
  title = {{Tracking Everything Everywhere All at Once}},
  year = {2023},
  eprint = {2306.05422},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.05422},
}
Figure