TL;DR
This paper introduces RefFusion, a novel method for 3D scene inpainting that leverages personalized 2D diffusion models to achieve high-quality, controllable scene edits. By adapting diffusion models to a reference image, RefFusion significantly improves multi-view consistency and detail in inpainted 3D scenes, outperforming existing methods in object removal and demonstrating versatility in other editing tasks.
What Problem Does This Paper Address?
Modern 3D scene representations, like neural radiance fields (NeRFs) and 3D Gaussian splatting, offer impressive visual fidelity but often lack editability. A key challenge is 3D inpainting: replacing missing or unwanted parts of a 3D scene with new content that is consistent across all viewpoints. This is inherently difficult because there are many plausible ways to fill a gap, and ensuring consistency in 3D is much harder than in 2D. Existing methods often struggle with a trade-off between generating diverse content and maintaining multi-view consistency, or they fail to accurately preserve existing scene geometry.
Methods
RefFusion tackles 3D inpainting by adapting powerful 2D image inpainting diffusion models for use in 3D. The core innovation lies in multi-scale personalization of these diffusion models. Instead of using a generic diffusion model, RefFusion first fine-tunes a pre-trained 2D inpainting diffusion model (specifically, using LoRA for parameter efficiency) on crops from a user-provided reference image of the scene. This personalization adapts the diffusion model's "understanding" to the specific scene, reducing the variance in the optimization process and leading to sharper, more consistent results.
The adapted diffusion model is then used to guide the 3D scene reconstruction (represented by 3D Gaussians) via Score Distillation Sampling (SDS). RefFusion introduces a multi-scale SDS objective, using both global and local crops of the reference image to balance overall scene context with fine-grained details. To ensure that gradients only influence the regions that need editing, the paper proposes splitting Gaussians into masked and unmasked sets and applying loss functions selectively. Additionally, they incorporate reference-guided initialization (using the reference image to seed the inpainting process) and regularization terms like depth loss and an adversarial loss to further improve geometry and appearance.
Datasets
The paper primarily uses the SPIn-NeRF dataset for evaluation, which contains scenes with unwanted objects and corresponding ground truth without the objects. To address limitations in camera motion within SPIn-NeRF, the authors introduce a new dataset comprising nine scenes with wider camera baselines, including both forward-facing and 360-degree views.
Key Insights and Ideas
- Personalization is Key: Adapting a 2D diffusion model to a specific scene's reference image is crucial for achieving high-quality, controllable 3D inpainting. Generic models lead to less detailed and less consistent results.
- Multi-Scale Guidance: Using both global and local views of the reference image during the diffusion process helps balance overall scene coherence with fine-grained detail in the inpainted regions.
- Selective Gradient Application: Carefully directing optimization gradients only to the parts of the 3D scene that need to be inpainted (masked Gaussians) prevents unwanted artifacts and preserves existing geometry.
- Reference-Guided Initialization: Starting the inpainting process with information directly from the reference image significantly improves results compared to random initialization.
Key Results
RefFusion achieves state-of-the-art results on the SPIn-NeRF dataset, outperforming baselines like SPIn-NeRF-SD, Inpaint3D, and Reference-guided NeRF in terms of LPIPS (a perceptual similarity metric). A user study also showed that RefFusion was preferred by raters for both overall quality and object removal. Qualitatively, RefFusion produces sharper, more detailed, and more multi-view consistent inpaintings. The paper also demonstrates the method's effectiveness in other applications like object insertion, scene outpainting, and sparse view reconstruction.
Limitations and Future Work
The authors acknowledge that removing very large objects that significantly obscure the reference image remains a challenge. They suggest that further fine-tuning the diffusion model on the target dataset could help. While LoRA speeds up personalization, the process can still be time-consuming. Future work could explore recent advances in multi-view aware and video diffusion models to further enhance multi-view consistency, especially for dynamic scenes.
Summary updated