YilingMa commited on
Commit
dff8d37
·
verified ·
1 Parent(s): 28013c5

final version

Browse files
.gitattributes CHANGED
@@ -1,63 +1,4 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.avro filter=lfs diff=lfs merge=lfs -text
4
- *.bin filter=lfs diff=lfs merge=lfs -text
5
- *.bz2 filter=lfs diff=lfs merge=lfs -text
6
- *.ckpt filter=lfs diff=lfs merge=lfs -text
7
- *.ftz filter=lfs diff=lfs merge=lfs -text
8
- *.gz filter=lfs diff=lfs merge=lfs -text
9
- *.h5 filter=lfs diff=lfs merge=lfs -text
10
- *.joblib filter=lfs diff=lfs merge=lfs -text
11
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
12
- *.lz4 filter=lfs diff=lfs merge=lfs -text
13
- *.mds filter=lfs diff=lfs merge=lfs -text
14
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
15
- *.model filter=lfs diff=lfs merge=lfs -text
16
- *.msgpack filter=lfs diff=lfs merge=lfs -text
17
- *.npy filter=lfs diff=lfs merge=lfs -text
18
- *.npz filter=lfs diff=lfs merge=lfs -text
19
- *.onnx filter=lfs diff=lfs merge=lfs -text
20
- *.ot filter=lfs diff=lfs merge=lfs -text
21
- *.parquet filter=lfs diff=lfs merge=lfs -text
22
- *.pb filter=lfs diff=lfs merge=lfs -text
23
- *.pickle filter=lfs diff=lfs merge=lfs -text
24
- *.pkl filter=lfs diff=lfs merge=lfs -text
25
- *.pt filter=lfs diff=lfs merge=lfs -text
26
- *.pth filter=lfs diff=lfs merge=lfs -text
27
- *.rar filter=lfs diff=lfs merge=lfs -text
28
- *.safetensors filter=lfs diff=lfs merge=lfs -text
29
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
30
- *.tar.* filter=lfs diff=lfs merge=lfs -text
31
- *.tar filter=lfs diff=lfs merge=lfs -text
32
- *.tflite filter=lfs diff=lfs merge=lfs -text
33
- *.tgz filter=lfs diff=lfs merge=lfs -text
34
- *.wasm filter=lfs diff=lfs merge=lfs -text
35
- *.xz filter=lfs diff=lfs merge=lfs -text
36
- *.zip filter=lfs diff=lfs merge=lfs -text
37
- *.zst filter=lfs diff=lfs merge=lfs -text
38
- *tfevents* filter=lfs diff=lfs merge=lfs -text
39
- # Audio files - uncompressed
40
- *.pcm filter=lfs diff=lfs merge=lfs -text
41
- *.sam filter=lfs diff=lfs merge=lfs -text
42
- *.raw filter=lfs diff=lfs merge=lfs -text
43
- # Audio files - compressed
44
- *.aac filter=lfs diff=lfs merge=lfs -text
45
- *.flac filter=lfs diff=lfs merge=lfs -text
46
- *.mp3 filter=lfs diff=lfs merge=lfs -text
47
- *.ogg filter=lfs diff=lfs merge=lfs -text
48
- *.wav filter=lfs diff=lfs merge=lfs -text
49
- # Image files - uncompressed
50
- *.bmp filter=lfs diff=lfs merge=lfs -text
51
- *.gif filter=lfs diff=lfs merge=lfs -text
52
- *.png filter=lfs diff=lfs merge=lfs -text
53
- *.tiff filter=lfs diff=lfs merge=lfs -text
54
- # Image files - compressed
55
- *.jpg filter=lfs diff=lfs merge=lfs -text
56
- *.jpeg filter=lfs diff=lfs merge=lfs -text
57
- *.webp filter=lfs diff=lfs merge=lfs -text
58
- # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
- *.webm filter=lfs diff=lfs merge=lfs -text
61
- data/grpo_policy.jsonl filter=lfs diff=lfs merge=lfs -text
62
- data/grpo_targets.jsonl filter=lfs diff=lfs merge=lfs -text
63
- data/grpo_structured_gold.jsonl filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  *.mp4 filter=lfs diff=lfs merge=lfs -text
2
+ *.tar filter=lfs diff=lfs merge=lfs -text
3
+ *.parquet filter=lfs diff=lfs merge=lfs -text
4
+ *.jsonl filter=lfs diff=lfs merge=lfs -text
 
