Deep Learning Assisted Optimization for 3D Reconstruction from Single 2D Line Drawings

Jia Zheng, Yifan Zhu, Kehan Wang, Qiang Zou, Zihan ZhouarXiv 2022 · DOI

Abstract

Reconstructing 3D objects from a single 2D line drawing is a classic ill-posed problem in computer vision. Traditional optimization methods often struggle due to poor initialization and the difficulty of identifying correct geometric constraints from 2D projections. This paper presents a hybrid framework that utilizes Transformer-based neural networks to predict both initial vertex depths and pairwise geometric constraints. By combining the predictive power of deep learning with the precision of numerical optimization, the approach achieves significant improvements in reconstruction accuracy and success rates.

Introduction

The human visual system can effortlessly infer 3D structure from a simple 2D sketch. However, achieving this computationally is challenging. Traditional optimization-based methods treat vertex depths as variables and apply geometric rules, such as parallelism or perpendicularity. These methods face two primary hurdles:

  1. Constraint Detection: Many 3D relationships are not projection-invariant. For instance, a 90-degree corner in 3D can appear as any angle in a 2D projection, making heuristic-based identification unreliable.
  2. Local Minima: Numerical optimization requires a starting point. A poor initialization (e.g., assuming a flat object) often leads the solver into a local minimum, resulting in distorted or physically impossible models.

Methodology

The proposed pipeline integrates deep learning into the geometric constraint-solving process to overcome these limitations.

Overview of the 3D reconstruction pipeline: (a) input line drawing, (b) predicted constraints, (c) initial depth prediction, and (d) final optimized 3D model.

Constraint Detection and Depth Prediction

The core of the method involves two neural network components:

  • Pointer Network for Constraints: Instead of hand-crafted rules, a variant of a Pointer Network (a type of Transformer) is used. It treats each edge in the drawing as a query and predicts relationships (parallelism, perpendicularity, symmetry) with other edges.
  • Transformer Decoder for Depth: To provide a "warm start" for the optimizer, a ResNet-18 backbone extracts visual features, which are then processed by a Transformer decoder to predict initial depth values for all vertices simultaneously.
The Transformer-based architecture used for predicting geometric constraints and initial vertex depths.

Numerical Optimization

The predicted constraints and initial depths are fed into a standard solver (scipy.optimize.fsolve). A critical "filtering" step using bipartite graph matching and QR decomposition is employed to remove redundant or mathematically inconsistent constraints before the final optimization.

Experiments and Results

The researchers utilized a subset of the ABC dataset, consisting of approximately 58,000 unique CAD models. Synthetic 2D line drawings were generated with ground-truth data for training and evaluation.

Key Findings

  • High Constraint Accuracy: The model achieved an F1 score of 99.08% for parallel constraints and 97.24% for perpendicular constraints, significantly outperforming previous state-of-the-art methods like True2Form.
  • Improved Success Rate: Using the predicted initializations, the optimization success rate reached 85.5%, a substantial improvement over standard "flat" initializations.
  • Reconstruction Quality: Compared to end-to-end models like AtlasNet, this hybrid approach produced cleaner, CAD-like models with sharp edges and proper topology, avoiding the "noisy" meshes typical of pure deep learning methods.

Conclusion and Future Work

This research demonstrates that disentangling constraint detection from depth prediction is highly effective. By using Transformers to handle the variable graphs inherent in line drawings, the model provides the necessary "intuition" for numerical solvers to achieve mathematical precision.

Future work will focus on handling "messy" hand-drawn sketches with gaps or over-shooting lines, as the current model assumes clean input. Additionally, the authors aim to remove the requirement for "hidden" lines in the input and integrate face identification to better handle complex surface planarity.

Summary updated

BibTeX
@misc{zheng2022deep,
  author = {Jia Zheng and Yifan Zhu and Kehan Wang and Qiang Zou and Zihan Zhou},
  title = {{Deep Learning Assisted Optimization for 3D Reconstruction from Single 2D Line Drawings}},
  year = {2022},
  eprint = {2209.02692},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.02692},
}
Figure