Neural Rerendering in the Wild

Moustafa Meshry, Dan B. Goldman, Sameh Khamis, Hugues Hoppe, Rohit Pandey, Noah Snavely, Ricardo Martin-Brualla

Abstract

We present a framework for total scene capture that reconstructs and renders 3D scenes from unorganized internet photo collections. By combining traditional Structure-from-Motion (SfM) with a novel staged neural rerendering pipeline, our method generates photorealistic walkthroughs of landmarks. The system successfully handles extreme variations in lighting and weather while enabling the removal of transient objects like crowds, providing a controllable and consistent 3D experience from messy, real-world data.

Introduction

Capturing a complete 3D experience of a landmark typically requires specialized equipment or controlled conditions. While traditional 3D reconstruction techniques like Structure-from-Motion can convert vacation photos into 3D point clouds, the results are often noisy and fail to account for the diversity of lighting conditions (e.g., noon vs. sunset) or transient objects like tourists. Existing neural rendering methods often struggle with such uncontrolled data, frequently "hallucinating" ghosts of pedestrians or becoming confused by inconsistent white balance and exposure across different cameras.

"Neural Rerendering in the Wild" addresses these challenges by using a 3D model as a geometric scaffold for a neural network, bridging the gap between unorganized photo collections and high-quality, controllable 3D visualization.

Methods

The proposed pipeline utilizes a multi-step approach to transform noisy 3D proxies into realistic imagery:

  1. Proxy Reconstruction: A dense point cloud is generated from internet photos using COLMAP.
  2. Deep Buffer Rendering: For any viewpoint, the system renders a "deep buffer" containing depth, albedo, and semantic labels (e.g., sky, building, pedestrian).
  3. Staged Appearance Training: To decouple appearance from geometry, the authors use a three-stage training process:
  4. Appearance Encoder: A style-based triplet loss maps images into a latent appearance space, grouping images with similar lighting regardless of viewpoint.
  5. Rerenderer Training: A network maps deep buffers and a fixed appearance vector to a realistic image.
  6. Joint Fine-tuning: Both components are tuned together to sharpen final results.
  7. Semantic Conditioning: By incorporating semantic masks, the model learns to identify transient objects. This allows users to render a "clean" version of a landmark by setting the pedestrian mask to zero during inference.
Figure 1: The deep buffer rendering process, showing depth maps, albedo proxies, and semantic segmentation masks used as input for the neural rerenderer.

Datasets

The model was evaluated on five large-scale datasets reconstructed from public internet photos: Sacre Coeur (1,165 images), Trevi Fountain (3,006 images), Pantheon (4,972 images), Dubrovnik (5,891 images), and San Marco (7,711 images). These datasets are particularly challenging as they span multiple years, seasons, and thousands of different camera models.

Key Results and Insights

A core insight of this work is the use of 3D as Scaffolding. While pure 2D synthesis often fails at geometric consistency, the noisy 3D proxy provides a spatial anchor that keeps the architecture stable while the network focuses on textures and lighting. Furthermore, by decoupling appearance from geometry through style loss, the system enables "appearance transfer"—applying the lighting from a single sunset photo to a completely different viewpoint where no such photo exists.

Figure 2: Examples of appearance transfer, demonstrating the model's ability to render the same scene under diverse lighting conditions (day, sunset, night).

In a randomized user study, participants preferred images generated by this system over the previous state-of-the-art (Shan et al.) 69.9% of the time. Quantitatively, the staged training approach consistently outperformed baseline image-to-image models across VGG perceptual loss, L1 error, and PSNR metrics.

Limitations and Future Work

Despite its success, the model faces several challenges:

  • Temporal Flickering: Video sequences can suffer from inconsistencies as predictions vary slightly between frames.
  • Neural Artifacts: The model may produce "screendoor" patterns or distort fine text and inscriptions.
  • Dependency on Segmentation: Errors in automated semantic segmentation (e.g., misidentifying ground as water) can lead to rendering artifacts.
  • Geometric Holes: Large missing sections in the initial 3D proxy force the network to hallucinate structure, often resulting in blurry patches.

Future research aims to jointly train the segmentation and rerendering networks to increase robustness against labeling errors.

Summary updated

BibTeX
@inproceedings{meshry2019neural,
  author = {Moustafa Meshry and Dan B. Goldman and Sameh Khamis and Hugues Hoppe and Rohit Pandey and Noah Snavely and Ricardo Martin-Brualla},
  title = {{Neural Rerendering in the Wild}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.00704},
}
Figure