Upload README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
library_name: pytorch
|
| 4 |
+
tags:
|
| 5 |
+
- 3d
|
| 6 |
+
- developable-surface
|
| 7 |
+
- mesh-optimization
|
| 8 |
+
- computer-aided-design
|
| 9 |
+
- onnx
|
| 10 |
+
- resunet
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# I-DevNet Pretrained Weights (CAD 2025)
|
| 14 |
+
|
| 15 |
+
Official PyTorch (`.pth`) and ONNX (`.onnx`) checkpoints for:
|
| 16 |
+
|
| 17 |
+
> **Interactive Design of Developable Surfaces by Patch-based Learning**
|
| 18 |
+
> Chaoyun Wang, Jianlei Wang, Chengcheng Tang, Nanning Zheng, Caigui Jiang
|
| 19 |
+
> *Computer-Aided Design (CAD)*, Vol. 103970, 2025 路 [Paper (ScienceDirect)](https://www.sciencedirect.com/science/article/pii/S0010448525001319)
|
| 20 |
+
|
| 21 |
+
- **Live Browser Demo (Zero Blender Required):** [https://huggingface.co/spaces/Chao-Yun/I-DevNet](https://huggingface.co/spaces/Chao-Yun/I-DevNet)
|
| 22 |
+
- **GitHub Repository:** [https://github.com/chaoyunwang/I-DevNet](https://github.com/chaoyunwang/I-DevNet)
|
| 23 |
+
|
| 24 |
+

|
| 25 |
+
|
| 26 |
+
## Checkpoints Included
|
| 27 |
+
|
| 28 |
+
| File | Stage | Input Shape | Size |
|
| 29 |
+
| --- | --- | --- | :---: |
|
| 30 |
+
| `coarse_model.pth` / `coarse_model.onnx` | Coarse ResUNet (MAE + Area-Gauss -> Local-Minima -> Angle-Deficit) | `(B, 3, 64, 64)` | ~10.8 MB |
|
| 31 |
+
| `fine_model.pth` / `fine_model.onnx` | Fine ResUNet (Secondary `opt2` Residual Refinement) | `(B, 3, 64, 64)` | ~10.8 MB |
|
| 32 |
+
|
| 33 |
+
## Table 1 Quantitative Results
|
| 34 |
+
|
| 35 |
+
| Model | Method | $N_P$ | $d_{H-a}$ (%) | $d_{H-99}$ (%) | $|K|_{\text{mean}}$ (rad) |
|
| 36 |
+
| --- | --- | :---: | :---: | :---: | :---: |
|
| 37 |
+
| Bunny | **Ours (Final)** | **6** | **0.382** | **1.087** | 0.000085 |
|
| 38 |
+
| Dog | **Ours (Final)** | **10** | **0.485** | **1.408** | 0.000093 |
|
| 39 |
+
| Kitten | **Ours (Final)** | **11** | **0.323** | **0.944** | 0.000119 |
|
| 40 |
+
|
| 41 |
+
## Quick Usage (ONNX Runtime)
|
| 42 |
+
|
| 43 |
+
```python
|
| 44 |
+
import numpy as np
|
| 45 |
+
import onnxruntime as ort
|
| 46 |
+
from huggingface_hub import hf_hub_download
|
| 47 |
+
|
| 48 |
+
coarse_path = hf_hub_download("Chao-Yun/I-DevNet", "coarse_model.onnx")
|
| 49 |
+
fine_path = hf_hub_download("Chao-Yun/I-DevNet", "fine_model.onnx")
|
| 50 |
+
|
| 51 |
+
sess = ort.InferenceSession(coarse_path, providers=["CPUExecutionProvider"])
|
| 52 |
+
# x_norm: (1, 3, 64, 64) unit-sphere normalized masked geometry image
|
| 53 |
+
out = sess.run(None, {sess.get_inputs()[0].name: np.zeros((1, 3, 64, 64), dtype=np.float32)})[0]
|
| 54 |
+
```
|