From c6fb40fb295c580b7f6f3b347859574cd10f3515 Mon Sep 17 00:00:00 2001 From: Simon Alibert Date: Sat, 9 Mar 2024 16:37:34 +0100 Subject: [PATCH] Add end-to-end pusht eval test --- .github/workflows/test.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f99c964b6..5215ecac3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -101,19 +101,22 @@ jobs: hydra.job.name=pusht \ env=pusht \ wandb.enable=False \ - offline_steps=1 \ + offline_steps=2 \ online_steps=0 \ - device=cpu - # TODO(rcadene, aliberts): Add end-to-end test of eval checkpoint post training - # - name: Test eval pusht end-to-end - # run: | - # source .venv/bin/activate - # python lerobot/scripts/eval.py - # hydra.job.name=pusht \ - # env=pusht \ - # wandb.enable=False \ - # eval_episodes=1 \ - # device=cpu + device=cpu \ + save_model=true \ + save_freq=1 \ + hydra.run.dir=tests/outputs/ + - name: Test eval pusht end-to-end + run: | + source .venv/bin/activate + python lerobot/scripts/eval.py + hydra.job.name=pusht \ + env=pusht \ + wandb.enable=False \ + eval_episodes=1 \ + device=cpu \ + policy.pretrained_model_path=tests/outputs/models/1.pt #---------------------------------------------- # cleanup #----------------------------------------------