InFusion: Inpainting 3D Gaussians via Learning Depth Completion from Diffusion Prior

Zhiheng Liu, Hao Ouyang, Qiuyu Wang, Ka Leong Cheng, Jie Xiao, Kai Zhu, Nan Xue, Yu Liu, Yujun Shen, Yang CaoarXiv 2024 · DOI

Introduction

3D scene inpainting—the process of removing objects or filling in missing parts of a 3D reconstruction—is a fundamental task for virtual and augmented reality. While 3D Gaussian Splatting (3DGS) has revolutionized real-time rendering, editing these scenes remains difficult. Existing methods typically attempt to "grow" new Gaussians from the edges of a hole or rely on 2D image inpainting to guide 3D optimization. This often leads to blurry textures due to view inconsistencies and slow optimization because the model lacks precise knowledge of surface geometry.

InFusion addresses these challenges by identifying that the "crux" of the problem is initialization. By accurately predicting the 3D geometry of the missing area before training begins, the process becomes significantly faster and more accurate.

Methodology

The core of InFusion is a pipeline that treats 3D inpainting as a depth completion problem driven by a diffusion prior. The process follows several key steps:

  1. Point Removal: Unwanted Gaussians are segmented and removed based on a user-provided mask.
  2. 2D Reference Inpainting: A reference view is selected, and a standard 2D inpainting model (like SDXL) fills in the color image.
  3. Diffusion-based Depth Completion: The researchers trained a custom U-Net on top of a pre-trained Latent Diffusion Model (LDM). This model takes the incomplete depth map, the inpainted color image, and the mask to predict a complete, geometrically consistent depth map.
  4. Point Cloud Initialization: The inpainted image and depth are "unprojected" into 3D space to create a colored point cloud, serving as the initial positions for new 3D Gaussians.
  5. Rapid Fine-tuning: Because points are placed accurately on estimated surfaces, the model requires only a small number of iterations (~100) to harmonize new points with the scene.
The InFusion pipeline: from initial Gaussian removal to depth-guided inpainting and final unprojection.

Key Insights

  • Depth as the Anchor: 2D diffusion models already possess an implicit understanding of 3D geometry. By fine-tuning these models for depth completion rather than just color, InFusion extracts a robust geometric prior that aligns perfectly with existing 3D scenes.
  • Initialization Trumps Iteration: In 3DGS, final render quality is highly sensitive to starting positions. By placing points on the inferred surface immediately, InFusion bypasses the complex "densification" and "pruning" steps that slow down other methods.
  • Affine-Invariant Normalization: To handle varying depth scales across different scenes, the authors used a normalization technique based on depth percentiles, allowing the model to focus on object shape rather than absolute distance.

Results and Evaluation

InFusion demonstrates a staggering 20x speedup over previous state-of-the-art methods. It completes a scene in approximately 40 seconds, compared to ~20 minutes for Gaussian-Grouping and ~5 hours for NeRF-based methods like SPIn-NeRF.

Comparison of depth completion and 3D reconstruction quality between InFusion (Ours) and baseline methods.

Quantitatively, InFusion achieved top scores in perceptual metrics on the SPIn-NeRF benchmark (LPIPS: 0.421; FID: 92.62). Beyond simple object removal, the framework supports user-interactive texture editing and seamless object insertion.

Conclusion

InFusion provides a highly efficient and photorealistic solution for 3D Gaussian inpainting. While it faces some challenges with lighting consistency in inpainted regions and complex 360-degree object generation, its use of diffusion-based depth completion sets a new standard for rapid 3D scene editing. Future work may involve integrating more advanced view-consistent diffusion models to further enhance multi-angle harmony.

Summary updated

BibTeX
@misc{liu2024infusion,
  author = {Zhiheng Liu and Hao Ouyang and Qiuyu Wang and Ka Leong Cheng and Jie Xiao and Kai Zhu and Nan Xue and Yu Liu and Yujun Shen and Yang Cao},
  title = {{InFusion: Inpainting 3D Gaussians via Learning Depth Completion from Diffusion Prior}},
  year = {2024},
  eprint = {2404.11613},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.11613},
}
Figure