One shot 3D photography

Johannes Kopf, Kevin Matzen, Suhib Alsisan, Ocean Quigley, Francis Ge, Yangming Chong, Josh Patterson, Jan-Michael Frahm, Shu Wu, Matthew Yu, Peizhao Zhang, Zijian He, Peter Vajda, Ayush Saraf, Michael F. Cohen · OpenReview

Abstract

This paper presents an end-to-end system for generating "3D photos"—images with interactive parallax—from a single 2D input directly on a mobile device. By combining a highly optimized monocular depth estimation network with a novel approach to inpainting on Layered Depth Images (LDIs), the authors achieve high-quality results in just over one second of processing time. The system has been deployed at scale, demonstrating robustness across millions of real-world captures.

Introduction

Traditional 3D photography typically requires specialized hardware, such as dual-lens cameras, or multiple shots to estimate depth and reconstruct occluded regions. Even when depth information is available, "moving the camera" in a 2D image reveals empty gaps (disocclusions) behind foreground objects. Existing research solutions for filling these gaps are often too computationally expensive for mobile hardware, require excessive memory, or produce inconsistent results when viewed from different angles. This work aims to democratize 3D photography by making it fast, accessible on single-lens devices, and robust enough for real-world social media deployment.

Methodology

The system follows a four-stage pipeline optimized for mobile efficiency, processing an image in approximately 1,098ms on an iPhone 11 Pro.

Overview of the 3D photography pipeline: (a) Input, (b) Depth estimation, (c) Layer generation, (d) Color inpainting, (e) Meshing, and (f) final Novel view.

Depth Estimation (Tiefenrausch)

The authors developed a custom U-Net architecture optimized via Neural Architecture Search (NAS). To ensure real-time performance, they utilized 8-bit quantization and efficient building blocks. The resulting model is an order of magnitude smaller (3.3 MiB) than state-of-the-art baselines like MiDaS (142 MiB) while maintaining competitive accuracy.

LDI Generation and Inpainting (Farbrausch)

The 2D image is "lifted" into a Layered Depth Image (LDI) representation. A weighted median filter is used to sharpen depth discontinuities, preventing the "stretched" look commonly seen at object edges. To fill gaps revealed by parallax, the authors adapted 2D inpainting techniques to work directly on the LDI structure. By treating the LDI as a 4-connected graph, they map standard convolutional operators onto the irregular 3D geometry, ensuring the inpainted background is consistent regardless of the viewing angle.

Meshing

Finally, the LDI is converted into a simplified, textured triangle mesh. This representation is compact enough for fast transmission over poor networks and can be rendered at real-time frame rates using standard mobile GPUs.

Detail of the meshing stage, showing the simplified triangle mesh generated from the LDI to enable real-time GPU rendering.

Datasets and Training

The depth estimation network was trained on MegaDepth, with a PSPNet-based preprocessing step to specifically handle sky regions. ReDWeb was used for training the inpainting network due to its dense depth supervision. For production versions, a proprietary dataset of 2.0 million dual-camera images further refined depth accuracy.

Results and Impact

  • Performance: The entire pipeline runs in ~1.1 seconds on modern mobile hardware (iPhone 11 Pro).
  • Efficiency: The depth model occupies only 3.3 MiB, making it ideal for mobile app integration and over-the-air updates.
  • Scale: The system was deployed within the Facebook app and has been used over 100 million times, proving its robustness across diverse lighting conditions and subjects.
  • Quality: Quantitative metrics (PSNR/SSIM) show that LDI-based inpainting outperforms standard screen-space methods in geometric consistency.

Discussion and Limitations

A major insight of this work is treating the LDI as a locally 2D structure, allowing the use of weights from networks trained on standard 2D images for 3D geometry without needing massive 3D occlusion datasets. However, the system relies on hallucination for occluded regions and cannot "see" through semi-transparent surfaces like glass or smoke. Thin structures like hair or fine branches can still cause depth errors. Future work may involve interactive tools for manual depth adjustment or artistic enhancement.

Summary updated

BibTeX
@article{kopf2020one,
  author = {Johannes Kopf and Kevin Matzen and Suhib Alsisan and Ocean Quigley and Francis Ge and Yangming Chong and Josh Patterson and Jan-Michael Frahm and Shu Wu and Matthew Yu and Peizhao Zhang and Zijian He and Peter Vajda and Ayush Saraf and Michael F. Cohen},
  title = {{One shot 3D photography}},
  journal = {ACM Trans. Graphics},
  year = {2020},
  doi = {10.1145/3386569.3392420},
}
Figure