InNeRF360: Text-Guided 3D-Consistent Object Inpainting on 360° Neural Radiance Fields

Dongqing Wang, Tong Zhang, Alaa Abboud, Sabine Süsstrunk

Introduction

Neural Radiance Fields (NeRFs) have transformed 3D scene representation, enabling photorealistic rendering from novel viewpoints. However, editing these implicit representations—specifically removing objects—remains a significant challenge. Unlike explicit meshes or point clouds, NeRFs store scene information within neural network weights, making direct deletion impossible. InNeRF360 introduces a framework for text-guided object removal in 360° unbounded scenes, ensuring 3D consistency and eliminating common artifacts.

Overview of the InNeRF360 framework showing object removal from a 360° scene.

The Challenge of 3D Inconsistency

The standard approach to NeRF editing involves modifying the 2D training images and retraining the model. However, independent 2D inpainting of multiple views often leads to "3D inconsistency." Because 2D inpainters lack spatial awareness, the generated background for a removed object varies slightly across different camera angles. When a NeRF attempts to optimize for these conflicting pixels, it produces "floaters"—ghostly, semi-transparent artifacts that appear suspended in mid-air. This issue is particularly acute in 360° scenes where perspective shifts are extreme.

Methodology: A Two-Stage Pipeline

InNeRF360 addresses these challenges through a two-stage process: multiview consistent segmentation followed by 3D-aware inpainting and refinement.

The InNeRF360 pipeline, illustrating multiview consistent segmentation and the refinement process using 3D diffusion priors.

1. Multiview Consistent Segmentation

The process begins with a text prompt (e.g., "Remove the vase"). The system employs GLIP for object detection and the Segment Anything Model (SAM) for initial mask generation. To maintain consistency across views, the authors introduce Depth-Warping Prompt Refinement. By leveraging the NeRF's internal depth estimates, points from a mask in a reference view are projected into other views. This geometric anchoring prevents the segmentation mask from "drifting" as the viewpoint changes, ensuring the same 3D volume is masked in every image.

2. Inpainting and 3D Refinement

Once consistent masks are obtained, the regions are filled using the LaMa image inpainter. To resolve the resulting 3D inconsistencies and eliminate floaters, the NeRF is finetuned using two critical priors:

  • Geometric Prior (3D Diffusion): A 3D diffusion model, pre-trained on geometric datasets like ShapeNet, is used to distinguish between valid surfaces and low-density "hallucinated" floaters. This allows the system to effectively "scrub" away artifacts.
  • Appearance Prior (LPIPS): A perceptual patch-based loss ensures that the newly inpainted textures are visually harmonious with the surrounding environment.

Evaluation and Results

The framework was evaluated on standard benchmarks (Mip-NeRF 360, NeRFStudio) and custom datasets designed to provide ground truth for object removal.

Key Findings:

  • Visual Quality: InNeRF360 successfully removes objects from complex environments—such as a bulldozer in a yard—where previous methods like SPIn-NeRF failed or left significant artifacts.
  • Quantitative Performance: The method demonstrated superior performance in perceptual metrics, achieving lower LPIPS and FID scores compared to per-frame inpainting baselines.
  • User Preference: In a user study, InNeRF360 was overwhelmingly preferred (71% to 92% across scenes) due to its superior temporal and spatial consistency.

Conclusion

InNeRF360 demonstrates that high-quality, 3D-consistent object removal in NeRFs is achievable by combining text-guided segmentation with 3D diffusion priors. By shifting the focus from perfect 2D inpainting to 3D-aware refinement, the framework effectively solves the "floater" problem. While currently dependent on the accuracy of 2D foundation models and the complexity of 3D priors, it sets a new standard for intuitive and consistent 3D scene editing.

Summary updated

BibTeX
@inproceedings{wang2024innerf,
  author = {Dongqing Wang and Tong Zhang and Alaa Abboud and Sabine Süsstrunk},
  title = {{InNeRF360: Text-Guided 3D-Consistent Object Inpainting on 360° Neural Radiance Fields}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  doi = {10.1109/cvpr52733.2024.01205},
}
Figure