Skip to content

Commit

Permalink
remove double global root translation in getting 3D mesh from joints …
Browse files Browse the repository at this point in the history
…in vis_utils.py
  • Loading branch information
yhw-yhw authored Nov 18, 2023
1 parent 5a15496 commit 2ee5eaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visualize/vis_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(self, npy_path, sample_idx, rep_idx, device=0, cuda=True):
# jointstype='smpl', # for joint locations
vertstrans=True)
self.root_loc = self.motions['motion'][:, -1, :3, :].reshape(1, 1, 3, -1)
self.vertices += self.root_loc
# self.vertices += self.root_loc

def get_vertices(self, sample_i, frame_i):
return self.vertices[sample_i, :, :, frame_i].squeeze().tolist()
Expand Down

0 comments on commit 2ee5eaa

Please sign in to comment.