MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / get_category

Method get_category

mbench/__init__.py:60–83  ·  view source on GitHub ↗

Get mapping of dimensions to their categories Returns: mapping category name

(self, dimension: str)

Source from the content-addressed store, hash-verified

58 ]
59
60 def get_category(self, dimension: str) -> str:
61 """
62 Get mapping of dimensions to their categories
63
64 Returns:
65 mapping category name
66 """
67 dimension_categories = {
68 # Motion_Quality category
69 "Jitter_Degree": "motion_quality",
70 "Ground_Penetration": "motion_quality",
71 "Foot_Floating": "motion_quality",
72 "Foot_Sliding": "motion_quality",
73 "Dynamic_Degree": "motion_quality",
74 "Body_Penetration": "pose_quality",
75 "Pose_Quality": "pose_quality",
76
77 # Motion_Condition_Consistency category
78 "Motion_Condition_Consistency": "motion_condition_consistency",
79
80 # Motion_Generalizability category
81 "Motion_Generalizability": "motion_generalizability"
82 }
83 return dimension_categories[dimension]
84
85 def _get_mbench_dir(self, evaluation_path: str) -> Path:
86 """Return the directory that stores converted assets (same as evaluation path)."""

Callers 3

build_full_info_jsonMethod · 0.95
evaluateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected