| #!/usr/bin/env bash |
| |
| |
| |
| |
| |
| |
| set -euo pipefail |
|
|
| root=/home/n2501108a/KV/experiments/rope_reindex_allmethods_20260824 |
| repo=/home/n2501108a/KV/forcingkv_private_worktrees/Lingbot-World-2 |
| frozen=/home/n2501108a/KV/experiments/lingbot_priority10_onlygen_allmethods_seed1_20260818 |
| benchmark=$frozen/benchmark |
| metadata=$benchmark/metadata/benchmark_cases.jsonl |
| diff_python=/home/n2501108a/miniconda3/envs/diff/bin/python |
| export CONTEXT_MEMORY_MODEL_ROOT=/home/n2501108a/KV/forcingkv_private/models |
| export PATH="$(dirname "$diff_python"):$PATH" |
| gpu=${LINGBOT_EVAL_GPU:-0} |
|
|
| mkdir -p "$root/eval_dino" "$root/logs" |
|
|
| |
| |
| |
| runs_dir=${LINGBOT_RUNS_DIR:-runs} |
|
|
| if [[ $# -gt 0 ]]; then |
| tags=("$@") |
| else |
| mapfile -t tags < <(cd "$root/$runs_dir" && ls -d */ 2>/dev/null | tr -d '/') |
| fi |
| if [[ ${#tags[@]} -eq 0 ]]; then |
| echo "no run directories under $root/runs" >&2 |
| exit 2 |
| fi |
|
|
| for tag in "${tags[@]}"; do |
| if [[ -f "$root/eval_dino/$tag/.complete" ]]; then |
| echo "skip $tag (already scored)" |
| continue |
| fi |
| |
| method=${tag%_seed*} |
| spec=$root/eval_dino/$tag.profiles.yaml |
| printf 'profiles:\n - {profile: %s, method: %s, label: %s}\n' \ |
| "$tag" "$method" "$tag" >"$spec" |
| echo "scoring $tag (method=$method)" |
| (cd "$repo"; CUDA_VISIBLE_DEVICES="$gpu" ./cmctl evaluate --model lingbot \ |
| --benchmark-root "$benchmark" --metadata "$metadata" \ |
| --annotations "$metadata" \ |
| --runs-roots "$root/$runs_dir/$tag" --eval-root "$root/eval_dino/$tag" \ |
| --profile-spec "$spec" --methods "$method" --video-name continuation.mp4 \ |
| --device cuda:0 --mask-mode sam --scoring-path owl_sam_dino \ |
| --frame-stride 1 --no-overlays --no-comparison-videos) \ |
| >"$root/logs/eval_$tag.log" 2>&1 && touch "$root/eval_dino/$tag/.complete" |
| done |
| echo "done" |
|
|