Download scripts/run_eval.sh from ProAudience/agenthoi-eval: direct link, hf CLI and curl.
- Browser
- Download file 878 Bytes
-
https://huggingface.co/datasets/ProAudience/agenthoi-eval/resolve/main/scripts/run_eval.sh
- Command line
-
hf download hf://datasets/ProAudience/agenthoi-eval/scripts/run_eval.sh
-
curl -L -o run_eval.sh https://huggingface.co/datasets/ProAudience/agenthoi-eval/resolve/main/scripts/run_eval.sh
878 Bytes
| # Self-contained metric runner for bundled videos under evaluation/videos/. | |
| # | |
| # Usage: | |
| # bash scripts/run_eval.sh <crosstest|AC|homa> <method> | |
| # | |
| # Examples: | |
| # bash scripts/run_eval.sh crosstest ours | |
| # bash scripts/run_eval.sh AC vace | |
| # | |
| # Custom videos: export VIDEO_PATH=/your/mp4/dir && bash scripts/run_eval.sh crosstest custom | |
| set -e | |
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
| # shellcheck source=eval_common.sh | |
| source "${SCRIPT_DIR}/eval_common.sh" | |
| BENCH="${1:?benchmark: crosstest | AC | homa}" | |
| METHOD="${2:?method folder name under videos/<benchmark>/}" | |
| eval_set_benchmark "${BENCH}" "${METHOD}" | |
| if [ ! -d "${VIDEO_PATH}" ]; then | |
| echo "[run_eval] ERROR: missing videos: ${VIDEO_PATH}" >&2 | |
| echo " Run: bash scripts/copy_eval_videos.sh (on packaging machine)" >&2 | |
| exit 1 | |
| fi | |
| exec bash "${SCRIPT_DIR}/run_all_metrics.sh" | |