Spaces:
Running
Running
A newer version of the Gradio SDK is available:
5.49.1
metadata
title: GLPN Single-View Depth → Point Cloud → Mesh
emoji: 🧱
colorFrom: indigo
colorTo: purple
sdk: gradio
sdk_version: 4.44.1
app_file: app.py
python_version: '3.10'
pinned: true
models:
- vinvino02/glpn-nyu
tags:
- depth-estimation
- 3d-reconstruction
- point-cloud
- mesh
- open3d
- trimesh
- transformers
- gradio
- single-view
- computer-vision
Single-View Depth → Point Cloud → Mesh (GLPN + Open3D)
This Space predicts depth from a single RGB image using GLPN (NYU), back-projects to a point cloud, reconstructs a mesh (Ball Pivoting with Poisson fallback), and exports PLY and GLB.
How to use
- Upload one RGB image (indoor works best).
- Click Run.
- Inspect Input vs Depth, Mesh Preview (if available), and the Interactive 3D (GLB) viewer.
- Download artifacts from the Downloads panel.
Outputs
input_vs_depth.png– side-by-side original and depth (meters, contrast-clipped)point_cloud.ply– colorized point cloudmesh.ply– triangle meshmesh.glb– mesh for web viewers, GradioModel3D, and downstream toolsmesh_preview.png– headless snapshot (may be absent in some environments)
Notes
- OpenMP warnings fixed by setting safe thread env vars at the top of
app.py. - GPU is optional. The app auto-selects CUDA if available.
- If GLB doesn’t render: check Logs / Status. The exporter is skipped if the mesh is empty.
- For crisper meshes, try higher-texture images with clear geometry and lighting.