Skip to content

Commit

Permalink
Update lerobot/scripts/eval_robot.py
Browse files Browse the repository at this point in the history
Co-authored-by: Yoel <[email protected]>
  • Loading branch information
michel-aractingi and ChorntonYoel authored Dec 9, 2024
1 parent 90091cf commit 8d08f97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lerobot/scripts/eval_robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ def eval_policy(
)
],
"aggregated": {
"avg_sum_reward": float(np.nanmean(sum_rewards[:n_episodes])),
"avg_max_reward": float(np.nanmean(max_rewards[:n_episodes])),
"pc_success": float(np.mean(successes) * 100),
"avg_sum_reward": float(np.nanmean(torch.cat(sum_rewards[:n_episodes]))),
"avg_max_reward": float(np.nanmean(torch.cat(max_rewards[:n_episodes]))),
"pc_success": float(np.nanmean(torch.cat(successes[:n_episodes])) * 100),
"eval_s": time.time() - start_eval,
"eval_ep_s": (time.time() - start_eval) / n_episodes,
},
Expand Down

0 comments on commit 8d08f97

Please sign in to comment.