Spaces:
Runtime error
Runtime error
kxhit
commited on
Commit
·
20a47d0
1
Parent(s):
b9dbb4d
remove save glb
Browse files
app.py
CHANGED
|
@@ -239,7 +239,7 @@ from dust3r.cloud_opt import global_aligner, GlobalAlignerMode
|
|
| 239 |
import functools
|
| 240 |
import math
|
| 241 |
|
| 242 |
-
@spaces.GPU
|
| 243 |
def _convert_scene_output_to_glb(outdir, imgs, pts3d, mask, focals, cams2world, cam_size=0.05,
|
| 244 |
cam_color=None, as_pointcloud=False,
|
| 245 |
transparent_cams=False, silent=False, same_focals=False):
|
|
@@ -289,7 +289,7 @@ def _convert_scene_output_to_glb(outdir, imgs, pts3d, mask, focals, cams2world,
|
|
| 289 |
outfile = os.path.join(outdir, 'scene.glb')
|
| 290 |
if not silent:
|
| 291 |
print('(exporting 3D scene to', outfile, ')')
|
| 292 |
-
scene.export(file_obj=outfile)
|
| 293 |
return outfile
|
| 294 |
|
| 295 |
@spaces.GPU(duration=120)
|
|
|
|
| 239 |
import functools
|
| 240 |
import math
|
| 241 |
|
| 242 |
+
@spaces.GPU(duration=120)
|
| 243 |
def _convert_scene_output_to_glb(outdir, imgs, pts3d, mask, focals, cams2world, cam_size=0.05,
|
| 244 |
cam_color=None, as_pointcloud=False,
|
| 245 |
transparent_cams=False, silent=False, same_focals=False):
|
|
|
|
| 289 |
outfile = os.path.join(outdir, 'scene.glb')
|
| 290 |
if not silent:
|
| 291 |
print('(exporting 3D scene to', outfile, ')')
|
| 292 |
+
# scene.export(file_obj=outfile)
|
| 293 |
return outfile
|
| 294 |
|
| 295 |
@spaces.GPU(duration=120)
|