3D Model Inpainting Based on 3D Deep Convolutional Generative Adversarial Network

Xinying Wang, Dikai Xu, Fangming GuIEEE Access 2020

Introduction

3D scanning technology, while advanced, often produces "corrupted" models with holes or missing sections due to occlusions or sensor limitations. Traditional geometric methods, such as Laplacian filtering or triangulation, are excellent at smoothing small gaps but fail when large, semantically important chunks of a model are missing. This paper presents a novel approach to 3D model repair, moving beyond simple geometric patching to semantic "inpainting" using deep learning. By leveraging a dual-GAN architecture, the authors demonstrate a way to fill significant holes in 3D objects while maintaining both fine-grained detail and global structural consistency.

Methodology: The 3D-DCGAN Architecture

The core innovation is the 3D-DCGAN framework, which uses two Generative Adversarial Networks—one local and one global—to repair holes in voxelized 3D models. This "cooperative" approach allows the system to generate high-detail missing parts while ensuring they blend seamlessly into the original model.

The 3D-DCGAN architecture featuring a shared generator and dual (local and global) discriminators.

The architecture consists of a single shared generator and two distinct discriminators:

  • Voxelization: 3D mesh models are converted into an $80 \times 80 \times 80$ voxel grid. A "mask" is used to identify the specific missing region.
  • The Local GAN: This component focuses purely on the missing area. Its job is to ensure the generated "patch" has high-quality, realistic details.
  • The Global GAN: This component looks at the entire model (the original parts merged with the new patch). Its job is to ensure "global consistency"—making sure the transition between the old and new parts is smooth and structurally sound.
  • Shared Generator: By using one generator for both tasks, the model is forced to learn features that satisfy both local detail and global harmony simultaneously.
  • 3D Convolutional Kernels: Unlike standard 2D GANs, this model uses 3D kernels to process volumetric data directly, allowing it to understand spatial relationships in three dimensions.

Datasets and Preprocessing

The researchers utilized ModelNet40, a benchmark 3D model database from Princeton University.

  • Scale: 12,431 3D models across 40 categories (e.g., airplanes, beds, chairs).
  • Preprocessing: The models were converted from .off to .stl formats, normalized in orientation, and voxelized to an $80 \times 80 \times 80$ resolution.
  • Augmentation: The training and test sets were combined to increase the volume of data available for the unsupervised learning process.

Results and Discussion

The 3D-DCGAN was compared against standard GANs, BiGANs, and standard DCGANs using metrics like Mean Square Error (MSE), Peak Signal-to-Noise Ratio (PSNR), and Hausdorff Distance.

The 3D model inpainting process: (a) original mesh, (b) voxelized model, (c) model with missing regions, and (d) the final repaired output.

In the airplane model test, the 3D-DCGAN achieved a Hausdorff Distance of 5.83, compared to 23.00 for a standard DCGAN and 48.38 for a basic GAN. Lower is better, indicating the repaired model is much closer to the original ground truth. Visual results show that while other methods produced "noisy" or disconnected patches, the 3D-DCGAN produced "near-perfect restoration" of complex objects like beds and airplanes, with significantly smoother junctions at the repair boundaries.

Conclusion and Future Work

The "dual discrimination" approach solves the "seam" problem common in 3D repair by splitting the task into local detail and global transition. While effective, the current $80^3$ resolution is computationally intensive. Future work will focus on diminishing redundant computation within the network layers to allow the model to scale to higher-resolution voxel grids without requiring prohibitive amounts of GPU memory.

Reference: Wang, X., Xu, D., & Gu, F. (2020). 3D Model Inpainting Based on 3D Deep Convolutional Generative Adversarial Network. IEEE Access, 8, 170355-170363.

Summary updated

BibTeX
@article{wang2020d,
  author = {Xinying Wang and Dikai Xu and Fangming Gu},
  title = {{3D Model Inpainting Based on 3D Deep Convolutional Generative Adversarial Network}},
  journal = {IEEE Access},
  year = {2020},
  doi = {10.1109/access.2020.3024288},
}
Figure