File size: 932 Bytes
986a92c
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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}" "$@"