Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -204,8 +204,8 @@ def extract_glb(
|
|
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)
|
210 |
torch.cuda.empty_cache()
|
211 |
return glb_path, glb_path
|
|
|
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)
|
210 |
torch.cuda.empty_cache()
|
211 |
return glb_path, glb_path
|