Shape Atlas
English
Back to paper index

3D generation research index

MALD-NeRF

Taming Latent Diffusion Model for Neural Radiance Field Inpainting

Chieh Hubert Lin, Changil Kim, Jia-Bin Huang, Qinbo Li, Chih-Yao Ma, Johannes Kopf et al. ·

One-minute overview

MALD-NeRF removes masked content from a scene and learns a radiance field that fills the newly exposed regions. It adapts an image-inpainting model to each scene, updates the target images during optimization and applies adversarial supervision inside the masks.

Research problem and inputs and outputs

Inputs
Posed scene photographs with corresponding masks specifying image regions to replace. The method also uses a pretrained latent diffusion inpainting model and a monocular depth prior.
Outputs
An edited neural radiance field with synthesized content in the masked regions, renderable from novel viewpoints.

Original paper figure

Figure 3 · arXiv:2404.09995v2

Current NeRF renders guide diffusion fills that update the training set. Observed pixels use reconstruction loss, while the inpainted region receives adversarial and depth supervision.

Credit · Chieh Hubert Lin et al.

Authors’ Figure 3 shows the training loop from NeRF rendering through partial diffusion inpainting and target-image updates, together with separate supervision inside and outside the mask.

Method step by step

  1. Author report

    Learn a scene-specific token and LoRA updates for the text encoder and U-Net. Random rectangular masks supervise inpainting from the known regions, while the real object-removal masks have no clean target.

    Customize the frozen prior for a scene
  2. Author report

    Blend the current rendered fill with observed pixels, add noise in latent space, and partially denoise with DDIM. Periodically replace target inpainting regions and reduce the noise level as training advances.

    Update masked targets from current radiance-field renderings
  3. Author report

    Reconstruct observed pixels with squared error. For inpainting patches, hide pixels outside the mask in both rendered and diffusion references before using a discriminator and feature matching.

    Train with masked patch discrimination and feature matching
  4. Author report

    Estimate depth with ZoeDepth and align it to NeRF depth with a shift and scale computed on the visible region. Starting after 2,000 iterations, supervise relative depth inside masks with a ranking loss.

    Regularize shape with aligned monocular depth

Key design choices

  • Author report

    Masking prevents the discriminator from relying directly on the texture difference between real pixels and diffusion fills. The reconstruction objective continues to preserve the observed scene.

    Separate observed and synthesized image targets
  • Author report

    At each update, partial DDIM starts from a noised version of the current rendering. Less noise later in optimization keeps the new target closer to the NeRF’s current multiview prediction.

    Reduce target diversity as geometry stabilizes

How to read the experiments

  • Datasets and protocol

    Author report

    SPIn-NeRF test images capture the actual scene after physical object removal. LLFF has object masks but lacks equivalent clean test images.

    Ten SPIn-NeRF scenes and six LLFF scenes
  • Baselines

    Author report

    Compare with SPIn-NeRF, SPIn-NeRF using the paper’s LDM, Inpaint3d and a reimplementation of InpaintNeRF360. The paper uses supplied Inpaint3d renders in SPIn-NeRF and has no Inpaint3d row for LLFF.

    Object-removal baselines and a matched diffusion module
  • Metrics

    Author report

    SPIn-NeRF reports LPIPS and masked LPIPS along with FID and KID on test views. LLFF uses FID and KID computed on patches near mask corners, labeled C-FID and C-KID.

    Image similarity and generative distribution scores
  • Results

    Author report

    On SPIn-NeRF, MALD-NeRF gives LPIPS 0.4345, masked LPIPS 0.3344, FID 183.25 and KID 0.0397, versus 0.4694, 0.3672, 222.12 and 0.0544. On LLFF, its C-FID and C-KID are 171.89 and 0.0388 versus 174.55 and 0.0397.

    Comparison with InpaintNeRF360
  • Trade-offs

    Editorial reading

    Adding LPIPS improves LPIPS from 0.4345 to 0.4130 yet worsens FID from 183.25 to 185.79. The authors show boundary and geometry artifacts in that variant. Appendix F reports an eight-V100-per-run training configuration.

    Perceptual regressions and distribution scores can diverge

Limitations and use boundaries

Fixed version and section references

Read fixed-version paper · arXiv:2404.09995v2 · Source reviewed

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