#!/bin/bash # E2 eval chain for one arm: full E1 protocol (5 conditions) # on that arm's checkpoint 010000. Usage: chain_fs1_e2_eval.sh set -u RUN=$1 EXP=$HOME/sera_v4_experiments CKPT=$EXP/$RUN/checkpoints/010000/pretrained_model SHORT=${RUN##*-} RES=$EXP/fewshot/results mkdir -p "$RES" cd "$HOME/lerobot" run_cond() { .venv/bin/python "$EXP/tools/eval_demo.py" --ckpt "$CKPT" \ --condition "$1" --out "$RES/fs1-$SHORT-cond-$1.jsonl" \ > "$RES/fs1-$SHORT-cond-$1.log" 2>&1 echo "$SHORT condition $1 done" } run_cond b & run_cond a & run_cond c & wait run_cond d & run_cond e & wait echo "E2 EVAL DONE $RUN"