Commit
·
7d064f4
1
Parent(s):
8a29dd3
Update remesh iterations in generate3d function to improve mesh quality
Browse files- Reduced the number of remesh iterations from 2 to 1 for optimized performance in mesh generation.
- Maintained existing functionality while enhancing efficiency in the remeshing process.
- inference.py +1 -1
inference.py
CHANGED
@@ -75,7 +75,7 @@ def generate3d(model, rgb, ccm, device):
|
|
75 |
verts, faces = clean_mesh(
|
76 |
orig_verts.astype(np.float32),
|
77 |
data_config['faces'].squeeze().cpu().numpy().astype(np.int32),
|
78 |
-
repair=False, remesh=True, remesh_size=0.01, remesh_iters=
|
79 |
)
|
80 |
data_config['verts'] = torch.from_numpy(verts).to(device).contiguous()
|
81 |
data_config['faces'] = torch.from_numpy(faces).to(device).contiguous()
|
|
|
75 |
verts, faces = clean_mesh(
|
76 |
orig_verts.astype(np.float32),
|
77 |
data_config['faces'].squeeze().cpu().numpy().astype(np.int32),
|
78 |
+
repair=False, remesh=True, remesh_size=0.01, remesh_iters=1
|
79 |
)
|
80 |
data_config['verts'] = torch.from_numpy(verts).to(device).contiguous()
|
81 |
data_config['faces'] = torch.from_numpy(faces).to(device).contiguous()
|