Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- README.md +178 -0
- baselines/README.md +41 -0
- baselines/run_homa_AC.sh +7 -0
- baselines/run_humo_AC.sh +7 -0
- baselines/run_ours_AC.sh +7 -0
- baselines/run_ours_crosstest.sh +7 -0
- baselines/run_ours_homa.sh +7 -0
- baselines/run_vace_AC.sh +7 -0
- baselines/run_vace_crosstest.sh +7 -0
- benchmarks/README.md +49 -0
- benchmarks/assets/img_0/ref_human.png +3 -0
- benchmarks/assets/img_0/ref_object.png +3 -0
- benchmarks/assets/img_0/ref_pasted.png +3 -0
- benchmarks/assets/img_1/ref_human.png +3 -0
- benchmarks/assets/img_1/ref_object.png +3 -0
- benchmarks/assets/img_10/ref_human.png +3 -0
- benchmarks/assets/img_10/ref_object.png +3 -0
- benchmarks/assets/img_10/ref_pasted.png +3 -0
- benchmarks/assets/img_11/ref_human.png +3 -0
- benchmarks/assets/img_11/ref_object.png +3 -0
- benchmarks/assets/img_11/ref_pasted.png +3 -0
- benchmarks/assets/img_12/ref_human.png +3 -0
- benchmarks/assets/img_12/ref_object.png +3 -0
- benchmarks/assets/img_12/ref_pasted.png +3 -0
- benchmarks/assets/img_13/ref_human.png +3 -0
- benchmarks/assets/img_13/ref_object.png +3 -0
- benchmarks/assets/img_13/ref_pasted.png +3 -0
- benchmarks/assets/img_14/ref_human.png +3 -0
- benchmarks/assets/img_14/ref_object.png +3 -0
- benchmarks/assets/img_14/ref_pasted.png +3 -0
- benchmarks/assets/img_15/ref_human.png +3 -0
- benchmarks/assets/img_15/ref_object.png +3 -0
- benchmarks/assets/img_15/ref_pasted.png +3 -0
- benchmarks/assets/img_16/ref_human.png +3 -0
- benchmarks/assets/img_16/ref_object.png +3 -0
- benchmarks/assets/img_16/ref_pasted.png +3 -0
- benchmarks/assets/img_17/ref_human.png +3 -0
- benchmarks/assets/img_17/ref_object.png +3 -0
- benchmarks/assets/img_17/ref_pasted.png +3 -0
- benchmarks/assets/img_18/ref_human.png +3 -0
- benchmarks/assets/img_18/ref_object.png +3 -0
- benchmarks/assets/img_18/ref_pasted.png +3 -0
- benchmarks/assets/img_19/ref_human.png +3 -0
- benchmarks/assets/img_19/ref_object.png +3 -0
- benchmarks/assets/img_2/ref_human.png +3 -0
- benchmarks/assets/img_2/ref_object.png +3 -0
- benchmarks/assets/img_2/ref_pasted.png +3 -0
- benchmarks/assets/img_20/ref_human.png +3 -0
- benchmarks/assets/img_20/ref_object.png +3 -0
- benchmarks/assets/img_20/ref_pasted.png +3 -0
README.md
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# AgentHOI evaluation
|
| 2 |
+
|
| 3 |
+
Benchmarks, metric runners, and baseline comparison scripts for HOI video generation.
|
| 4 |
+
Extracted from the internal `projects/evaluations` repo and packaged for release.
|
| 5 |
+
|
| 6 |
+
## Layout
|
| 7 |
+
|
| 8 |
+
```
|
| 9 |
+
evaluation/
|
| 10 |
+
├── README.md # this file
|
| 11 |
+
├── env.example.sh # copy → env.local.sh and fill paths
|
| 12 |
+
├── benchmarks/
|
| 13 |
+
│ ├── datasets/ # HOI test JSONs (inputs for inference + InternVL)
|
| 14 |
+
│ └── manifests/ # Object-DINO / TVA metric lists
|
| 15 |
+
├── scripts/
|
| 16 |
+
│ ├── prepare_eval_jsons.py / .sh
|
| 17 |
+
│ ├── prepare_baselines_jsons.sh
|
| 18 |
+
│ ├── run_all_metrics.sh # 4 metrics in one pass
|
| 19 |
+
│ ├── aggregate_results.py / .sh
|
| 20 |
+
│ └── setup_deps.sh # symlink full metrics repo
|
| 21 |
+
├── baselines/ # per-method eval launchers (ours + comparisons)
|
| 22 |
+
├── docs/ # metric notes (e.g. InternVL JSON schema)
|
| 23 |
+
├── videos/ # generated mp4s (~1.8 GB), same layout as results/
|
| 24 |
+
└── results/ # published metric JSON (~18 MB)
|
| 25 |
+
├── summary/ # all_metrics.json, eval_summary.xlsx
|
| 26 |
+
├── crosstest/ # ours vs VACE vs HuMo
|
| 27 |
+
├── AC/ # AC test-set baselines
|
| 28 |
+
├── homa_benchmark/ # HOMA self-collected set
|
| 29 |
+
└── ablations/
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
## Metrics (4 suites)
|
| 33 |
+
|
| 34 |
+
| # | Metric | Env (example) | Output |
|
| 35 |
+
|---|--------|---------------|--------|
|
| 36 |
+
| 1 | **Object-DINO** | `dino_obj` | `obj_dino_result.json` |
|
| 37 |
+
| 2 | **VBench** | `dl-main` | `vbench_results/` |
|
| 38 |
+
| 3 | **TVA** (VideoAlign / VideoReward) | `VideoReward` | `TVA_result.json` |
|
| 39 |
+
| 4 | **InternVL** | `internvl` | `internvl/summary.json` |
|
| 40 |
+
|
| 41 |
+
VBench dimensions: `motion_smoothness`, `dynamic_degree`, `aesthetic_quality`, `overall_consistency`.
|
| 42 |
+
|
| 43 |
+
InternVL scores object consistency, human consistency, and interaction quality (see `docs/internvl_metrics.md`).
|
| 44 |
+
|
| 45 |
+
## Prerequisites
|
| 46 |
+
|
| 47 |
+
1. **Full metrics codebase** (`EVAL_DEPS_ROOT`): the original repo at
|
| 48 |
+
`projects/evaluations` contains `VBench/`, `VideoAlign/`, `obj_dino/`, `vlm/`.
|
| 49 |
+
This release folder only ships benchmarks + orchestration scripts (~1 MB JSON + shell).
|
| 50 |
+
|
| 51 |
+
```bash
|
| 52 |
+
# If evaluations is at projects/evaluations (sibling of this repo's parent tree):
|
| 53 |
+
bash scripts/setup_deps.sh /apdcephfs_cq8/.../projects/evaluations
|
| 54 |
+
export EVAL_DEPS_ROOT=/path/to/evaluations
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
2. **Conda envs** (or set `PYTHON_*` in `env.local.sh`): `dino_obj`, `dl-main`, `VideoReward`, `internvl`.
|
| 58 |
+
|
| 59 |
+
3. **Weights**: VideoReward checkpoint, InternVL3.5-38B, VBench cache (`VBENCH_CACHE_DIR`).
|
| 60 |
+
|
| 61 |
+
4. **Generated videos**: one `.mp4` per `image_id` in the benchmark JSON.
|
| 62 |
+
|
| 63 |
+
## Published results
|
| 64 |
+
|
| 65 |
+
Paper comparison assets are shipped under:
|
| 66 |
+
|
| 67 |
+
- **`videos/`** (~1.8 GB): generated `.mp4` per method / benchmark
|
| 68 |
+
- **`results/`** (~18 MB): Object-DINO, VBench, TVA, InternVL JSON
|
| 69 |
+
|
| 70 |
+
Same directory layout in both trees (e.g. `crosstest/ours/`).
|
| 71 |
+
|
| 72 |
+
- **Summary**: `results/summary/all_metrics.json`, `eval_summary.xlsx`
|
| 73 |
+
- **Cross-test**: `videos/crosstest/{ours,vace,humo}/` + matching `results/crosstest/`
|
| 74 |
+
- **AC / HOMA**: `videos/AC/`, `videos/homa_benchmark/` + matching `results/`
|
| 75 |
+
|
| 76 |
+
See [`videos/README.md`](videos/README.md) and [`results/README.md`](results/README.md).
|
| 77 |
+
|
| 78 |
+
Re-copy videos from cluster paths: `bash scripts/copy_eval_videos.sh`
|
| 79 |
+
|
| 80 |
+
Package reference images for portable inference / HF dataset:
|
| 81 |
+
|
| 82 |
+
```bash
|
| 83 |
+
bash scripts/prepare_benchmark_assets.sh
|
| 84 |
+
# -> benchmarks/assets/ + benchmarks/datasets_portable/
|
| 85 |
+
```
|
| 86 |
+
|
| 87 |
+
## Quick start (self-contained)
|
| 88 |
+
|
| 89 |
+
All paths are relative to `release/evaluation/` — no hardcoded cluster paths in scripts.
|
| 90 |
+
|
| 91 |
+
```bash
|
| 92 |
+
cd release/evaluation
|
| 93 |
+
|
| 94 |
+
# 0) Once: link metric code (VBench / VideoAlign / obj_dino / InternVL)
|
| 95 |
+
bash scripts/setup_deps.sh /path/to/projects/evaluations
|
| 96 |
+
|
| 97 |
+
# 1) Optional: copy env.local.sh only if you need custom PYTHON_* or model paths
|
| 98 |
+
cp env.example.sh env.local.sh # edit TVA / InternVL weights
|
| 99 |
+
|
| 100 |
+
# 2) Reference images for portable JSON (run on machine with source data access)
|
| 101 |
+
bash scripts/prepare_benchmark_assets.sh
|
| 102 |
+
|
| 103 |
+
# 3) Run metrics on bundled videos (already under videos/)
|
| 104 |
+
bash scripts/run_eval.sh crosstest ours
|
| 105 |
+
bash scripts/run_eval.sh AC vace
|
| 106 |
+
# equivalent: bash baselines/run_ours_crosstest.sh
|
| 107 |
+
|
| 108 |
+
# 4) Aggregate
|
| 109 |
+
bash scripts/aggregate_results.sh
|
| 110 |
+
```
|
| 111 |
+
|
| 112 |
+
**Custom generated videos**: put mp4 under `videos/<benchmark>/<method>/` or:
|
| 113 |
+
|
| 114 |
+
```bash
|
| 115 |
+
export VIDEO_PATH=/your/mp4/dir
|
| 116 |
+
bash scripts/run_eval.sh crosstest custom
|
| 117 |
+
```
|
| 118 |
+
|
| 119 |
+
## Benchmarks
|
| 120 |
+
|
| 121 |
+
Three test sets (see `benchmarks/README.md`):
|
| 122 |
+
|
| 123 |
+
| Benchmark | Dataset JSON | Typical use |
|
| 124 |
+
|-----------|--------------|-------------|
|
| 125 |
+
| **Cross-test** | `hoi_crosstest_20251107.json` | Main paper comparison (72 clips) |
|
| 126 |
+
| **AC** | `hoi_AC_test_evalset.json` | AnchorCrafter-aligned test |
|
| 127 |
+
| **HOMA** | `hoi_selfcollect_homa1_evalset.json` | In-the-wild self-collected |
|
| 128 |
+
|
| 129 |
+
Use the matching manifests (`obj_dino_*.json`, `tva_*.json`) and baseline script under `baselines/`.
|
| 130 |
+
|
| 131 |
+
## Baseline comparison workflow
|
| 132 |
+
|
| 133 |
+
1. Run inference for **ours** and each baseline on the same benchmark JSON (Stage D in main README).
|
| 134 |
+
2. Point `VIDEO_PATH` at each method's output folder.
|
| 135 |
+
3. Run the matching `baselines/run_<method>_<benchmark>.sh`.
|
| 136 |
+
4. `bash scripts/aggregate_results.sh` to build a comparison table.
|
| 137 |
+
|
| 138 |
+
Compared methods in the paper include **VACE**, **HuMo**, **HOMA**, **AnchorCrafter**, etc. Add scripts by copying `baselines/run_vace_AC.sh`.
|
| 139 |
+
|
| 140 |
+
## Upload to Hugging Face (dataset, no model weights)
|
| 141 |
+
|
| 142 |
+
**Do not** upload from `evaluation/` root with `hf upload . .` — filenames like `obj=img_13=human=img_2.mp4` often trigger:
|
| 143 |
+
|
| 144 |
+
`RuntimeError: Error while uploading 'videos/.../obj=img_13=human=img_2.mp4' to the Hub.`
|
| 145 |
+
|
| 146 |
+
Use the staging packer (puts `videos/`, `benchmarks/assets/`, `results/` into tarballs — **no per-file mp4/json upload with `=` in paths**):
|
| 147 |
+
|
| 148 |
+
```bash
|
| 149 |
+
cd release/evaluation
|
| 150 |
+
bash scripts/package_hf_upload.sh
|
| 151 |
+
|
| 152 |
+
cd hf_upload_staging
|
| 153 |
+
hf upload YOUR_USER/agenthoi-eval . . --repo-type dataset
|
| 154 |
+
```
|
| 155 |
+
|
| 156 |
+
Downloaders restore folders:
|
| 157 |
+
|
| 158 |
+
```bash
|
| 159 |
+
huggingface-cli download YOUR_USER/agenthoi-eval --repo-type dataset --local-dir agenthoi-eval
|
| 160 |
+
cd agenthoi-eval && bash scripts/unpack_hf_download.sh
|
| 161 |
+
```
|
| 162 |
+
|
| 163 |
+
`results/` JSON may also contain `=` in paths; if upload still fails, pack `results/` similarly or upload in smaller batches.
|
| 164 |
+
|
| 165 |
+
## Notes
|
| 166 |
+
|
| 167 |
+
- **Paths in dataset JSON** (`ref_image_path`, etc.) may point to internal storage; update or mount data before InternVL / Object-DINO if paths are missing.
|
| 168 |
+
- **Large artifacts** (VBench weights ~2 GB, `results/`, sample videos) are not bundled in release; keep them under `EVAL_DEPS_ROOT` or download separately.
|
| 169 |
+
- Source of truth for development: `/path/to/projects/evaluations` (full history, user study, ablation JSONs).
|
| 170 |
+
|
| 171 |
+
## Relation to training / inference
|
| 172 |
+
|
| 173 |
+
| Stage | Repo path |
|
| 174 |
+
|-------|-----------|
|
| 175 |
+
| Inference (generate videos to evaluate) | `../scripts/inference/inference_wanx_i2v.sh` |
|
| 176 |
+
| Eval benchmarks as inference JSON | `benchmarks/datasets/hoi_crosstest_20251107.json` |
|
| 177 |
+
|
| 178 |
+
Evaluation does **not** load the HOI transformer for metrics; it only reads generated `.mp4` files.
|
baselines/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Baseline comparison runners
|
| 2 |
+
|
| 3 |
+
Each script sets `VIDEO_PATH`, benchmark manifests, and calls `scripts/run_all_metrics.sh`.
|
| 4 |
+
|
| 5 |
+
Uses bundled paths via `scripts/eval_common.sh` — videos default to `videos/<benchmark>/<method>/`.
|
| 6 |
+
|
| 7 |
+
**Once per machine**: `bash scripts/setup_deps.sh /path/to/evaluations`
|
| 8 |
+
**Optional**: `env.local.sh` for TVA / InternVL weight paths only.
|
| 9 |
+
|
| 10 |
+
## One-liner
|
| 11 |
+
|
| 12 |
+
```bash
|
| 13 |
+
bash scripts/run_eval.sh crosstest ours # same as baselines/run_ours_crosstest.sh
|
| 14 |
+
```
|
| 15 |
+
|
| 16 |
+
## Ours (AgentHOI)
|
| 17 |
+
|
| 18 |
+
| Script | Benchmark | Videos (default) |
|
| 19 |
+
|--------|-----------|------------------|
|
| 20 |
+
| `run_ours_crosstest.sh` | Cross-test | `videos/crosstest/ours/` |
|
| 21 |
+
| `run_ours_AC.sh` | AC | `videos/AC/ours/` |
|
| 22 |
+
| `run_ours_homa.sh` | HOMA | `videos/homa_benchmark/ours/` |
|
| 23 |
+
|
| 24 |
+
## Compared methods
|
| 25 |
+
|
| 26 |
+
| Method | Scripts |
|
| 27 |
+
|--------|---------|
|
| 28 |
+
| VACE | `run_vace_crosstest.sh`, `run_vace_AC.sh` |
|
| 29 |
+
| HuMo | `run_humo_AC.sh` |
|
| 30 |
+
| HOMA | `run_homa_AC.sh` |
|
| 31 |
+
|
| 32 |
+
Replace mp4 under the matching `videos/` subfolder, or `export VIDEO_PATH=...` before running.
|
| 33 |
+
|
| 34 |
+
Results land in `results/ours_crosstest_eval/` (Object-DINO, VBench, TVA, InternVL subfolders).
|
| 35 |
+
|
| 36 |
+
## Aggregate all methods
|
| 37 |
+
|
| 38 |
+
```bash
|
| 39 |
+
bash scripts/aggregate_results.sh
|
| 40 |
+
# -> results/eval_summary.xlsx
|
| 41 |
+
```
|
baselines/run_homa_AC.sh
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -e
|
| 3 |
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
| 4 |
+
# shellcheck source=../scripts/eval_common.sh
|
| 5 |
+
source "${SCRIPT_DIR}/../scripts/eval_common.sh"
|
| 6 |
+
eval_set_benchmark AC homa
|
| 7 |
+
exec bash "${EVAL_ROOT}/scripts/run_all_metrics.sh"
|
baselines/run_humo_AC.sh
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -e
|
| 3 |
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
| 4 |
+
# shellcheck source=../scripts/eval_common.sh
|
| 5 |
+
source "${SCRIPT_DIR}/../scripts/eval_common.sh"
|
| 6 |
+
eval_set_benchmark AC humo
|
| 7 |
+
exec bash "${EVAL_ROOT}/scripts/run_all_metrics.sh"
|
baselines/run_ours_AC.sh
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -e
|
| 3 |
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
| 4 |
+
# shellcheck source=../scripts/eval_common.sh
|
| 5 |
+
source "${SCRIPT_DIR}/../scripts/eval_common.sh"
|
| 6 |
+
eval_set_benchmark AC ours
|
| 7 |
+
exec bash "${EVAL_ROOT}/scripts/run_all_metrics.sh"
|
baselines/run_ours_crosstest.sh
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -e
|
| 3 |
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
| 4 |
+
# shellcheck source=../scripts/eval_common.sh
|
| 5 |
+
source "${SCRIPT_DIR}/../scripts/eval_common.sh"
|
| 6 |
+
eval_set_benchmark crosstest ours
|
| 7 |
+
exec bash "${EVAL_ROOT}/scripts/run_all_metrics.sh"
|
baselines/run_ours_homa.sh
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -e
|
| 3 |
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
| 4 |
+
# shellcheck source=../scripts/eval_common.sh
|
| 5 |
+
source "${SCRIPT_DIR}/../scripts/eval_common.sh"
|
| 6 |
+
eval_set_benchmark homa ours
|
| 7 |
+
exec bash "${EVAL_ROOT}/scripts/run_all_metrics.sh"
|
baselines/run_vace_AC.sh
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -e
|
| 3 |
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
| 4 |
+
# shellcheck source=../scripts/eval_common.sh
|
| 5 |
+
source "${SCRIPT_DIR}/../scripts/eval_common.sh"
|
| 6 |
+
eval_set_benchmark AC vace
|
| 7 |
+
exec bash "${EVAL_ROOT}/scripts/run_all_metrics.sh"
|
baselines/run_vace_crosstest.sh
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -e
|
| 3 |
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
| 4 |
+
# shellcheck source=../scripts/eval_common.sh
|
| 5 |
+
source "${SCRIPT_DIR}/../scripts/eval_common.sh"
|
| 6 |
+
eval_set_benchmark crosstest vace
|
| 7 |
+
exec bash "${EVAL_ROOT}/scripts/run_all_metrics.sh"
|
benchmarks/README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Evaluation benchmarks
|
| 2 |
+
|
| 3 |
+
## Datasets (`datasets/`)
|
| 4 |
+
|
| 5 |
+
| File | Samples | Description |
|
| 6 |
+
|------|---------|-------------|
|
| 7 |
+
| `hoi_crosstest_20251107.json` | 72 | Main cross-test set (AC + HOMA mixed); paper Table comparisons |
|
| 8 |
+
| `hoi_AC_test_evalset.json` | 71 | AnchorCrafter-style AC test split |
|
| 9 |
+
| `hoi_selfcollect_homa1_evalset.json` | 110 | HOMA self-collected real-scene test |
|
| 10 |
+
| `prompt_translated3.json` | — | Object English names for Object-DINO (`obj_en` by id) |
|
| 11 |
+
|
| 12 |
+
Original JSONs keep **cluster absolute paths** (for internal replay).
|
| 13 |
+
|
| 14 |
+
## Portable datasets + ref images (for release / Hugging Face)
|
| 15 |
+
|
| 16 |
+
| Path | Description |
|
| 17 |
+
|------|-------------|
|
| 18 |
+
| `datasets_portable/` | Same schemas as `datasets/`, but `ref_*` paths point to `assets/` |
|
| 19 |
+
| `assets/<image_id>/` | `ref_human.png`, `ref_object.png`, `ref_pasted.png` per sample |
|
| 20 |
+
|
| 21 |
+
Generate / refresh on a machine that can read the source paths:
|
| 22 |
+
|
| 23 |
+
```bash
|
| 24 |
+
bash scripts/prepare_benchmark_assets.sh
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
- **Cross-test (72)**: ref images complete after packaging
|
| 28 |
+
- **AC / HOMA**: may list missing files in `assets_missing.txt` — re-run on dev machine if needed
|
| 29 |
+
|
| 30 |
+
**Inference**: use `datasets_portable/*.json` + `assets/` (paths relative to `evaluation/`).
|
| 31 |
+
|
| 32 |
+
**Video naming**: `{image_id}.mp4` (e.g. `obj=img_46=human=img_10.mp4`), under `../videos/`.
|
| 33 |
+
|
| 34 |
+
## Metric manifests (`manifests/`)
|
| 35 |
+
|
| 36 |
+
Pre-generated lists for Object-DINO and TVA (VideoAlign). Regenerate with:
|
| 37 |
+
|
| 38 |
+
```bash
|
| 39 |
+
bash scripts/prepare_eval_jsons.sh # crosstest
|
| 40 |
+
bash scripts/prepare_baselines_jsons.sh # AC + HOMA
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
| Manifest | Used for |
|
| 44 |
+
|----------|----------|
|
| 45 |
+
| `obj_dino_crosstest.json` / `tva_crosstest.json` | Cross-test |
|
| 46 |
+
| `obj_dino_AC.json` / `tva_AC.json` | AC benchmark |
|
| 47 |
+
| `obj_dino_homa.json` / `tva_homa.json` | HOMA benchmark |
|
| 48 |
+
|
| 49 |
+
InternVL uses the raw dataset JSON under `datasets/` (not the TVA manifest).
|
benchmarks/assets/img_0/ref_human.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_0/ref_object.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_0/ref_pasted.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_1/ref_human.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_1/ref_object.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_10/ref_human.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_10/ref_object.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_10/ref_pasted.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_11/ref_human.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_11/ref_object.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_11/ref_pasted.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_12/ref_human.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_12/ref_object.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_12/ref_pasted.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_13/ref_human.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_13/ref_object.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_13/ref_pasted.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_14/ref_human.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_14/ref_object.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_14/ref_pasted.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_15/ref_human.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_15/ref_object.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_15/ref_pasted.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_16/ref_human.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_16/ref_object.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_16/ref_pasted.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_17/ref_human.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_17/ref_object.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_17/ref_pasted.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_18/ref_human.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_18/ref_object.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_18/ref_pasted.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_19/ref_human.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_19/ref_object.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_2/ref_human.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_2/ref_object.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_2/ref_pasted.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_20/ref_human.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_20/ref_object.png
ADDED
|
Git LFS Details
|
benchmarks/assets/img_20/ref_pasted.png
ADDED
|
Git LFS Details
|