Spaces:
mashroo
/
Runtime error

YoussefAnso commited on
Commit
83a8b53
·
1 Parent(s): 63eeef6

Add debug texture saving in vertex_color_to_uv_textured_glb function in inference.py. This enhancement allows for easier troubleshooting by saving the generated texture as "debug_texture.png" after exporting the GLB file.

Browse files
Files changed (1) hide show
  1. inference.py +1 -0
inference.py CHANGED
@@ -90,6 +90,7 @@ def vertex_color_to_uv_textured_glb(obj_path, glb_path, texture_size=640):
90
  visuals = trimesh.visual.TextureVisuals(uv=uvs, material=material)
91
  mesh.visual = visuals
92
  mesh.export(glb_path)
 
93
 
94
  def generate3d(model, rgb, ccm, device):
95
 
 
90
  visuals = trimesh.visual.TextureVisuals(uv=uvs, material=material)
91
  mesh.visual = visuals
92
  mesh.export(glb_path)
93
+ image_texture.save("debug_texture.png")
94
 
95
  def generate3d(model, rgb, ccm, device):
96