3D generation research index
RefFusion
RefFusion: Reference Adapted Diffusion Models for 3D Scene Inpainting
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
Many completions could plausibly match the observed scene. Providing a reference lets the user specify the appearance more directly than a mask or text alone.
Use a visual reference to specify ambiguous scene content
- 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
Credit · Ashkan Mirzaei et al.
Method step by step
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 scalesCount 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 viewsRemove 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 depthApply 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
Full images provide context for the replacement and the surrounding scene. Local crops concentrate the latent model’s limited resolution on the region that needs to change.
Preserve global context while recovering local detailThe separate mask labels determine where reconstruction gradients and generative gradients are applied. Densification and pruning also account for the split.
Prevent generative gradients from shifting known geometry
How to read the experiments
Datasets and protocol
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 examplesBaselines
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 baselinesMetrics
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 preferenceResults
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 ablationTrade-offs
Editorial readingThe 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
The authors identify objects occupying much of the reference image and residual artifacts during camera movement as limitations. Scene-specific LoRA adaptation adds runtime.
Large masks and camera movement remain difficult
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.
- Research problem and inputs and outputs Use a visual reference to specify ambiguous scene content
- Method step by step Personalize the image diffusion model at two scales · Derive consistent mask labels across views · Initialize the edit from aligned reference depth · Distill full-frame and cropped predictions into the scene
- Key design choices Preserve global context while recovering local detail · Prevent generative gradients from shifting known geometry
- How to read the experiments Ten removal scenes and separate wider-baseline examples · Per-view inpainting, 3D inpainting and reference-based baselines · Local perceptual distance and pairwise preference · SPIn-NeRF scores and personalization ablation · Evidence for wide camera motion is mainly visual
- Limitations and use boundaries Large masks and camera movement remain difficult
- Original paper figure Figure in paper 3