File size: 627 Bytes
b4396f0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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 <run>
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"