Spaces:
Paused
Paused
Weiyu Liu
commited on
Commit
•
1c7e8cf
1
Parent(s):
f392320
remove local visualization
Browse files
app.py
CHANGED
@@ -185,7 +185,7 @@ class Infer_Wrapper:
|
|
185 |
vis_obj_xyz = vis_obj_xyzs[0]
|
186 |
# scene = show_pcs_with_trimesh([xyz[:, :3] for xyz in vis_obj_xyz], [xyz[:, 3:] for xyz in vis_obj_xyz], return_scene=True)
|
187 |
scene = show_pcs_with_trimesh([xyz[:, :3] for xyz in vis_obj_xyz], obj_rgbs=None, return_scene=True)
|
188 |
-
scene.show()
|
189 |
scene.apply_transform(tra.euler_matrix(np.pi, 0, np.pi/2))
|
190 |
scene_filename = "./tmp_data/output_scene_{}.glb".format(session_id)
|
191 |
scene.export(scene_filename)
|
|
|
185 |
vis_obj_xyz = vis_obj_xyzs[0]
|
186 |
# scene = show_pcs_with_trimesh([xyz[:, :3] for xyz in vis_obj_xyz], [xyz[:, 3:] for xyz in vis_obj_xyz], return_scene=True)
|
187 |
scene = show_pcs_with_trimesh([xyz[:, :3] for xyz in vis_obj_xyz], obj_rgbs=None, return_scene=True)
|
188 |
+
# scene.show()
|
189 |
scene.apply_transform(tra.euler_matrix(np.pi, 0, np.pi/2))
|
190 |
scene_filename = "./tmp_data/output_scene_{}.glb".format(session_id)
|
191 |
scene.export(scene_filename)
|