Spaces:
mashroo
/
Runtime error

YoussefAnso commited on
Commit
e05a158
·
1 Parent(s): 9a06aba

Update remesh iterations and repair option in generate3d function for improved mesh quality

Browse files

- Set repair parameter to False and increased remesh iterations from 10 to 15 in the clean_mesh function to enhance the detail of the generated mesh while maintaining the remesh size at 0.01.

Files changed (1) hide show
  1. inference.py +1 -1
inference.py CHANGED
@@ -70,7 +70,7 @@ def generate3d(model, rgb, ccm, device):
70
  verts, faces = clean_mesh(
71
  data_config['verts'].squeeze().cpu().numpy().astype(np.float32),
72
  data_config['faces'].squeeze().cpu().numpy().astype(np.int32),
73
- repair=True, remesh=True, remesh_size=0.01, remesh_iters=10
74
  )
75
  data_config['verts'] = torch.from_numpy(verts).to(device).contiguous()
76
  data_config['faces'] = torch.from_numpy(faces).to(device).contiguous()
 
70
  verts, faces = clean_mesh(
71
  data_config['verts'].squeeze().cpu().numpy().astype(np.float32),
72
  data_config['faces'].squeeze().cpu().numpy().astype(np.int32),
73
+ repair=False, remesh=True, remesh_size=0.01, remesh_iters=15
74
  )
75
  data_config['verts'] = torch.from_numpy(verts).to(device).contiguous()
76
  data_config['faces'] = torch.from_numpy(faces).to(device).contiguous()