Free-form 3D Scene Inpainting with Dual-stream GAN

Ru-Fen Jheng, Tsung-Han Wu, Jia-Fong Yeh, Winston H. Hsu · DOI

Abstract

Traditional 3D scene completion typically focuses on filling small, sensor-induced gaps. However, realistic scene editing requires "free-form" inpainting—the ability to remove large, arbitrary objects and reconstruct the underlying environment. We present a Dual-stream GAN architecture designed for this task. By processing geometry and color in parallel and utilizing a 2D projection-based discriminator, our model achieves superior structural and textural fidelity compared to existing sequential approaches.

1. Introduction

In virtual reality (VR) and augmented reality (AR), the ability to modify 3D environments is crucial. While 2D image inpainting has seen significant progress, 3D scene inpainting remains a challenge. Existing "3D scene completion" models typically address small, regular holes caused by camera occlusions. When faced with large, irregular voids—such as those left after removing a piece of furniture—these models often produce "melted" geometry or blurry textures.

The primary difficulties lie in (1) handling arbitrary user-defined masks and (2) preventing error propagation between geometry and color. Most current models reconstruct geometry first and then apply color, meaning any structural error inevitably degrades the final visual result.

2. Methodology

To address these challenges, we propose a three-pronged architectural framework centered on a Dual-stream GAN.

2.1 3D Gated Convolutions

Standard convolutions treat all voxels equally, which is problematic when large portions of the scene are missing. We adapt gated convolutions to 3D, allowing the network to learn "soft attention" maps. This mechanism enables the model to distinguish between valid scene data and the holes it needs to fill, effectively prioritizing information from surrounding surfaces rather than attempting to process empty space.

2.2 Dual-stream Generator

Instead of a sequential pipeline, our generator employs two parallel U-Net-style streams: one for geometry and one for color. These streams are not isolated; they utilize a feature exchange mechanism during the decoding process. This allows semantic color information (e.g., the edge of a rug) to guide structural reconstruction, and vice versa, ensuring that the two modalities remain spatially and semantically aligned.

2.3 Dual-stream Discriminator and 2D Supervision

Directly regularizing 3D voxels is computationally expensive and often leads to overly smooth, "blobby" results. To achieve sharp details, we project the 3D scene into multiple 2D images via differentiable rendering. Our discriminator evaluates both the color texture and the edge maps (extracted via Canny edge detection) of these projections. This forces the 3D model to produce well-defined boundaries and realistic textures that hold up from multiple viewpoints.

3. The FF-Matterport Dataset

To evaluate free-form inpainting, we introduced the FF-Matterport (Free-Form Matterport) benchmark. Built upon the Matterport3D dataset, we developed a 3D mask generation algorithm that simulates human drawing trajectories. Unlike previous view-dependent holes, these masks are "object-aware." By using Truncated Signed Distance Function (TSDF) values, we ensure that virtual brushstrokes follow the actual surfaces of 3D objects, providing a more realistic training signal for scene editing.

4. Results and Analysis

The Dual-stream GAN was compared against state-of-the-art (SOTA) methods, including SPSG and SG-NN.

4.1 Quantitative Performance

Our model demonstrated significant improvements across key metrics on the FF-Matterport dataset:

  • Intersection over Union (IoU): Our model achieved an IoU of 0.781, nearly doubling the 0.466 achieved by the standard SPSG model.
  • Chamfer Distance (CD): We reduced the CD to 2.110, a substantial improvement over SPSG’s 17.457.

These metrics indicate that the Dual-stream GAN is far more effective at reconstructing both the volume and the precise surface location of missing objects.

4.2 Qualitative Observations

Visually, the model excels at recovering complex structures that other models ignore. While baseline methods often "flatten" corners or fail to reconstruct wall art, our approach recovers straight, delicate edges and consistent textures. The synergy between geometry and color streams allows the model to recognize that sharp color transitions often coincide with structural boundaries.

5. Conclusion and Future Work

The Dual-stream GAN represents a significant step forward in 3D scene editing. By treating geometry and color as co-dependent modalities and leveraging 2D supervision for 3D sharpness, we can fill large, arbitrary voids with high fidelity.

However, limitations remain. The current voxel-based representation (2cm grids) limits the reconstruction of very fine details. Furthermore, extremely complex occlusions near walls can still result in blurred boundaries. Future research will explore implicit representations, such as Neural Radiance Fields (NeRFs), which offer the potential for higher resolution and even greater detail in 3D scene reconstruction.

Summary updated

BibTeX
@inproceedings{jheng2022free,
  author = {Ru-Fen Jheng and Tsung-Han Wu and Jia-Fong Yeh and Winston H. Hsu},
  title = {{Free-form 3D Scene Inpainting with Dual-stream GAN}},
  booktitle = {BMVC},
  year = {2022},
  url = {https://openreview.net/forum?id=CACqVRrN9gS},
}
Figure