progress_probe_repro / run_train_v4.sh
JackieMM's picture
Upload folder using huggingface_hub
6b11150 verified
Raw History Blame Contribute Delete
1.62 kB
#!/usr/bin/env bash
set -euo pipefail
source /data/mani/miniconda3/env_probe.sh
cd /data/mani/progress_probe_repro
OUT=outputs/classification_probe
LABEL=/share/robotwin2.0-hard-cross-embodiment
VIDEO=/share/robotwin2.0-hard
TASK=blocks_ranking_rgb
SPLITS=5
SEED=42
EP=100
python -u classification_probe.py check-distribution \
--task "$TASK" --annotation-root "$OUT" --output-dir "$OUT/summary"
for demo in demo_clean_100_franka demo_clean_100_arx demo_clean_100_ur5; do
echo "=== fit-cv $demo full_label ==="
python -u classification_probe.py fit-cv \
--task "$TASK" --demo "$demo" --label-kind full_label \
--label-root "$LABEL" --video-root "$VIDEO" --annotation-root "$OUT" \
--output-dir "$OUT/within_robot/$TASK/$demo/full_label_val0_960" \
--n-splits "$SPLITS" --seed "$SEED" --max-episodes "$EP"
echo "=== time baseline $demo ==="
python -u classification_probe.py fit-time-baseline \
--task "$TASK" --demo "$demo" --label-kind full_label \
--label-root "$LABEL" --video-root "$VIDEO" --annotation-root "$OUT" \
--n-splits "$SPLITS" --seed "$SEED" --max-episodes "$EP"
done
echo "=== cross-robot full_label ==="
python -u classification_probe.py fit-cross-robot \
--task "$TASK" --label-root "$LABEL" --video-root "$VIDEO" --annotation-root "$OUT" \
--output-dir "$OUT/cross_robot/$TASK" --label-kinds full_label --max-episodes "$EP"
echo "=== summarize + plots ==="
python -u classification_probe.py summarize \
--task "$TASK" --label-root "$LABEL" --video-root "$VIDEO" --annotation-root "$OUT" \
--max-episodes "$EP" --seed "$SEED"
echo "=== done ==="