Commit
·
dc9d3c9
1
Parent(s):
e05a158
Reduce remesh iterations in generate3d function for optimized mesh generation
Browse files- Decreased remesh iterations from 15 to 10 in the clean_mesh function to improve performance while maintaining the remesh size at 0.01.
- 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=10
|
74 |
)
|
75 |
data_config['verts'] = torch.from_numpy(verts).to(device).contiguous()
|
76 |
data_config['faces'] = torch.from_numpy(faces).to(device).contiguous()
|