File size: 978 Bytes
ae1ed83 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #!/bin/bash
# Phase C closed-loop evals for one TRACE arm: every checkpoint on
# the 9 subset tasks x 3 episodes. Usage: eval_arm.sh <arm> <condition>
# Checkpoints are evaluated in order 500, 1000, 2000, 5000; each
# writes results/eval_<arm>_<step>.json. Runs only when the arm's
# checkpoint file exists.
set -u
ARM=$1
COND=${2:-hybrid}
TV=~/sera_v4_experiments/trace_validation
PY=~/lerobot/.venv/bin/python
TASKS="libero_spatial:4,libero_spatial:5,libero_spatial:2,libero_object:0,libero_object:1,libero_object:5,libero_goal:0,libero_goal:3,libero_goal:4"
cd "$TV"
for STEP in 00500 01000 02000 05000; do
CKPT=runs/$ARM/ckpt_$STEP.pt
if [ -f "$CKPT" ]; then
$PY scripts/eval_trace.py --ckpt "$CKPT" --arm "$ARM" \
--tasks "$TASKS" --episodes 3 --condition "$COND" \
--out results/eval_${ARM}_${STEP}_${COND}.json \
> results/eval_${ARM}_${STEP}_${COND}.log 2>&1
echo "EVAL ${ARM} ${STEP} ${COND} done $(date +%H:%M:%S)" >> STATUS.md
fi
done
|