Merge pull request #15 from Cadene/user/aliberts/2024_03_09_add_ci_eval_test

Add end-to-end pusht eval test
This commit is contained in:
Simon Alibert 2024-03-09 16:54:50 +01:00 committed by GitHub
commit 1cc621ec36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 16 additions and 17 deletions

View File

@ -101,21 +101,20 @@ 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
#----------------------------------------------
# cleanup
#----------------------------------------------
- name: Cleanup
run: rm -rf diffusion_policy data
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 \
env.episode_length=8 \
device=cpu \
policy.pretrained_model_path=tests/outputs/models/1.pt