Repopulating Street Scenes

Yifan Wang, Andrew Liu, Richard Tucker, Jiajun Wu, Brian L. Curless, Steven M. Seitz, Noah Snavely · DOI

Introduction

Street-level imagery, exemplified by platforms like Google Street View, has become an indispensable tool for navigation, urban planning, and virtual tourism. However, these images are frequently cluttered with transient objects—pedestrians, cyclists, and vehicles—that can obscure landmarks or raise significant privacy concerns. While traditional image editing tools exist, they often fail in the complex context of urban street scenes. Two primary obstacles hinder realistic editing: the persistent "ghost" effects of unremoved shadows and the difficulty of maintaining geometric and lighting consistency when inserting new objects.

Researchers from the University of Washington, Google, and Stanford have introduced a novel deep learning framework designed to "repopulate" these scenes. By realistically removing existing objects and their shadows, and subsequently inserting new, anonymized characters with geometrically accurate scale and lighting, the system enables high-fidelity urban scene manipulation.

The Repopulation Pipeline

The core of this research is a modular pipeline consisting of four specialized neural networks, each addressing a specific aspect of the editing process.

The complete pipeline for street scene repopulation, showing the transition from the original image to the final composition through removal, estimation, and insertion stages.
  1. Removal Network: Standard inpainting techniques often focus solely on the object's bounding box, leaving behind the object's shadow. This creates a tell-tale "ghost" that ruins the illusion. The proposed removal network identifies both the object and its associated shadow. It utilizes a "flow map" to intelligently borrow textures from repetitive structures in the surrounding environment—such as building facades, windows, or road markings—to fill the resulting gaps realistically.
  2. Sun Estimation Network: To ensure that any newly inserted object looks like it belongs in the scene, the system must understand the lighting environment. This network predicts the sun’s position (azimuth and elevation) from a single outdoor image. By treating this as a classification problem over discretized bins, the model achieves robust performance across various times of day and weather conditions.
  3. Geometry-Aware Composition: Using depth estimation (via the MiDaS model) and semantic segmentation, the system calculates the appropriate 3D scale for inserted objects. This ensures that a person placed further down a street appears appropriately smaller and is correctly occluded by foreground elements like trees or lamp posts.
  4. Insertion Network: This stage synthesizes realistic, soft shadows for the new objects. By taking the shadow-free composite and the predicted sun position, the network generates shadows that respect the underlying geometry of the street, grounding the object in its new environment.

Self-Supervised Training via Timelapse Bursts

A major challenge in training such a system is the lack of "ground truth" data—images of the exact same street with and without specific people or cars. The authors solved this by leveraging short timelapse bursts from Google Street View.

The 'Clean Plate' trick: using the median of a short timelapse sequence to generate ground truth background images for training.

By capturing a few seconds of video where objects are in motion, the researchers can compute a median image. Because the background remains static while pedestrians and vehicles move, the median operation effectively filters out the transient objects, creating a "clean plate" of the empty street. This clever use of temporal data allowed the team to collect a massive dataset of 142,778 image/background pairs for training, enabling the networks to learn complex photometric relationships without manual labeling.

Key Insights and Results

The research highlights that for outdoor scenes, shadows are "first-class citizens." The realism of an edit depends as much on the shadow's removal or insertion as it does on the object itself. Furthermore, the study demonstrates that a simple 2D sun position is often sufficient for generating plausible shadows, bypassing the need for complex HDR environment maps.

Quantitatively, the removal network outperformed state-of-the-art inpainting models (such as CRA) on the LPIPS metric, which measures perceptual similarity. The framework achieved a score of 0.104 compared to 0.107, with the performance gap widening significantly on sunny days where shadow management is most critical. Qualitatively, the system successfully "empties" busy urban corridors and "repopulates" them with stock characters that appear naturally integrated rather than floating on the surface.

Applications and Ethical Considerations

The practical applications of this technology are diverse. Beyond enhancing privacy by replacing real individuals with stock characters, the system can be used for "Interactive Reconfiguration." This allows urban planners or autonomous vehicle researchers to simulate rare or hazardous scenarios—such as a pedestrian unexpectedly entering a busy roadway—to better train AI safety systems.

However, the authors also address the ethical implications of such powerful synthetic media tools. The ability to realistically alter the contents of a street scene could be misused to misrepresent neighborhood demographics or create deceptive visual narratives. The paper concludes by advocating for responsible deployment, including the use of clear watermarking to distinguish edited images from authentic captures.

Summary updated

BibTeX
@inproceedings{wang2021repopulating,
  author = {Yifan Wang and Andrew Liu and Richard Tucker and Jiajun Wu and Brian L. Curless and Steven M. Seitz and Noah Snavely},
  title = {{Repopulating Street Scenes}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00507},
}
Figure