Spaces:
Runtime error
Runtime error
rot
Browse files- .gitignore +3 -0
- gradio_demo.py +1 -1
.gitignore
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
*.ipynb
|
2 |
+
*.glb
|
3 |
+
*.ply
|
gradio_demo.py
CHANGED
@@ -89,7 +89,7 @@ def mesh_gen(tmp_dir, simplify, num_inference_steps):
|
|
89 |
|
90 |
mesh = trimesh.load_mesh(f"{tmp_dir}/mesh.ply")
|
91 |
vertex_normals = mesh.vertex_normals
|
92 |
-
theta = np.radians(
|
93 |
# Create rotation matrix
|
94 |
cos_theta = np.cos(theta)
|
95 |
sin_theta = np.sin(theta)
|
|
|
89 |
|
90 |
mesh = trimesh.load_mesh(f"{tmp_dir}/mesh.ply")
|
91 |
vertex_normals = mesh.vertex_normals
|
92 |
+
theta = np.radians(90) # Rotation angle in radians
|
93 |
# Create rotation matrix
|
94 |
cos_theta = np.cos(theta)
|
95 |
sin_theta = np.sin(theta)
|