TL;DR
Deleting an unwanted object from a 3D scene usually requires knowing the exact 3D position of every camera, followed by hours of per-scene optimization. FreeInpaint throws out both requirements: give it a handful of uncalibrated, masked photos, and it reconstructs a complete, geometrically consistent 3D scene in less than two seconds—all in a feed-forward pass.
What Problem Does This Paper Address?
Imagine taking a few casual photos of your patio and wanting to digitally erase a lawn chair so you can walk around the empty 3D space. Unlike 2D photo editing, 3D scene inpainting has to fill in both texture and geometry so the patched area looks seamless from every angle.
Traditionally, doing this requires two painful bottlenecks:
- Camera Calibration: You first have to run Structure-from-Motion (SfM) tools like COLMAP to figure out where the cameras were in 3D space. SfM is slow and notoriously brittle—give it sparse views, blank walls, or giant black masks where an object used to be, and it frequently fails.
- Per-Scene Optimization: Once you have poses, existing NeRF or 3D Gaussian Splatting (3DGS) inpainters spend 30 minutes to 5 hours iteratively optimizing that single scene.
Recently, feed-forward 3D foundation models (like DUSt3R and Depth Anything 3) showed we can predict poses and 3D geometry directly from unposed images in one shot. However, they assume every pixel is valid. Feed them images with missing, masked-out holes, and the masks corrupt cross-view matching, wrecking both pose estimation and geometry.
Methods
FreeInpaint adapts a pre-trained 3D foundation model—Depth Anything 3 (DA3), which outputs camera poses, depth, and 3D Gaussians—to handle unposed, masked images alongside a single clean reference view (which can be generated via standard 2D diffusion if you don't have one).
To bridge reconstruction and generation without breaking DA3's spatial intuition, the authors introduce three novel tricks:
- Learnable Mask Attention: If you let masked tokens talk to valid tokens early on, they poison the geometry. If you permanently block them with a hard binary mask, they can never absorb context to get filled in. Instead, FreeInpaint adds a learnable, layer-wise bias to the cross-view self-attention logits. Masked regions start suppressed in early layers (protecting pose estimation) and gradually "open up" in deeper layers as they gather valid 3D context.
- Support Token Refinement (for "Blind Spots"): At inference time, severe occlusions might leave regions completely invisible to the reference view. FreeInpaint renders the initial 3D Gaussians back to the source views and checks opacity inside the masks. If it spots a low-opacity "blind spot," it triggers a 2D diffusion pass (using SDEdit for spatial consistency and IP-Adapter for reference texture) to hallucinate the missing patch, then re-injects those features as confidence-weighted tokens for a quick refinement pass.
- Depth-Guided Self-Distillation: During training, there are no photometric cues inside masked regions, tempting the model to paint flat textures at wrong depths. The authors run a frozen copy of the original DA3 on unmasked images as a teacher, forcing the student model's inpainted depths to match the teacher's geometric priors.
Datasets
- Training: DL3DV-10K, sampling 15-frame video clips with synthetic random and 3D-projected geometric masks.
- Evaluation: Tested zero-shot across three standard benchmarks: SPIn-NeRF (forward-facing object removal with ground-truth backgrounds), 360-USID (360-degree object removal with ground truth), and LLFF (diverse real-world scenes without ground-truth backgrounds). No new datasets were introduced.
Key Insights and Ideas
- Soft, evolving masks beat hard masks: Permanently masking out holes protects camera poses, while unmasked attention helps texture blending. Making the attention mask learnable across network depth gets the best of both worlds—improving camera trajectory error (ATE drops from 0.0462 to 0.0340) while sharpening details.
- Joint reasoning beats cascading: You might wonder: why not just inpaint the 2D images first, then feed them to DA3? The authors test this (
LAMA + DA3andMVInpainter + DA3) and show that slight multi-view inconsistencies in 2D inpainting trick the 3D model, causing misaligned poses and blurry geometry. Solving pose and inpainting together avoids cascading errors. - Selective generative help: By checking 3D Gaussian opacity, the model knows what it doesn't know, calling on heavy 2D diffusion priors only when blind spots actually occur.
Key Results
Operating on highly sparse, unposed inputs (just 4 views for SPIn-NeRF/LLFF and 8 views for 360-USID), FreeInpaint outperforms per-scene optimization baselines that rely on calibrated poses:
- Massive Speedup: Inference takes ~0.4 seconds for a single pass (and ~1.8 seconds when blind-spot refinement triggers on an RTX A6000), compared to 30 minutes to 5 hours for methods like SPIn-NeRF, GScream, and AuraFusion360.
- Higher Quality: On SPIn-NeRF, FreeInpaint reaches 17.79 PSNR and 0.2819 LPIPS (beating NeRFiller's 16.86 PSNR and GScream's 0.3644 LPIPS). On 360-USID, it hits 18.58 PSNR and 0.2526 LPIPS, topping AuraFusion360 (18.34 / 0.2982).
- Bonus Capabilities: It seamlessly handles text-driven 3D object replacement (e.g., swapping a backpack for a Van Gogh portrait) and scales gracefully up to 32 unposed views.
Limitations and Future Work
Not discussed in the paper. (Note: The provided document ends after the Conclusion and References without a dedicated Limitations or Future Work section).
Summary updated