WitneyWW's picture
TODO: pushT and rope trained separately, each with its own inference script (infer_pusht.sh / infer_rope.sh) and test set
986a92c verified
Raw History Blame Contribute Delete
932 Bytes
#!/usr/bin/env bash
# pushT inference script for a finished pushT TODO run (after 20 epochs): runs the pushT test set only
# (30 cases from the test split of splits/mixed_pusht_wrist_holdout.json) on 4 GPUs, writes summary.md and uploads
# checkpoints/<run_name>/ + results/<run_name>/test_epoch_019/ to the HF repo.
# bash scripts/infer_pusht.sh configs/nano_action_causal_pusht_sensoronly_v1.yaml
# bash scripts/infer_pusht.sh configs/nano_action_causal_pusht_sensoronly_noforce_v1.yaml
# Refuses configs of another task, and refuses to run before runs/<run_name>/epoch_019.pt exists.
set -euo pipefail
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
source "${ACTS_REPO:-$HERE}/env.sh"
cd "$ACTS_REPO"
CONFIG="${1:?usage: infer_pusht.sh configs/nano_action_causal_pusht_<variant>_v1.yaml [--no-upload]}"; shift || true
exec "$PYTHON_BIN" -u scripts/todo_eval_upload.py "$CONFIG" --task pusht --ngpu "${NGPU:-4}" "$@"