From e543c9a42cabcbd80f22d3f923a9fc23053cf295 Mon Sep 17 00:00:00 2001 From: Cadene Date: Tue, 27 Feb 2024 11:54:31 +0000 Subject: [PATCH] small fix % --- lerobot/scripts/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lerobot/scripts/train.py b/lerobot/scripts/train.py index 99e82217..9af2f79e 100644 --- a/lerobot/scripts/train.py +++ b/lerobot/scripts/train.py @@ -197,7 +197,7 @@ def train(cfg: dict, out_dir=None, job_name=None): L, metrics, step, online_episode_idx, start_time, is_offline=False ) - if step > 0 and step & cfg.eval_freq == 0: + if step > 0 and step % cfg.eval_freq == 0: eval_policy_and_log( env, td_policy,