#!/usr/bin/env bash # Run final test on RADR using an existing checkpoint (no training). # Usage: # bash scripts/test_radr.sh # uses outputs/radr/checkpoints/last.ckpt # bash scripts/test_radr.sh /path/to/other.ckpt # explicit checkpoint set -euo pipefail cd "$(dirname "$0")/.." # load .env if present [ -f .env ] && set -a && . ./.env && set +a CKPT="${1:-outputs/radr/checkpoints/last.ckpt}" shift || true if [ ! -f "$CKPT" ]; then echo "[test_radr] checkpoint not found: $CKPT" exit 1 fi echo "[test_radr] using checkpoint: $CKPT" python3 src/train.py \ method=radr \ data=fairtalking \ trainer=ddp \ backbone=timesformer \ +test_only=true \ +test_ckpt="$CKPT" \ "$@"