Skip to content
Projects

Hidden Shape Reconstruction

Recovering 3D shape hidden beneath draped cloth from a single RGB image

Open source Source

An end-to-end pipeline from 3D objects to a trained network: 100 everyday objects from OmniObject3D are cleaned and unit-normalised with PyMeshLab, draped with a simulated cotton-like cloth in Blender 3.6, and rendered from 50 viewpoints each across two batches, giving 10,000 paired RGB/distance-map images. A MobileNetV2-encoder U-Net (~2.55M parameters) maps the RGB cloth image to a distance map encoding the hidden geometry, trained with a hybrid SSIM + foreground-weighted Charbonnier loss and wide zoom augmentation. Predicted contact regions are validated against 3D geometric ground truth recomputed from the meshes. Includes a browser-based Flask + canvas annotation tool for labeling fabric and contact regions on real photos.

What it does

  • End-to-end pipeline: mesh cleanup, Blender cloth-drape physics simulation, paired RGB/distance-map rendering, training
  • 100 real-world 3D scans (OmniObject3D) rendered from 50 viewpoints each: 10,000 paired images
  • MobileNetV2 U-Net (~2.55M parameters) trained on a 4 GB GPU, under 500 MB VRAM at batch 32
  • Hybrid SSIM + foreground-weighted Charbonnier loss for background-heavy targets
  • Wide zoom augmentation (0.5x-1.4x) to generalize across two rendering batches
  • Contact-mask threshold (0.25) chosen by a sweep matching predicted and ground-truth contact-pixel fractions
  • Contact regions validated against 3D ground truth recomputed from the meshes: 0.652 IoU, 0.789 F1, 0.977 pixel accuracy
  • Custom Flask + canvas annotation tool for labeling fabric and contact regions

Pipeline

  1. 1Object Dataset (OmniObject3D)
  2. 2Mesh Cleanup (PyMeshLab)
  3. 3Blender Cloth-Drape Simulation
  4. 4Paired RGB / Distance-Map Rendering
  5. 5MobileUNet Training & Prediction

Results

Held-out SSIM0.9107
Held-out RMSE0.0776
Held-out MAE0.0201
Chamfer Distance0.0298
Contact-region IoUvs. 3D geometric ground truth0.6521
Contact-region F10.7894
Contact pixel accuracy0.9772