Spaces:
Running
Running
| import re | |
| def get_metric_choices(): | |
| """Return list of metric choices with emoji markers.""" | |
| return [ | |
| "Average β", | |
| "Image Quality π", | |
| "Brightness Consistency π", | |
| "Color Temperature π", | |
| "Sharpness Retention π", | |
| "Motion Smoothness π", | |
| "Trajectory Accuracy π", | |
| "Memory Symmetry π", | |
| "Trajectory Alignment π", | |
| ] | |
| def clean_metric_names(metrics): | |
| """Remove emoji markers from metric names.""" | |
| cleaned = [] | |
| for m in metrics: | |
| clean = m.replace(" β", "").replace(" π", "").strip() | |
| cleaned.append(clean) | |
| return cleaned | |
| def get_dimension_metrics(): | |
| """Return mapping from dimension to list of metrics (for radar chart).""" | |
| return { | |
| "Generation Quality": ["Image Quality", "Brightness Consistency", "Color Temperature", "Sharpness Retention"], | |
| "Trajectory Following": ["Motion Smoothness", "Trajectory Accuracy"], | |
| "Memory Ability": ["Memory Symmetry", "Trajectory Alignment"] | |
| } |