staswrs commited on
Commit
530f16a
·
1 Parent(s): a9a84f7

fix add normals 2

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -21,6 +21,7 @@ import zipfile
21
  import requests
22
  import traceback
23
  import trimesh
 
24
  from trimesh.exchange.gltf import export_glb
25
 
26
  from inference_triposg import run_triposg
@@ -145,6 +146,7 @@ def generate(image_path, face_number=50000, guidance_scale=5.0, num_steps=25):
145
 
146
  print("[DEBUG] Normals present:", mesh.has_vertex_normals)
147
 
 
148
  # 💾 Сохраняем GLB
149
  glb_data = mesh.export(file_type='glb')
150
  with open(output_path, "wb") as f:
 
21
  import requests
22
  import traceback
23
  import trimesh
24
+ import numpy as np
25
  from trimesh.exchange.gltf import export_glb
26
 
27
  from inference_triposg import run_triposg
 
146
 
147
  print("[DEBUG] Normals present:", mesh.has_vertex_normals)
148
 
149
+
150
  # 💾 Сохраняем GLB
151
  glb_data = mesh.export(file_type='glb')
152
  with open(output_path, "wb") as f: