3D Moments from Near-Duplicate Photos

Qianqian Wang, Zhengqi Li, David Salesin, Noah Snavely, Brian Curless, Janne Kontkanen · DOI

Abstract

Near-duplicate photos are a ubiquitous byproduct of modern mobile photography, often captured in quick succession to ensure a single high-quality shot. While these images contain rich information about both scene dynamics and spatial geometry, existing methods for animating them—such as 2D frame interpolation or 3D photo effects—fail to simultaneously provide realistic camera parallax and dynamic scene motion. We present "3D Moments," a system that transforms a pair of near-duplicate photos into a cinematic 3D video. By representing the scene through Feature-based Layered Depth Images (LDIs) and 3D scene flow, our approach enables smooth interpolation and realistic rendering of disocclusions. Quantitative and qualitative evaluations demonstrate that 3D Moments significantly outperforms existing baselines in perceptual quality, achieving an LPIPS score of 0.078 on benchmark datasets.

Introduction

We have all experienced the "near-duplicate" phenomenon: a gallery filled with five nearly identical photos of a laughing friend or a jumping pet. Traditionally, these images remain static and unviewed. Transforming these pairs into a cohesive animation presents a significant technical challenge. Current solutions typically fall into two categories, both of which are limited: 2D frame interpolation creates smooth motion but lacks 3D depth, while 3D photo effects (like the Ken Burns effect) create parallax from a single image but cannot handle movement within the scene.

The 3D Moments system addresses this by jointly inferring 3D geometry, scene dynamics, and "inpainting" the background content that is hidden in the original photos but becomes visible as the camera or subjects move. This allows for the creation of short, cinematic videos that feel both alive and spatially deep.

Methodology

The core of the 3D Moments pipeline is a representation that combines Feature-based Layered Depth Images (LDIs) with 3D scene flow.

Alignment and Depth Estimation

The process begins by aligning the two input images using a homography to account for slight camera jitter. The system then employs a state-of-the-art monocular depth estimator (DPT) to predict the 3D structure of each shot.

Feature-based Layered Representation

Instead of treating the images as flat planes, the system uses an LDI representation. This breaks the scene into multiple depth layers, allowing the system to "see" behind foreground objects. A pre-trained network is used to inpaint color and depth into these hidden regions.

A key innovation here is Feature-based Rendering. Rather than moving raw pixels—which often leads to "tears" or "ghosting" if the depth estimation is slightly off—the system extracts deep neural features for each layer. Rendering in feature space allows the final synthesis network to learn to compensate for minor errors in geometry or flow.

Motion and Rendering

To transition between the two photos, the system calculates 3D scene flow vectors that describe the movement of every point in 3D space. To render an intermediate frame at time $t$, the system uses Bidirectional Splatting. Features from both images are projected toward the target time and blended using a weight map $W_t$. This map prioritizes the foreground and the image closest in time to the target frame, ensuring a smooth and realistic transition.

Experiments and Results

The model was trained on the Vimeo-90K dataset for general motion interpolation and the Mannequin Challenge dataset for 3D view synthesis. Evaluation was conducted using the NVIDIA Dynamic Scenes and UCSD Multi-View Video benchmarks, which provide ground-truth intermediate frames for comparison.

Quantitative Performance

On the UCSD dataset, 3D Moments achieved an LPIPS score of 0.078 (where lower is better). This significantly outperformed the best existing baseline, which scored 0.123. Qualitatively, the system produces much cleaner edges around moving subjects and more realistic "disocclusions" when background elements are revealed.

Computational Efficiency

On an NVIDIA V100 GPU, the system requires approximately 4.5 seconds to process the initial photo pair. Once processed, it can render subsequent video frames in about 0.7 seconds each, making it viable for consumer-facing applications.

Discussion and Insights

Several design choices contribute to the success of 3D Moments:

  • Up-Front Inpainting: By inpainting the LDI representation once at the start rather than per-frame, the system ensures temporal consistency, preventing the distracting flickering common in other video synthesis methods.
  • Robustness to Unknown Poses: Unlike NeRF-based methods that require precise camera coordinates, 3D Moments works on "in-the-wild" photos where camera pose is unknown, making it highly practical for mobile users.

Limitations and Future Work

Despite its strengths, the system faces challenges with very thin structures or semi-transparent objects (like hair or glass) that can confuse monocular depth estimation. Additionally, extremely fast or non-linear motion can lead to optical flow failure and "smearing" artifacts. Future research may focus on automatic "best pair" selection to help users identify the most suitable photos in their libraries for 3D transformation.

Conclusion

3D Moments provides a novel framework for breathing life into static photo galleries. By combining deep feature rendering with layered depth representations, the system successfully bridges the gap between 2D interpolation and 3D photography, offering a practical and high-quality solution for creating dynamic 3D memories.

Summary updated

BibTeX
@misc{wang2022d,
  author = {Qianqian Wang and Zhengqi Li and David Salesin and Noah Snavely and Brian Curless and Janne Kontkanen},
  title = {{3D Moments from Near-Duplicate Photos}},
  year = {2022},
  eprint = {2205.06255},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.06255},
}
Figure