MANIFEST.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "VideoVera",
3
+ "scale": "6.4k",
4
+ "repository": "YilingMa/VideoVera-6.4k",
5
+ "release": "final",
6
+ "visibility": "public",
7
+ "records": 6400,
8
+ "warmup_sft": 800,
9
+ "grpo": 5600,
10
+ "task_counts": {
11
+ "before_or_after_action": 600,
12
+ "egocentric_temporal_direction": 900,
13
+ "event_order": 500,
14
+ "object_grounded_route_planning": 500,
15
+ "relative_direction": 900,
16
+ "reverse_route_plan": 1000,
17
+ "route_plan": 1000,
18
+ "route_shape": 1000
19
+ },
20
+ "warmup_task_counts": {
21
+ "before_or_after_action": 80,
22
+ "egocentric_temporal_direction": 110,
23
+ "event_order": 60,
24
+ "object_grounded_route_planning": 60,
25
+ "relative_direction": 110,
26
+ "reverse_route_plan": 120,
27
+ "route_plan": 140,
28
+ "route_shape": 120
29
+ },
30
+ "rl_task_counts": {
31
+ "before_or_after_action": 520,
32
+ "egocentric_temporal_direction": 790,
33
+ "event_order": 440,
34
+ "object_grounded_route_planning": 440,
35
+ "relative_direction": 790,
36
+ "reverse_route_plan": 880,
37
+ "route_plan": 860,
38
+ "route_shape": 880
39
+ },
40
+ "unique_video_files": 5149,
41
+ "video_bytes": 14803821735,
42
+ "media_shards": [
43
+ "media/videos-warmup-0000.tar",
44
+ "media/videos-warmup-0001.tar"
45
+ ],
46
+ "source_repository": "VideoVPR/VideoPRM-CanonicalV4-Data",
47
+ "source_revision": "0640d58c8502f3fa5e05d99ac38b9aa982c1ecf6",
48
+ "warmup_sha256": "725bb30363a2bd51b2bdd34bed2c67dd6ec5f0bfbbcd4eceab8b5d14feabca4b",
49
+ "frozen_record_ids_and_order_preserved": true,
50
+ "warmup_resampled": false,
51
+ "policy_hidden_target_separation": true,
52
+ "benchmark_ids_disjoint": true,
53
+ "data_generation_performed": false,
54
+ "source_assets_remain_under_upstream_terms": true
55
+ }
README.md ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: VideoVera 6.4k
3
+ language:
4
+ - en
5
+ task_categories:
6
+ - visual-question-answering
7
+ - video-text-to-text
8
+ tags:
9
+ - video-reasoning
10
+ - process-supervision
11
+ - structured-reasoning
12
+ - videovera
13
+ size_categories:
14
+ - 1K<n<10K
15
+ configs:
16
+ - config_name: default
17
+ data_files:
18
+ - split: train
19
+ path: catalog/train.jsonl
20
+ ---
21
+
22
+ # VideoVera 6.4k
23
+
24
+ **Verifiable Process Reward for Video Reasoning**
25
+
26
+ This is the **6,400-example** VideoVera training release across eight tasks:
27
+ **800 frozen warm-up examples** and **5,600 RL prompts**. The scale name is a rounded label; the table below gives the exact counts.
28
+
29
+ [Generation pipeline](https://github.com/Yiling-Ma/VideoVera) · [6.4k](https://huggingface.co/datasets/YilingMa/VideoVera-6.4k) · [12k](https://huggingface.co/datasets/YilingMa/VideoVera-12k) · [27k](https://huggingface.co/datasets/YilingMa/VideoVera-27k)
30
+
31
+ ## Dataset composition
32
+
33
+ | Task | Total | Warm-up | RL |
34
+ |---|---:|---:|---:|
35
+ | Object Direction | 900 | 110 | 790 |
36
+ | Egocentric Displacement | 900 | 110 | 790 |
37
+ | Forward Route Planning | 1,000 | 140 | 860 |
38
+ | Landmark Route Planning | 500 | 60 | 440 |
39
+ | Route-Shape Classification | 1,000 | 120 | 880 |
40
+ | Reverse Route Planning | 1,000 | 120 | 880 |
41
+ | Event-Sequence Ordering | 500 | 60 | 440 |
42
+ | Adjacent Action | 600 | 80 | 520 |
43
+ | **Total** | **6,400** | **800** | **5,600** |
44
+
45
+ ## Files
46
+
47
+ | Path | Purpose |
48
+ |---|---|
49
+ | `data/all.jsonl` | Full SFT corpus with answers and supervised messages |
50
+ | `data/sft_warmup.jsonl` | Frozen warm-up split, copied byte-for-byte from the original release |
51
+ | `data/grpo_policy.jsonl` | RL inputs without assistant answers or hidden verifier targets |
52
+ | `data/grpo_targets.jsonl` | Hidden structured reference targets, in the same order as RL inputs |
53
+ | `data/grpo_structured_gold.jsonl` | Full RL records with structured reference traces |
54
+ | `media/` | Original video payloads, media index and any legacy-path aliases |
55
+ | `catalog/train.jsonl` | Flat browsing catalog with `training_stage`; includes supervised information |
56
+ | `tools/prepare_data.py` | Check hashes, materialize videos and resolve runtime video paths |
57
+ | `MANIFEST.json`, `SHA256SUMS.json` | Exact counts and release integrity hashes |
58
+ | `metadata/` | Pinned source snapshot and partition/integrity checks |
59
+
60
+ The browsing catalog is for inspection and contains answers. Use `data/grpo_policy.jsonl` as RL model input and keep `grpo_targets.jsonl` separate from the model context. The catalog's `messages_json` field stores the original chat structure as a JSON string.
61
+
62
+ ## Download and prepare
63
+
64
+ ```python
65
+ from huggingface_hub import snapshot_download
66
+ root = snapshot_download("YilingMa/VideoVera-6.4k", repo_type="dataset")
67
+ print(root)
68
+ ```
69
+
70
+ Run the preparation helper with Python 3.10 or later, using a **new** output directory:
71
+
72
+ ```bash
73
+ python /path/to/snapshot/tools/prepare_data.py \
74
+ --root /path/to/snapshot \
75
+ --output ./videovera-6.4k
76
+ ```
77
+
78
+ The helper verifies release and media hashes, materializes the original MP4 payloads and writes JSONL files with absolute local video paths. No new examples, labels, frames or splits are generated. It preserves the downloaded snapshot. Runtime JSONL paths depend on the chosen output directory; the frozen warm-up bytes remain unchanged in the snapshot.
79
+
80
+ The default Hub viewer exposes the browsing catalog. For actual training, first run the helper and use its output files. Video files are packaged separately from the browsing catalog.
81
+
82
+ ## Partitions and compatibility
83
+
84
+ Warm-up and RL identifiers are disjoint, and their union is exactly the full training corpus. Policy inputs and hidden targets have matching identifier order. Source example identifiers, task/schema keys, questions, answer choices, answers, reference traces and media payloads retain their original values.
85
+
86
+ The 6.4k release preserves its original **800-example** warm-up and **5,600-prompt** RL partition. Its previously separate warm-up videos are included here. Original metadata bytes and placeholder paths are retained; the preparation helper resolves them through `media/path_aliases.json`. This smaller corpus is not an exact identifier subset of the 12k release; do not assume identical membership across all three scales.
87
+
88
+ ## Sources and verification
89
+
90
+ Object Direction uses ScanNet/ScanRefer and ARKitScenes annotations. Navigation tasks use R2R/RxR routes rendered in Matterport3D. Landmark Route Planning uses ARKitScenes; temporal tasks use EPIC-KITCHENS-100.
91
+
92
+ This release reorganizes the frozen training artifacts. It does not rerun generation, weaken source geometry/visibility checks, change answer classes, rebalance examples, relax deduplication or raise physical-scene caps. Source audit reports are historical automated checks; they do not assert individual human review of every record. The benchmark is not included in these training repositories.
93
+
94
+ Dataset-specific access, attribution and redistribution terms continue to apply to the source media and annotations. This release does not replace the upstream licenses. See [source terms and acknowledgements](SOURCE_TERMS.md).
SHA256SUMS.json ADDED
The diff for this file is too large to render. See raw diff
 
SOURCE_TERMS.md ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Source terms and acknowledgements
2
+
3
+ VideoVera combines derived question/answer/reference annotations and video clips from the sources below. Each source retains its applicable access, attribution, use and redistribution conditions. No uniform replacement license is granted for third-party media or annotations. Consult the official source terms for your use.
4
+
5
+ - [ScanNet](https://www.scan-net.org/)
6
+ - [ScanRefer](https://github.com/daveredrum/ScanRefer)
7
+ - [ARKitScenes](https://github.com/apple/ARKitScenes)
8
+ - [Matterport3D](https://niessner.github.io/Matterport/)
9
+ - [Room-to-Room (R2R)](https://github.com/peteanderson80/Matterport3DSimulator)
10
+ - [Room-across-Room (RxR)](https://github.com/google-research-datasets/RxR)
11
+ - [EPIC-KITCHENS](https://epic-kitchens.github.io/)
12
+
13
+ The generation code is maintained separately at https://github.com/Yiling-Ma/VideoVera. Dataset access does not imply a transfer of rights in the underlying recordings or scene assets.
catalog/train.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:480f2d2dddc5a7e1f0950b50e0e26bce55164233ca6cc33bd4368b4e8642f402
3
+ size 11084172
data/all.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52b14a1e2fa91f092909871a77f9ad3fe767970f222a50f54911a7e1b5207ba9
3
+ size 59105368
media/path_aliases.json ADDED
The diff for this file is too large to render. See raw diff
 
media/video_index.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
media/videos-warmup-0000.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fcef4c8d6fc5349187a071081651cf23995c1418274d0b50e783758411ab9e84
3
+ size 2739005440
media/videos-warmup-0001.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cac3939a05549a1ed84219ae2eadf8aacd4f92bf29ce37d9fda8e51c6f90b254
3
+ size 149432320
metadata/partition_checks.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "records": 6400,
3
+ "warmup": 800,
4
+ "rl": 5600,
5
+ "unique_ids": 6400,
6
+ "warmup_rl_overlap": 0,
7
+ "policy_target_order_identical": true,
8
+ "benchmark_id_overlap": 0,
9
+ "warmup_sha256": "725bb30363a2bd51b2bdd34bed2c67dd6ec5f0bfbbcd4eceab8b5d14feabca4b",
10
+ "original_warmup_bytes_preserved": true,
11
+ "training_started": false
12
+ }
metadata/source_snapshot.json ADDED
The diff for this file is too large to render. See raw diff
 
tools/prepare_data.py ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Verify a VideoVera release and materialize local training inputs (Python >=3.10)."""
2
+ import argparse
3
+ import hashlib
4
+ import json
5
+ import os
6
+ import shutil
7
+ import tarfile
8
+ from pathlib import Path
9
+
10
+
11
+ def sha256(path):
12
+ digest = hashlib.sha256()
13
+ with path.open('rb') as stream:
14
+ for block in iter(lambda: stream.read(8 * 1024**2), b''):
15
+ digest.update(block)
16
+ return digest.hexdigest()
17
+
18
+
19
+ def records(path):
20
+ with path.open(encoding='utf-8') as stream:
21
+ for line in stream:
22
+ if line.strip():
23
+ yield json.loads(line)
24
+
25
+
26
+ def main():
27
+ parser = argparse.ArgumentParser(description=__doc__)
28
+ parser.add_argument('--root', type=Path, required=True, help='Downloaded repository snapshot')
29
+ parser.add_argument('--output', type=Path, required=True, help='New output directory')
30
+ args = parser.parse_args()
31
+ root, output = args.root.resolve(), args.output.resolve()
32
+ if output.exists():
33
+ raise ValueError('Use a new output directory; existing data are preserved: ' + str(output))
34
+ manifest = json.loads((root / 'MANIFEST.json').read_text())
35
+ checksums = json.loads((root / 'SHA256SUMS.json').read_text())
36
+ for index, (name, expected) in enumerate(checksums.items(), 1):
37
+ source = (root / name).resolve()
38
+ if not source.is_relative_to(root) or sha256(source) != expected:
39
+ raise ValueError('Release checksum mismatch: ' + name)
40
+ if index % 500 == 0:
41
+ print(f'Checksums verified: {index}/{len(checksums)}', flush=True)
42
+ media = {row['path']: row for row in records(root / 'media/video_index.jsonl')}
43
+ if len(media) != manifest['unique_video_files']:
44
+ raise ValueError('Media index count mismatch')
45
+ output.mkdir(parents=True)
46
+ for row in media.values():
47
+ if 'repository_path' not in row:
48
+ continue
49
+ source = (root / row['repository_path']).resolve()
50
+ target = (output / row['path']).resolve()
51
+ if not source.is_relative_to(root) or not target.is_relative_to(output):
52
+ raise ValueError('Unsafe indexed media path')
53
+ target.parent.mkdir(parents=True, exist_ok=True)
54
+ try:
55
+ os.link(source, target)
56
+ except OSError:
57
+ shutil.copyfile(source, target)
58
+ for name in manifest['media_shards']:
59
+ with tarfile.open(root / name, 'r') as archive:
60
+ for member in archive:
61
+ target = (output / member.name).resolve()
62
+ if not member.isfile() or member.name not in media or not target.is_relative_to(output):
63
+ raise ValueError('Unexpected archive member: ' + member.name)
64
+ if target.exists():
65
+ if sha256(target) != media[member.name]['sha256']:
66
+ raise ValueError('Existing media mismatch: ' + member.name)
67
+ continue
68
+ target.parent.mkdir(parents=True, exist_ok=True)
69
+ partial = target.with_suffix('.mp4.partial')
70
+ with archive.extractfile(member) as source, partial.open('xb') as stream:
71
+ shutil.copyfileobj(source, stream, length=8 * 1024**2)
72
+ if sha256(partial) != media[member.name]['sha256']:
73
+ raise ValueError('Extracted media mismatch; partial preserved: ' + member.name)
74
+ partial.rename(target)
75
+ for row in media.values():
76
+ if sha256(output / row['path']) != row['sha256']:
77
+ raise ValueError('Media checksum mismatch: ' + row['path'])
78
+ alias_file = root / 'media/path_aliases.json'
79
+ aliases = json.loads(alias_file.read_text()) if alias_file.exists() else {}
80
+
81
+ def runtime(value):
82
+ if isinstance(value, dict):
83
+ return {key: runtime(item) for key, item in value.items()}
84
+ if isinstance(value, list):
85
+ return [runtime(item) for item in value]
86
+ if isinstance(value, str):
87
+ relative = aliases.get(value, value)
88
+ if relative in media:
89
+ return str(output / relative)
90
+ return value
91
+
92
+ ids = {}
93
+ for source in sorted((root / 'data').glob('*.jsonl')):
94
+ current = []
95
+ with (output / source.name).open('x', encoding='utf-8') as stream:
96
+ for row in records(source):
97
+ current.append(row['id'])
98
+ stream.write(json.dumps(runtime(row), ensure_ascii=False) + '\n')
99
+ if len(current) != len(set(current)):
100
+ raise ValueError('Duplicate IDs: ' + source.name)
101
+ ids[source.name] = current
102
+ warm, policy, full = (set(ids[name]) for name in ['sft_warmup.jsonl', 'grpo_policy.jsonl', 'all.jsonl'])
103
+ if warm & policy or warm | policy != full:
104
+ raise ValueError('Warm-up / policy partition mismatch')
105
+ if ids['grpo_policy.jsonl'] != ids['grpo_targets.jsonl'] or ids['grpo_policy.jsonl'] != ids['grpo_structured_gold.jsonl']:
106
+ raise ValueError('Policy and reference target order mismatch')
107
+ assert (len(full), len(warm), len(policy)) == (manifest['records'], manifest['warmup_sft'], manifest['grpo'])
108
+ print(json.dumps({'status': 'VIDEOVERA_INPUTS_VERIFIED', 'records': len(full), 'warmup': len(warm), 'rl': len(policy), 'output': str(output)}))
109
+
110
+
111
+ if __name__ == '__main__':
112
+ main()