Learning the Depths of Moving People by Watching Frozen People

Zhengqi Li, Tali Dekel, Forrester Cole, Richard Tucker, Noah Snavely, Ce Liu, William T. Freeman

Abstract

We present a method for predicting dense depth in scenarios where both a monocular camera and people in the scene are freely moving. Existing methods for recovering depth for dynamic, non-rigid objects from monocular video impose strong assumptions on the objects' motion and may only recover sparse depth. In this paper, we take a data-driven approach and learn human depth priors from a new source of data: thousands of Internet videos of people imitating mannequins, i.e., freezing in diverse, natural poses, while a hand-held camera tours the scene. Since the people are stationary, training data can be created from these videos using multi-view stereo reconstruction. At inference time, our method uses motion parallax cues from the static areas of the scenes, and shows clear improvement over state-of-the-art monocular depth prediction methods. We demonstrate our method on real-world sequences of complex human actions captured by a moving hand-held camera, and show various 3D effects produced using our predicted depth.

Introduction

Recovering the 3D structure of a scene from a single moving camera is a cornerstone of computer vision, typically handled by techniques like Structure-from-Motion (SfM) or Multi-View Stereo (MVS). However, these methods rely on a fundamental assumption: the scene must be static.

When people move, they violate the "epipolar constraint"—the geometric rule that allows us to triangulate points in 3D space. As a result, moving people are often treated as "noise" or outliers by traditional algorithms, leading to distorted or missing depth information. While monocular (single-image) depth estimation exists, it often struggles with the complex, articulated poses of humans and lacks the consistency needed for high-quality video applications like Augmented Reality (AR) or advanced video editing.

Data Acquisition: The Mannequin Challenge

The authors take a data-driven approach, but they face a "chicken and egg" problem: to train a model to predict depth for moving people, you need ground-truth depth data for moving people, which is incredibly difficult to capture at scale. Their breakthrough was realizing that the Mannequin Challenge—a viral internet trend where groups of people freeze in place while a camera tours the scene—provides the perfect training data.

Because the people are "frozen," the scene is technically static, allowing the researchers to use standard MVS (specifically the COLMAP system) to generate highly accurate ground-truth depth maps. This resulted in the MannequinChallenge (MC) Dataset, consisting of ~2,000 YouTube videos and over 170,000 valid image-depth pairs.

Methodological Framework

The proposed model architecture uses a variant of the "hourglass" network to process multiple inputs and produce a refined depth map.

Overview of the training pipeline using the MannequinChallenge dataset and inference on dynamic scenes.

Model Inputs

  • RGB Image: The reference frame for prediction.
  • Human Mask: A binary mask identifying human regions.
  • Initial Depth from Flow: This map is calculated using motion parallax from the static background between two frames. This provides the network with a geometric "hint" about the environment's scale.

The network's job is to "inpaint" the depth for the human regions (where motion parallax fails during real movement) and refine the depth for the rest of the scene. Training is guided by scale-invariant Mean Squared Error (MSE) loss, multi-scale gradient loss for sharp edges, and edge-aware smoothness loss.

Experimental Results

The model significantly outperformed state-of-the-art methods like DORN (monocular) and DeMoN (motion stereo) on both the MC test set and the TUM RGBD dataset, a standard benchmark providing independent ground-truth depth.

Quantitative and Qualitative Performance

On the TUM RGBD dataset, the proposed model achieved a scale-invariant RMSE of 0.221, compared to 0.338 for DeMoN and 0.351 for DORN. Qualitatively, the depth maps produced are noticeably sharper and more consistent.

Depth predictions generated by the model for sequences featuring moving people and a moving camera.

These high-quality predictions enable several impressive visual effects:

  • Synthetic Defocus: Adding realistic "bokeh" blur behind moving subjects.
  • Object Insertion: Placing 3D virtual objects that are correctly occluded by moving people.
  • People Removal: Using depth-aware inpainting to cleanly remove people from a video.

Discussion and Limitations

While the model represents a major step forward, some limitations persist. It currently assumes known camera poses, which can be difficult to calculate in shaky or featureless videos. Additionally, the model is specifically tuned for humans; moving cars, pets, or swaying trees can still cause depth errors. Future work aims to extend these learned priors to entire dynamic scenes, moving toward a fully monocular video reconstruction that handles all moving elements within an environment.

Summary updated

BibTeX
@inproceedings{li2019learning,
  author = {Zhengqi Li and Tali Dekel and Forrester Cole and Richard Tucker and Noah Snavely and Ce Liu and William T. Freeman},
  title = {{Learning the Depths of Moving People by Watching Frozen People}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  url = {https://openreview.net/forum?id=GKxE54Oi1Su},
}
Figure