add a11y_tree recording to trajectory output
This commit is contained in:
@@ -67,7 +67,8 @@ def run_single_example(agent, env, example, max_steps, instruction, args, exampl
|
||||
"reward": reward,
|
||||
"done": done,
|
||||
"info": info,
|
||||
"screenshot_file": f"step_{step_idx + 1}_{action_timestamp}.png"
|
||||
"screenshot_file": f"step_{step_idx + 1}_{action_timestamp}.png",
|
||||
"a11y_tree": obs.get("accessibility_tree") if isinstance(obs, dict) else None
|
||||
}))
|
||||
f.write("\n")
|
||||
if done:
|
||||
|
||||
Reference in New Issue
Block a user