Shape Atlas
English
Back to paper index

3D generation research index

RefFusion

RefFusion: Reference Adapted Diffusion Models for 3D Scene Inpainting

Ashkan Mirzaei, Riccardo De Lutio, Seung Wook Kim, David Acuna, Jonathan Kelly, Sanja Fidler et al. ·

One-minute overview

RefFusion edits a reconstructed Gaussian scene using a reference image that shows the desired content. It adapts an image-inpainting model to that image at several scales and distills the adapted prior into the masked region of the scene.

Research problem and inputs and outputs

Inputs
A reconstructed scene with posed training images, object or edit masks, and at least one reference image. The reference can be an actual image or an externally inpainted version of a source view.
Outputs
An edited Gaussian scene with coherent new views of the masked region, with extensions illustrated for insertion, outpainting and sparse-view reconstruction.

Original paper figure

Figure 3 · arXiv:2404.10765v1

The reference image provides local and global training crops for an inpainting diffusion model. The adapted model guides selected scene Gaussians using their rendered views.

Credit · Ashkan Mirzaei et al.

Authors’ Figure 3 shows reference-view personalization with global and local crops, followed by multiscale score distillation into Gaussian geometry and appearance.

Method step by step

  1. Author report

    Apply LoRA to a pretrained inpainting model using the full reference and smaller crops near the edit. Use distinct prompts for global and cropped images to distinguish the two contexts.

    Personalize the image diffusion model at two scales
  2. Author report

    Count contributions of each Gaussian to masked and unmasked pixels across input cameras. Threshold the resulting ratios, then render the labels back into training views for consistent masks.

    Derive consistent mask labels across views
  3. Author report

    Remove existing Gaussians within the edit. Estimate and align depth from the reference, then back-project new points into the scene.

    Initialize the edit from aligned reference depth
  4. Author report

    Apply global and local score-distillation losses, plus depth and adversarial terms. Use reconstruction loss on visible regions and route gradients according to which Gaussians are marked for editing.

    Distill full-frame and cropped predictions into the scene

Key design choices

How to read the experiments

  • Datasets and protocol

    Author report

    SPIn-NeRF contributes ten training sets with the unwanted object and 40 held-out clean views per scene. The paper also shows qualitative results from Mip-NeRF 360 and nine added wider-baseline scenes.

    Ten removal scenes and separate wider-baseline examples
  • Baselines

    Author report

    Comparators include NeRF with LaMa, SPIn-NeRF using LaMa or Stable Diffusion, Inpaint3D and Reference-guided NeRF using SD v2 or SDXL.

    Per-view inpainting, 3D inpainting and reference-based baselines
  • Metrics

    Author report

    Compute LPIPS on a box covering the mask with a 10% margin on each side. Compare videos using separate questions about quality and removal. Table 2 is the percentage preferring each baseline over RefFusion.

    Local perceptual distance and pairwise preference
  • Results

    Author report

    RefFusion reports LPIPS 0.4283, versus 0.4453 for Reference-guided NeRF with SDXL and 0.4654 for SPIn-NeRF-LaMa. In Table 3, removing personalization raises LPIPS to 0.5719.

    SPIn-NeRF scores and personalization ablation
  • Trade-offs

    Editorial reading

    The SPIn-NeRF score focuses on the masked crop in scenes with narrow camera trajectories. The wider-baseline examples are qualitative. On the removal benchmark, discarding depth regularization changes LPIPS only from 0.4283 to 0.4299.

    Evidence for wide camera motion is mainly visual

Limitations and use boundaries

Fixed version and section references

Read fixed-version paper · arXiv:2404.10765v1 · Source reviewed

Experiments were reported by the authors. The editorial analysis cites their evidence.