Spaces:
Running
on
Zero
Running
on
Zero
Ruining Li
commited on
Commit
·
fd3f5ff
1
Parent(s):
8ab3df9
Update
Browse files- app.py +2 -2
- infer_asset.py +1 -6
app.py
CHANGED
|
@@ -269,10 +269,10 @@ def create_gradio_app(particulate_app):
|
|
| 269 |
<a href="https://ruiningli.com/particulate">🚀 Project Page</a>
|
| 270 |
</p>
|
| 271 |
<div style="font-size: 16px; line-height: 1.5;">
|
| 272 |
-
<p>Upload a 3D model (.obj or .glb format supported) to articulate it. Particulate takes this model and predicts the underlying articulated structure, which can be directly exported to <
|
| 273 |
<h3>Getting Started:</h3>
|
| 274 |
<ol>
|
| 275 |
-
<li><strong>Upload a 3D model
|
| 276 |
<li><strong>Preview:</strong> Your uploaded 3D model will be visualized below.</li>
|
| 277 |
<li><strong>Confirm Orientation:</strong> Select the direction (one of X, -X, Y, -Y, Z, -Z) that corresponds to the up direction of the object in the preview (for all example assets, the up direction is -Z).</li>
|
| 278 |
<li><strong>Run Inference:</strong> Click the "Run Inference" button to start the inference process.</li>
|
|
|
|
| 269 |
<a href="https://ruiningli.com/particulate">🚀 Project Page</a>
|
| 270 |
</p>
|
| 271 |
<div style="font-size: 16px; line-height: 1.5;">
|
| 272 |
+
<p>Upload a 3D model (.obj or .glb format supported) to articulate it. Particulate takes this model and predicts the underlying articulated structure, which can be directly exported to <u>URDF</u> or <u>MJCF</u> format.</p>
|
| 273 |
<h3>Getting Started:</h3>
|
| 274 |
<ol>
|
| 275 |
+
<li><strong>Upload a 3D model. We support meshes (.obj or .glb format) with less than 51.2k faces. You can use <a href="https://3d.hunyuan.tencent.com/" target="_blank">Hunyuan3D-v3</a> to generate a 3D model: please <u>make sure to select the '50k' face count</u>.</li>
|
| 276 |
<li><strong>Preview:</strong> Your uploaded 3D model will be visualized below.</li>
|
| 277 |
<li><strong>Confirm Orientation:</strong> Select the direction (one of X, -X, Y, -Y, Z, -Z) that corresponds to the up direction of the object in the preview (for all example assets, the up direction is -Z).</li>
|
| 278 |
<li><strong>Run Inference:</strong> Click the "Run Inference" button to start the inference process.</li>
|
infer_asset.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
import numpy as np
|
| 2 |
-
import os
|
| 3 |
from pathlib import Path
|
| 4 |
import torch
|
| 5 |
import trimesh
|
|
@@ -13,11 +12,7 @@ from particulate.visualization_utils import (
|
|
| 13 |
ARROW_COLOR_PRISMATIC
|
| 14 |
)
|
| 15 |
from particulate.articulation_utils import plucker_to_axis_point
|
| 16 |
-
from particulate.export_utils import
|
| 17 |
-
export_animated_glb_file,
|
| 18 |
-
export_urdf,
|
| 19 |
-
export_mjcf
|
| 20 |
-
)
|
| 21 |
from partfield_utils import obtain_partfield_feats, get_partfield_model
|
| 22 |
|
| 23 |
|
|
|
|
| 1 |
import numpy as np
|
|
|
|
| 2 |
from pathlib import Path
|
| 3 |
import torch
|
| 4 |
import trimesh
|
|
|
|
| 12 |
ARROW_COLOR_PRISMATIC
|
| 13 |
)
|
| 14 |
from particulate.articulation_utils import plucker_to_axis_point
|
| 15 |
+
from particulate.export_utils import export_animated_glb_file
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
from partfield_utils import obtain_partfield_feats, get_partfield_model
|
| 17 |
|
| 18 |
|