diff --git a/mmhuman3d/core/conventions/keypoints_mapping/__init__.py b/mmhuman3d/core/conventions/keypoints_mapping/__init__.py index ee8d1145..5e3a014c 100644 --- a/mmhuman3d/core/conventions/keypoints_mapping/__init__.py +++ b/mmhuman3d/core/conventions/keypoints_mapping/__init__.py @@ -382,7 +382,7 @@ def get_keypoint_idx(name: str, idx = -1 if idx >= 0: return idx - return idx + raise ValueError(f'Cannot find joint: {name} in convention type: {convention}') def get_keypoint_num(convention: str = 'smplx',