SceneMemBench / README.md
SiYuheng's picture
Add 60 Full Rollout inputs with scene prompts and reference actions
0ff08c7 verified
|
Raw History Blame Contribute Delete
3 kB
---
language:
- en
pretty_name: SceneMemBench
task_categories:
- video-to-video
tags:
- world-models
- scene-memory
- benchmark
---
# SceneMemBench
A Benchmark for Scene Memory in Interactive Video World Models.
600 controlled trajectories across 33 Unreal Engine scenes, containing 280,973 valid frames. The four trajectory types contain 100, 100, 200 and 200 cases respectively.
Full Rollout adds 60 image-anchored inputs, with 15 per trajectory type: 35 Unreal Engine initial frames and 25 AI-generated initial frames. Each input includes a scene prompt and a reference action sequence.
## Download
```python
from huggingface_hub import snapshot_download
snapshot_download("scenemembench/SceneMemBench", repo_type="dataset",
allow_patterns=["core/**", "README.md"], local_dir="SceneMemBench")
```
`core/index.json` lists all 600 cases. Each case contains `context.mp4`, `eval.mp4`, `manifest.json` and `pose/poses.json`. Frame ranges are zero-based and half-open. Camera positions use Unreal Engine centimeters; `primary_pose` stores `[x, y, z, pitch, yaw, roll]`, with angles in degrees. Query videos are ground-truth evaluation references. Straight trajectories stop after the turnaround at B; no return translation is included.
Optional original PNG frames are stored in `rgb/train-*.tar`, with paths `continued/<case_path>/rgb/<frame_id>.png`. Extract them into `core/`. `rgb-index.json` lists planned shards; `rgb-checksums.json` records shards uploaded and verified so far. Download only shards present in the latter. An optional `optional-full/` package contains full videos ending at the same valid endpoint; it is unnecessary for evaluation.
To prepare Context images for model inference without downloading original PNGs, run `scenemembench prepare --case <case_path>`. If you extracted original PNG shards, use those images directly instead.
For Full Rollout inputs, download `full-rollout/**` instead:
```python
snapshot_download("scenemembench/SceneMemBench", repo_type="dataset",
allow_patterns=["full-rollout/**", "README.md"], local_dir="SceneMemBench")
```
`full-rollout/index.json` lists the 60 cases. Each `cases/GCMCxxx/` directory contains `initial_frame.png`, `scene_prompt.txt`, `prompt.txt` (scene and trajectory instructions), `actions.json`, and `manifest.json`. Actions describe the reference order and approximate key-hold durations in milliseconds; adapt them to each model's native controls. Forward and Look Back ends after the turn, without walking back.
## Run evaluation
Install the [SceneMemBench code](https://github.com/Seeyou-Hi/SceneMemBench), then run:
```bash
scenemembench evaluate --task novel --case SceneMemBench/core/continued/<case_path> \
--prediction continuation.mp4 --output metrics.json
```
Use `--task seen` for Reversed Rotation and Full Rotation, and `--task novel` for Forward and Look Back and New-Viewpoint Revisit. See the code repository for model setup and metric dependencies.