feat(value-viz): add configurable multiview and smoothing controls

- add viz.video_keys for selecting and ordering camera views

- add viz.smooth_window with default 1 (disabled)

- wire new viz options through lerobot_value_infer export path

- migrate validated overlay style and multiview export logic
这个提交包含在:
AlgoMalu
2026-03-04 13:03:19 +08:00
父节点 908eb4bbbc
当前提交 8b6a85cf0f
共有 3 个文件被更改,包括 366 次插入 和 97 次删除

查看文件

@ -93,9 +93,11 @@ class ValueInferenceVizConfig:
enable: bool = False
episodes: str = "all"
video_key: str | None = None
video_keys: str | None = None
overwrite: bool = False
vcodec: str = "libsvtav1"
frame_storage_mode: str = "memory"
smooth_window: int = 1
def validate(self) -> None:
if not self.episodes:
@ -104,6 +106,8 @@ class ValueInferenceVizConfig:
raise ValueError("'viz.vcodec' must be non-empty.")
if self.frame_storage_mode not in {"memory", "disk"}:
raise ValueError("'viz.frame_storage_mode' must be one of {'memory', 'disk'}.")
if self.smooth_window < 1:
raise ValueError("'viz.smooth_window' must be >= 1. Use 1 to disable smoothing.")
@dataclass