Commit
·
5f69bf6
1
Parent(s):
c6227ec
Update remesh iterations in generate3d function for optimized performance
Browse files- Reduced remesh iterations from 2 to 1 to streamline the mesh generation process while maintaining quality.
- Continued to disable the repair option and keep the remesh size at 0.01 for consistent output.
- 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=False, remesh=True, remesh_size=0.01, remesh_iters=
|
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=1
|
74 |
)
|
75 |
data_config['verts'] = torch.from_numpy(verts).to(device).contiguous()
|
76 |
data_config['faces'] = torch.from_numpy(faces).to(device).contiguous()
|