Skip to content

Commit

Permalink
Merge pull request #195 from yukangcao/patch-1
Browse files Browse the repository at this point in the history
update dmtet vertices
  • Loading branch information
ashawkey authored Apr 10, 2023
2 parents 3bd3c08 + 95c6e12 commit b1cd0fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nerf/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def __init__(self, opt):
if self.opt.dmtet:
# load dmtet vertices
tets = np.load('tets/{}_tets.npz'.format(self.opt.tet_grid_size))
self.verts = torch.tensor(tets['vertices'], dtype=torch.float32, device='cuda') * 2 # covers [-1, 1]
self.verts = -1.0 * torch.tensor(tets['vertices'], dtype=torch.float32, device='cuda') * 2 # covers [-1, 1]
self.indices = torch.tensor(tets['indices'], dtype=torch.long, device='cuda')
self.tet_scale = 1
self.dmtet = DMTet('cuda')
Expand Down

0 comments on commit b1cd0fc

Please sign in to comment.