Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -22,3 +22,26 @@ tags:
|
|
| 22 |
- single-view
|
| 23 |
- computer-vision
|
| 24 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
- single-view
|
| 23 |
- computer-vision
|
| 24 |
---
|
| 25 |
+
|
| 26 |
+
# Single-View Depth → Point Cloud → Mesh (GLPN + Open3D)
|
| 27 |
+
|
| 28 |
+
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`.
|
| 29 |
+
|
| 30 |
+
## How to use
|
| 31 |
+
1. Upload one RGB image (indoor works best).
|
| 32 |
+
2. Click **Run**.
|
| 33 |
+
3. Inspect **Input vs Depth**, **Mesh Preview** (if available), and the **Interactive 3D (GLB)** viewer.
|
| 34 |
+
4. Download artifacts from the **Downloads** panel.
|
| 35 |
+
|
| 36 |
+
## Outputs
|
| 37 |
+
- `input_vs_depth.png` – side-by-side original and depth (meters, contrast-clipped)
|
| 38 |
+
- `point_cloud.ply` – colorized point cloud
|
| 39 |
+
- `mesh.ply` – triangle mesh
|
| 40 |
+
- `mesh.glb` – mesh for web viewers, Gradio `Model3D`, and downstream tools
|
| 41 |
+
- `mesh_preview.png` – headless snapshot (may be absent in some environments)
|
| 42 |
+
|
| 43 |
+
## Notes
|
| 44 |
+
- **OpenMP warnings fixed** by setting safe thread env vars at the top of `app.py`.
|
| 45 |
+
- GPU is optional. The app auto-selects CUDA if available.
|
| 46 |
+
- If GLB doesn’t render: check **Logs / Status**. The exporter is skipped if the mesh is empty.
|
| 47 |
+
- For crisper meshes, try higher-texture images with clear geometry and lighting.
|