Commit
·
02687d3
1
Parent(s):
5175c4e
Update remesh parameters in generate3d function for improved mesh quality
Browse files- Enabled remeshing by setting the repair parameter to True and reduced remesh iterations from 3 to 2 for optimized performance.
- Maintained remesh size at 0.005 to ensure consistent mesh detail.
- 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=
|
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=True, remesh=True, remesh_size=0.005, remesh_iters=2
|
74 |
)
|
75 |
data_config['verts'] = torch.from_numpy(verts).to(device).contiguous()
|
76 |
data_config['faces'] = torch.from_numpy(faces).to(device).contiguous()
|