Skip to content
Merged
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
3 changes: 3 additions & 0 deletions pose_evaluation/metrics/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,15 @@ def update_signature_and_abbr(self, key: str, abbr: str, args: dict):

def format(self, short: bool = False) -> str:
parts = []

# Always print the "name" value first, if available.
name_value = self.signature_info.get("name")
if name_value is not None:
parts.append(str(name_value))
# Process all other keys.
for key, value in self.signature_info.items():
if str(key).startswith("_"):
continue
if key == "name" or value is None:
continue
# Handle nested signature objects and wrap them in curly braces.
Expand Down