InpaintNeRF360: Text-Guided 3D Inpainting on Unbounded Neural Radiance Fields

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

Introduction

Neural Radiance Fields (NeRFs) have transformed 3D scene reconstruction, allowing for high-fidelity captures from sets of 2D images. However, editing these scenes—specifically removing unwanted objects—remains a significant challenge. Unlike 2D images where pixels can be easily manipulated, NeRFs are implicit representations stored within neural network weights. InNeRF360 introduces a framework to remove objects from 360° unbounded NeRFs using simple text prompts like "remove the flowerpot."

InNeRF360 enables object removal in 360° scenes by processing multiview inputs into a consistent, inpainted 3D representation.

The Challenge of 360° Inpainting

The primary difficulty in 360° inpainting is maintaining consistency across views. In unbounded environments, the background revealed behind a removed object changes drastically as the camera orbits. If 2D inpainting across different training views is even slightly inconsistent, the NeRF optimization process produces "floaters"—cloudy, semi-transparent artifacts that hover in the scene. Existing methods often struggle with these artifacts when dealing with full 360° captures.

The InNeRF360 Pipeline

InNeRF360 addresses these issues through a two-stage process that ensures both segmentation and inpainting are consistent across all views.

The InNeRF360 pipeline consists of two main stages: Multiview Consistent Segmentation using depth-warping and SAM, followed by Inpainted NeRF Initialization with 3D diffusion priors to eliminate artifacts.

1. Multiview Consistent Segmentation

To accurately remove an object, the system must first identify it in every training image.

  • Initialization: The system uses GLIP (a language-image model) to identify bounding boxes from text prompts and SAM (Segment Anything Model) to generate initial masks.
  • Depth-Warping Refinement: To synchronize masks across views, the authors employ "Depth Warp." By projecting mask points from one view into 3D space using the NeRF's depth data and then back-projecting them into other views, they create consistent "prompts" for SAM. This ensures the segmentation is spatially synchronized across the entire 360° sequence.

2. Artifact-Free Inpainting

Once the object is masked, the system fills the resulting holes while preventing the formation of floaters.

  • Inpainted NeRF Initialization: A standard 2D inpainter provides an initial guess for the masked regions in the training images.
  • 3D Diffusion Geometric Prior: To eliminate floaters, the framework incorporates a 3D diffusion model. This model acts as a geometric "sanity check," penalizing random clumps of density that do not resemble valid 3D structures.
  • Perceptual Refinement: A patch-based LPIPS loss is used to ensure the texture of the inpainted area blends seamlessly with the surrounding environment, maintaining high visual quality.

Key Results and Insights

The authors evaluated InNeRF360 on standard benchmarks (Mip-NeRF 360) and custom datasets specifically designed with ground truth (scenes captured with and without target objects).

  • Floater Suppression: InNeRF360 significantly outperforms baselines like SPIn-NeRF in suppressing "ghostly" remnants and floaters, particularly in complex 360° orbits.
  • Quantitative Performance: On the "Cup" dataset, InNeRF360 improved the FID score (a measure of image quality) from 252.34 to 159.76.
  • User Preference: In a user study, InNeRF360's results were judged as more consistent between frames 71% to 92% of the time compared to per-frame editing methods.

A key insight of the work is that semantic identity is more stable than geometric appearance in 360° scenes. By leveraging text-guided models and using the NeRF's own internal geometry to refine them, the system creates a robust feedback loop for high-quality editing.

Conclusion

InNeRF360 provides a powerful solution for cleaning up 3D scenes. By combining language-guided segmentation with 3D geometric priors, it overcomes the "floater" problem that has long plagued NeRF editing. While currently focused on object removal, the integration of mask-conditioned generative models suggests a future where full 3D scene manipulation—including object swapping and stylization—is possible through simple natural language commands.

Summary updated

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