EVA-Client
On this page

EVAL

Prepare, run, and score checkpoint trials against a fixed task and scene.

Scene evaluation

EVAL uses configured tasks and task sets from eval_cfg.task_set_dir. For a scene task, select a task set, task, scene, and trial. Only scenes referenced by that task are valid. The start request binds task_set, task_id, and scene_id together with an immutable clip_id; the saved trial keeps a scene-map snapshot. Simulator metadata, when supplied, must match the chosen task and scene.

Prepare the robot before RUN. After STOP and save completion, mark milestones and save the score/note. Scoring is tied to the recorded clip, model, scene, and trial; a running or unsaved attempt cannot be scored. Re-entering EVAL resumes from unscored work. RESULT includes scene identity when grouping trials and can open the task reference photo, cameras, robot replay, and charts.

Evaluation and scene plans

Inherit a deploy preset and configs/00_base/evaluation.py, then fill eval_cfg. Each checkpoint contains a name, a deploy config path relative to the evaluation preset, a port, and an optional host (default 127.0.0.1). The loader resolves each deploy config independently and overrides its policy endpoint with that checkpoint’s host and port.

_base_ = ["../01_deploy/dual_yam/openpi_qpos.py", "../00_base/evaluation.py"]

eval_cfg = dict(
    task_set_dir="datasets/data_collection/task_sets/v1.2",
    trials_per_prompt=5,
    inference_strategy="async",
    checkpoints=[dict(
        name="openpi_yam",
        config="../01_deploy/dual_yam/openpi_qpos.py",
        host="127.0.0.1",
        port=9000,
    )],
)

task_set_dir accepts a directory or list of directories. Relative paths resolve from the repository root. A directory may contain tasks.csv directly, task-set children, or known version folders. EVAL only loads paths explicitly configured in eval_cfg.task_set_dir. Without that setting, no evaluation task sets are loaded; the data root and collection task sets are not used as fallbacks. Versioned plans keep their version in the displayed name, for example v1.2/<task_set>.

The console combines plan tasks with matching authored eval_cfg.tasks metadata, including milestones. Scene-aware attempts require task_set, task_id, and scene_id together; the selected task must belong to that scene and its prompt must match. Each attempt preserves the scene-map snapshot for RESULT review. Plain prompt tasks remain supported without scene identity. See scene plans for CSV/YAML files and console for the operator workflow.

Startup merges the preset chain and hardware defaults, loads task sets, builds control spaces, derives paths, validates settings, and resolves evaluation/RL policy configs. An empty eval_cfg or rl_cfg disables that workflow.

Evaluation attempts

web:start supports the same attempt-binding path as the HTTP start API when clip_id is provided:

{
  "cmd": "web:start",
  "clip_id": "unique-attempt-id",
  "prompt": "pick cup",
  "trial": 1,
  "model_name": "configured-model-name",
  "task_set": "configured-task-set",
  "task_id": "TASK-001",
  "scene_id": "SC-001"
}

EVA must be in the ready phase. Trial numbers are positive integers. model_name is optional but, when supplied, must match the active model. task_set, task_id, and scene_id are either supplied together or omitted for a prompt-only attempt. The prompt and scene must belong to the selected plan. Optional sim_metadata is checked for matching scene/task identity. A successful reply reserves the attempt and moves its phase to starting.

Use web:stop to finish an evaluation attempt and wait for its saved record. Milestone scoring remains an HTTP/browser operation (/api/score), tied to the recorded clip and model. The control channel does not expose a score command. DEBUG’s web:run/web:halt and evaluation’s web:start/web:stop serve their respective state-machine flows.

Earlier console recording · EVAL