Spaces:
mashroo
/
Running on Zero

YoussefAnso commited on
Commit
1932e80
·
1 Parent(s): bb5d6af

Update remesh parameter in generate3d function to disable remeshing

Browse files

- Changed the remesh parameter from True to False to prevent remeshing during mesh generation.
- Maintained existing functionality while adjusting the remeshing behavior for specific use cases.

Files changed (1) hide show
  1. inference.py +1 -1
inference.py CHANGED
@@ -77,7 +77,7 @@ def generate3d(model, rgb, ccm, device):
77
  verts, faces = clean_mesh(
78
  orig_verts.astype(np.float32),
79
  data_config['faces'].squeeze().cpu().numpy().astype(np.int32),
80
- repair=True, remesh=True, remesh_size=0.005, remesh_iters=1
81
  )
82
  data_config['verts'] = torch.from_numpy(verts).to(device).contiguous()
83
  data_config['faces'] = torch.from_numpy(faces).to(device).contiguous()
 
77
  verts, faces = clean_mesh(
78
  orig_verts.astype(np.float32),
79
  data_config['faces'].squeeze().cpu().numpy().astype(np.int32),
80
+ repair=True, remesh=False, remesh_size=0.005, remesh_iters=1
81
  )
82
  data_config['verts'] = torch.from_numpy(verts).to(device).contiguous()
83
  data_config['faces'] = torch.from_numpy(faces).to(device).contiguous()