Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,6 +15,7 @@ from trellis.pipelines import TrellisImageTo3DPipeline
|
|
| 15 |
from trellis.representations import Gaussian, MeshExtractResult
|
| 16 |
from trellis.utils import render_utils, postprocessing_utils
|
| 17 |
|
|
|
|
| 18 |
|
| 19 |
MAX_SEED = np.iinfo(np.int32).max
|
| 20 |
TMP_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tmp')
|
|
@@ -203,7 +204,6 @@ def extract_glb(
|
|
| 203 |
glb = postprocessing_utils.to_glb(gs, mesh, simplify=mesh_simplify, texture_size=texture_size, verbose=False)
|
| 204 |
glb_path = os.path.join(user_dir, 'sample.glb')
|
| 205 |
|
| 206 |
-
import aspose.threed as a3d
|
| 207 |
scene = a3d.Scene.from_file(glb_path)
|
| 208 |
scene.save(os.path.join(user_dir), 'print-me.3MF')
|
| 209 |
glb.export(glb_path)
|
|
|
|
| 15 |
from trellis.representations import Gaussian, MeshExtractResult
|
| 16 |
from trellis.utils import render_utils, postprocessing_utils
|
| 17 |
|
| 18 |
+
import aspose.threed as a3d
|
| 19 |
|
| 20 |
MAX_SEED = np.iinfo(np.int32).max
|
| 21 |
TMP_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tmp')
|
|
|
|
| 204 |
glb = postprocessing_utils.to_glb(gs, mesh, simplify=mesh_simplify, texture_size=texture_size, verbose=False)
|
| 205 |
glb_path = os.path.join(user_dir, 'sample.glb')
|
| 206 |
|
|
|
|
| 207 |
scene = a3d.Scene.from_file(glb_path)
|
| 208 |
scene.save(os.path.join(user_dir), 'print-me.3MF')
|
| 209 |
glb.export(glb_path)
|