TL;DR
The authors introduce CrowdEraser, a generative framework designed to remove humans and their associated shadows from egocentric "walking tour" videos to create clean, human-free environment walkthroughs. By building EgoCrowds—a novel semi-synthetic dataset of paired crowded and empty video clips—they successfully fine-tune a state-of-the-art video diffusion model to handle complex urban backgrounds and heavy occlusions, ultimately enabling high-fidelity 3D/4D scene reconstruction where raw videos fail.
What Problem Does This Paper Address?
First-person "walking tour" videos on platforms like YouTube offer an incredibly rich, globally diverse source of visual data for mapping urban environments. However, using these videos directly for 3D neural rendering or autonomous driving simulation is notoriously difficult. Because the camera is at eye-level, pedestrians and crowds frequently block the view, occlude structural details, and cast complex shadows.
Existing video inpainting methods struggle when a large percentage of the frame is blocked or when pedestrians walk close to the camera. State-of-the-art diffusion models often suffer from a domain shift when applied to these complex, dynamic outdoor scenes, resulting in visual artifacts, blurred backgrounds, or "ghost" shadows left behind.
Methods
To overcome these challenges, the authors developed CrowdEraser by fine-tuning the Casper video diffusion model (originally designed for object-effect removal). The core innovation lies in how they trained the model using a carefully designed semi-synthetic data generation pipeline.
- Semi-Synthetic Compositing: Since it is practically impossible to capture the exact same real-world walking tour video with and without crowds, the authors separated clean background clips from foreground human clips sourced from real videos.
- Shadow Simulation: Simply pasting humans onto backgrounds looks unrealistic. The pipeline automatically estimates a physical contact "pivot point" for each person, applies random affine transformations (flipping, shearing, and scaling) to the human mask to create a shadow geometry, and applies a Gaussian blur to simulate realistic soft shadows.
- Motion-Aware Loss Function: To ensure the inpainted backgrounds don't flicker over time, the authors introduced a composite loss function. Along with the standard diffusion denoising loss ($L_{base}$), they integrated a motion sub-loss ($L_{sub}$) that penalizes discrepancies in the temporal derivatives of the predicted noise across consecutive frames.
Datasets
The authors introduced EgoCrowds, a new semi-synthetic dataset consisting of 1,000 training pairs and 35 testing pairs of 7-second video clips (197 frames at 16 fps, 720×1280 resolution).
- Backgrounds: Sourced from 64 full-length videos spanning 50 cities globally to ensure architectural diversity. Clips were filtered using Grounded-SAM-2 to ensure they contained fewer than 5 people in 90% of the frames.
- Foregrounds: Sourced from 10 distinct cities and categorized into five "Crowd%" bins (0-10% up to 40-50% frame occlusion) to ensure a uniform distribution of crowd densities during training.
Key Insights and Ideas
- Domain Shift vs. Architecture: The authors discovered that foundation video diffusion models like Casper fail on walking tours not because of their underlying architecture, but due to a domain shift in training data. Targeted fine-tuning on a domain-specific dataset drastically improves robustness.
- Shadows Matter: Excluding shadow simulation from training severely degrades performance. Without it, the model successfully removes the person but leaves their cast shadow intact, creating an unnatural "ghosting" effect.
- Crowd Density Balancing: Training uniformly across different crowd occupancy levels (Crowd%) prevents the model from experiencing "color bleeding" or blurring when confronted with large, close-up subjects that dominate the frame.
Key Results
CrowdEraser significantly outperformed competitive baselines (ProPainter, DiffuEraser, and the vanilla Casper model) both quantitatively and qualitatively.
- Quantitative Evaluation: On the EgoCrowds test set, CrowdEraser achieved the highest average PSNR (26.74) and the best perceptual similarity scores (DreamSim: 0.022), maintaining a substantial lead as the crowd density increased to 40-50%.
- Downstream 3D Reconstruction: The authors tested the inpainted videos using SpatialTrackerV2 (a 3D point tracking model). While raw videos with human motion caused the 3D reconstruction to become sparse and unstable, the humanless videos generated by CrowdEraser produced coherent scene structures, denser point clouds, and sharper background details.
Limitations and Future Work
Despite its success, CrowdEraser has a few notable limitations:
- Temporal Consistency Windows: The underlying diffusion backbone processes fixed-length clips of 85 frames. For very long videos with sustained occlusions, the inpainted regions can still lack long-range global temporal consistency.
- High-Frequency Detail Blur: In extremely crowded scenarios (high Crowd%), the model occasionally struggles to recover fine-grained, high-frequency background textures, leading to minor artifacts.
- Future Directions: The authors suggest incorporating temporal memory mechanisms to improve long-range coherence and integrating explicit 3D geometric constraints to boost structural fidelity.
Summary updated