Spaces:
Sleeping
Sleeping
staswrs
commited on
Commit
路
3b1ae59
1
Parent(s):
d22bdf6
clean scene 10
Browse files
app.py
CHANGED
@@ -91,10 +91,11 @@ def generate(image_path, face_number=50000, guidance_scale=5.0, num_steps=25):
|
|
91 |
print("[WARN] Failed to clear visual, skipping")
|
92 |
|
93 |
mesh.metadata.clear()
|
94 |
-
mesh.name = "
|
95 |
|
96 |
# 协泻褋锌芯褉褌 .glb
|
97 |
-
glb_data = export_glb(mesh)
|
|
|
98 |
with open(output_path, "wb") as f:
|
99 |
f.write(glb_data)
|
100 |
|
|
|
91 |
print("[WARN] Failed to clear visual, skipping")
|
92 |
|
93 |
mesh.metadata.clear()
|
94 |
+
mesh.name = "endless_tools_mesh"
|
95 |
|
96 |
# 协泻褋锌芯褉褌 .glb
|
97 |
+
# glb_data = export_glb(mesh)
|
98 |
+
glb_data = mesh.export(file_type='glb')
|
99 |
with open(output_path, "wb") as f:
|
100 |
f.write(glb_data)
|
101 |
|