Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mmhuman3d/data/datasets/human_image_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def _parse_result(self, res, mode='keypoint', body_part=None):
global_orient=global_orient,
gender=gender)
gt_keypoints3d = gt_output['joints'].detach().cpu().numpy()
gt_keypoints3d_mask = np.ones((len(pred_keypoints3d), 24))
gt_keypoints3d_mask = np.ones((len(pred_keypoints3d), pred_keypoints3d.shape[1]))
elif self.dataset_name == 'h36m':
_, h36m_idxs, _ = get_mapping('human_data', 'h36m')
gt_keypoints3d = \
Expand Down Expand Up @@ -436,7 +436,7 @@ def _parse_result(self, res, mode='keypoint', body_part=None):
pred_keypoints3d[:, 3]) / 2
gt_pelvis = (gt_keypoints3d[:, 2] + gt_keypoints3d[:, 3]) / 2

# H36M for testing!
# H36M convention for testing!
elif gt_keypoints3d.shape[1] == 17:
assert pred_keypoints3d.shape[1] == 17

Expand Down