TL;DR
This paper introduces a novel framework for 3D scene inpainting that allows users to edit Neural Radiance Fields (NeRFs) using just a single inpainted 2D reference image. By combining monocular depth estimation with a unique "view-substitution" rendering technique and bilateral solvers, the authors achieve state-of-the-art multiview consistency and user controllability in 3D object removal and insertion.
The Challenge of 3D Inpainting
While 2D image inpainting—filling in missing or unwanted parts of a photo—has become incredibly powerful thanks to diffusion models, translating this success to 3D scenes is difficult. If you independently inpaint every frame of a video or every view of a NeRF, the results are often "view-inconsistent." The inpainted object might look different or shift slightly as the camera moves, leading to jarring visual artifacts.
Existing 3D inpainting methods often struggle with two primary factors:
- Consistency: Ensuring that textures and lighting (view-dependent effects) look the same from all angles.
- Controllability: Giving the user an easy way to specify what should go into the hole (e.g., replacing an object with a rubber duck versus a flower pot).
Reference-Guided Propagation
The authors propose a "reference-guided" approach. Instead of trying to solve the whole 3D volume at once, they ask the user to inpaint just one reference view. The system then propagates that information to the rest of the 3D scene through several technical innovations.
Technical Methodology
- Geometry Supervision: The system uses a monocular depth estimator to predict the 3D structure of the inpainted reference image. To ensure this prediction fits the 3D scene, a weighted alignment technique "tilts" and scales the depth map to match the existing NeRF geometry.
- View-Substitution: This is a core technical novelty. To handle view-dependent effects (VDEs) like reflections or highlights, the system renders the scene from the reference camera's perspective but "tricks" the NeRF into using the directional light information from a different (target) camera.
- Bilateral Solver for Residuals: The difference (residual) between the reference view and these "view-substituted" renders is calculated. A bilateral solver then "diffuses" these residuals from the known parts of the image into the masked area, ensuring lighting and texture transitions look natural from every angle.
- Disocclusion Handling: When the camera moves, it may reveal parts of the background that were hidden in the reference view. The authors identify these "disoccluded" pixels and use a 2D inpainter to fill them in specifically, ensuring the background remains complete.
Key Insights and Results
The most significant insight is that a single, high-quality 2D edit is enough to supervise an entire 3D NeRF if you have the right geometric anchors. This drastically simplifies the user workflow. By decoupling geometry (via monocular depth) and appearance (via the bilateral solver), the model avoids the blurry artifacts common when a NeRF tries to average out inconsistent 2D inpaintings.
The proposed method, Ours-SD (using Stable Diffusion as the 2D inpainter), outperformed all existing baselines on the SPIn-NeRF dataset:
- Quantitative: It achieved the best scores in full-reference metrics like LPIPS (perceptual similarity) and FID (statistical realism), reducing the FID score by approximately 25% compared to the previous state-of-the-art.
- Qualitative: The method produces much sharper textures and more stable geometry than previous methods like "NeRF-In" or "Masked NeRF."
- Controllability: By simply changing the text prompt for the single reference image (e.g., from "a red fence" to "a flower pot"), the entire 3D scene updates to reflect that specific change consistently.
Limitations and Future Work
While effective, the bilateral solver can sometimes fail if a masked region is completely isolated from the rest of the image (an "edge island"), leading to a loss of detail. Additionally, if the initial monocular depth prediction is significantly wrong, the 3D geometry of the inpainted area may look slightly distorted. Future work may extend this framework to handle even larger, more complex object insertions as 2D generative models continue to improve.
Summary updated