Spaces:
mashroo
/
Runtime error

YoussefAnso commited on
Commit
1ca648e
·
1 Parent(s): 890b999

Remove unused parameters from mesh export call in generate3d function, simplifying the method signature and improving code clarity.

Browse files
Files changed (1) hide show
  1. inference.py +1 -1
inference.py CHANGED
@@ -16,7 +16,7 @@ def generate3d(model, rgb_image, xyz_image, device="cpu"):
16
  glb_path = base_path + ".glb"
17
 
18
  # Export mesh using CRM model (generates .obj and textures)
19
- model.export_mesh_wt_uv(obj_path, rgb_image, xyz_image, device)
20
 
21
  # Load and convert to GLB
22
  mesh = Mesh.load(obj_path, device=torch.device("cpu"))
 
16
  glb_path = base_path + ".glb"
17
 
18
  # Export mesh using CRM model (generates .obj and textures)
19
+ model.export_mesh_wt_uv(obj_path)
20
 
21
  # Load and convert to GLB
22
  mesh = Mesh.load(obj_path, device=torch.device("cpu"))