NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Removing Objects From Neural Radiance Fields

Silvan Weder, Guillermo Garcia-Hernando, Áron Monszpart, Marc Pollefeys, Gabriel J. Brostow, Michael Firman, Sara Vicente

Introduction

Neural Radiance Fields (NeRFs) have transformed 3D scene capture, allowing for high-fidelity reconstruction from a set of 2D images. However, editing these scenes—specifically removing unwanted objects—remains a significant challenge. Unlike 2D images where a single "hole" can be filled, removing an object from a 3D NeRF requires reconstructing the hidden geometry and appearance from multiple viewpoints. Simply deleting the object leaves a void in the 3D data that must be seamlessly inpainted to maintain visual consistency.

Overview of the object removal process: Input images with masks are processed to generate novel views without the target object, outperforming standard NeRF reconstructions.

The Challenge of 3D Inconsistency

While 2D image inpainting is a mature field, applying it to 3D scenes is non-trivial. If a user inpaints dozens of different photos of a room to remove a chair, a generative AI model will likely fill in the background slightly differently in every frame. When a NeRF is trained on these inconsistent images, the resulting 3D model becomes a blurry, "cloudy" mess of artifacts. The optimization process fails because it cannot find a single 3D geometry that satisfies all the conflicting 2D "hallucinations."

Proposed Methodology

This paper introduces a framework for "3D-consistent inpainting" that leverages the generative power of 2D inpainters while enforcing 3D structural integrity through a novel selection mechanism.

1. 2D Inpainting and Dual-Head Architecture

The process begins by projecting a user-defined 3D bounding box into 2D masks for all frames. A state-of-the-art 2D inpainter (LaMa) fills these holes in both RGB and depth maps. To handle the resulting inconsistencies, the authors modify the NeRF architecture to include two "color heads":

  • Standard Head ($F^c_\Theta$): Accounts for view-dependent effects like specularities.
  • Auxiliary Head ($F^{MV}_\Theta$): Forced to be view-independent, helping the model distinguish the true underlying scene from inconsistent artifacts.

2. Confidence-Based View Selection

The core innovation is a mechanism that identifies which 2D inpaintings are "liars." The system assigns a learnable uncertainty variable ($u_n$) to every inpainted image. During training, the model identifies views that do not agree with the 3D consensus of other viewpoints. Through iterative refinement, the system calculates median confidence across all views and discards the most inconsistent images, progressively cleaning the 3D reconstruction.

Comparison of inpainting quality: The proposed selection mechanism filters out inconsistent "bad" inpaintings to achieve a sharp, 3D-consistent result.

Experimental Results

To evaluate the method, the authors introduced a new benchmark consisting of 17 real-world scenes captured via iPhone and a synthetic dataset using ShapeNet models to provide ground-truth data for the hidden backgrounds.

  • Quantitative Performance: On synthetic data, the proposed method achieved a PSNR of 29.437, significantly higher than the 27.568 achieved by a standard NeRF trained on all inpainted images without selection.
  • Qualitative Quality: The method successfully maintains sharp textures and consistent geometry across novel views, effectively eliminating the "flickering" or "ghostly" artifacts common in previous video-based or object-compositional NeRF approaches.

Limitations and Future Work

While the framework represents a major step forward, it remains bounded by the quality of the underlying 2D inpainter. If the initial 2D guesses are poor across all frames, the NeRF cannot reach a valid consensus. Additionally, the current method does not explicitly remove shadows or reflections cast by the original object unless they are manually included in the mask. Future work may involve automating shadow detection and improving the retention of high-frequency textures in the inpainted regions.

Summary updated

BibTeX
@inproceedings{weder2022removing,
  author = {Silvan Weder and Guillermo Garcia-Hernando and Áron Monszpart and Marc Pollefeys and Gabriel J. Brostow and Michael Firman and Sara Vicente},
  title = {{Removing Objects From Neural Radiance Fields}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure