open-mmlab / mmhuman3d

OpenMMLab 3D Human Parametric Model Toolbox and Benchmark
https://mmhuman3d.readthedocs.io/
Apache License 2.0
1.25k stars 137 forks source link

Fix get_keypoint_idx() potentially misleading output #334

Open Wei-Chen-hub opened 1 year ago

Wei-Chen-hub commented 1 year ago

Originally get_keypoint_idx will return -1 on unsuccessful query, but this may be troublesome in many cases. Currently it will raise a clear error