Xinyun-Liu commited on
Commit
f53389c
·
verified ·
1 Parent(s): 074d09e

Add grouped source-video manifest for SpaVoBench v1

Browse files
README.md CHANGED
@@ -19,7 +19,7 @@ SpaVoBench is a timestamped image-and-instruction release derived from the human
19
  - `data/annotations.jsonl`: release records, one per extracted frame.
20
  - `data/manifest.json`: release counts, source policy, and timestamp convention.
21
  - `images/`: JPEG frames named by `annotation_id`.
22
- - `source-videos/README.md`: canonical source-video policy. Complete MP4s remain in `Xinyun-Liu/WorldModelBench` and are not duplicated here.
23
 
24
  ## Timestamp Convention
25
 
 
19
  - `data/annotations.jsonl`: release records, one per extracted frame.
20
  - `data/manifest.json`: release counts, source policy, and timestamp convention.
21
  - `images/`: JPEG frames named by `annotation_id`.
22
+ - `source-videos/README.md` and `source-videos/manifest.jsonl`: canonical source-video policy and grouped source links. Complete MP4s remain in `Xinyun-Liu/WorldModelBench` and are not duplicated here.
23
 
24
  ## Timestamp Convention
25
 
data/manifest.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "schema_version": "spavobench-v1",
3
- "generated_at": "2026-08-09T04:02:55Z",
4
  "source_repository": "Xinyun-Liu/WorldModelBench",
5
  "source_video_policy": "Complete source MP4s remain in WorldModelBench. This release stores stable paths and URLs without duplicating video files.",
6
  "timestamp_convention": "One or two digits: seconds. Three or four digits: leading digits are minutes and final two digits are seconds. Decimal timestamps are seconds.",
 
1
  {
2
  "schema_version": "spavobench-v1",
3
+ "generated_at": "2026-08-09T04:06:37Z",
4
  "source_repository": "Xinyun-Liu/WorldModelBench",
5
  "source_video_policy": "Complete source MP4s remain in WorldModelBench. This release stores stable paths and URLs without duplicating video files.",
6
  "timestamp_convention": "One or two digits: seconds. Three or four digits: leading digits are minutes and final two digits are seconds. Decimal timestamps are seconds.",
scripts/prepare_spavobench_release.py CHANGED
@@ -376,6 +376,26 @@ def write_jsonl(path: Path, rows: list[dict[str, Any]]) -> None:
376
  handle.write(json.dumps(row, ensure_ascii=False) + "\n")
377
 
378
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
379
  def dataset_card() -> str:
380
  return """---
381
  license: other
@@ -398,7 +418,7 @@ SpaVoBench is a timestamped image-and-instruction release derived from the human
398
  - `data/annotations.jsonl`: release records, one per extracted frame.
399
  - `data/manifest.json`: release counts, source policy, and timestamp convention.
400
  - `images/`: JPEG frames named by `annotation_id`.
401
- - `source-videos/README.md`: canonical source-video policy. Complete MP4s remain in `Xinyun-Liu/WorldModelBench` and are not duplicated here.
402
 
403
  ## Timestamp Convention
404
 
@@ -413,7 +433,7 @@ Every record contains the original WorldModelBench file path and public URL. `or
413
  def source_video_readme() -> str:
414
  return """# Source videos
415
 
416
- The complete, unmodified source MP4 for every SpaVoBench record is available from `Xinyun-Liu/WorldModelBench` at the `video_path` and `source_video_url` stored in its matching annotation record.
417
 
418
  Videos are deliberately not duplicated in this repository. This keeps each source file under its original provenance and distribution terms while allowing any released frame to be reproduced exactly from its decoded timestamp.
419
  """
@@ -564,6 +584,7 @@ def write_release(source_path: Path, output: Path, extract_frames: bool, workers
564
  (output / "README.md").write_text(dataset_card(), encoding="utf-8")
565
  (output / "source-videos").mkdir(exist_ok=True)
566
  (output / "source-videos" / "README.md").write_text(source_video_readme(), encoding="utf-8")
 
567
  write_jsonl(output / "data" / "annotations.jsonl", kept)
568
  write_json(output / "data" / "manifest.json", manifest)
569
  write_jsonl(output / "data" / "frame_failures.jsonl", failures)
@@ -575,13 +596,13 @@ def write_release(source_path: Path, output: Path, extract_frames: bool, workers
575
  def upload_release(output: Path, message: str) -> str:
576
  api = HfApi()
577
  api.create_repo(TARGET_REPOSITORY, repo_type="dataset", exist_ok=True, private=False)
578
- commit = api.upload_large_folder(
579
  repo_id=TARGET_REPOSITORY,
580
  repo_type="dataset",
581
  folder_path=str(output),
582
  commit_message=message,
583
  )
584
- return commit.commit_url
585
 
586
 
587
  def main() -> None:
 
376
  handle.write(json.dumps(row, ensure_ascii=False) + "\n")
377
 
378
 
379
+ def build_source_manifest(records: list[dict[str, Any]]) -> list[dict[str, Any]]:
380
+ grouped: dict[str, list[dict[str, Any]]] = collections.defaultdict(list)
381
+ for row in records:
382
+ grouped[row["video_path"]].append(row)
383
+ result: list[dict[str, Any]] = []
384
+ for video_path, rows in sorted(grouped.items()):
385
+ first = rows[0]
386
+ result.append(
387
+ {
388
+ "source_video_repository": SOURCE_REPOSITORY,
389
+ "video_path": video_path,
390
+ "source_video_url": first["source_video_url"],
391
+ "data_source": first["data_source"],
392
+ "annotation_ids": [row["annotation_id"] for row in rows],
393
+ "timestamp_seconds": [row["timestamp_seconds"] for row in rows],
394
+ }
395
+ )
396
+ return result
397
+
398
+
399
  def dataset_card() -> str:
400
  return """---
401
  license: other
 
418
  - `data/annotations.jsonl`: release records, one per extracted frame.
419
  - `data/manifest.json`: release counts, source policy, and timestamp convention.
420
  - `images/`: JPEG frames named by `annotation_id`.
421
+ - `source-videos/README.md` and `source-videos/manifest.jsonl`: canonical source-video policy and grouped source links. Complete MP4s remain in `Xinyun-Liu/WorldModelBench` and are not duplicated here.
422
 
423
  ## Timestamp Convention
424
 
 
433
  def source_video_readme() -> str:
434
  return """# Source videos
435
 
436
+ The complete, unmodified source MP4 for every SpaVoBench record is available from `Xinyun-Liu/WorldModelBench` at the `video_path` and `source_video_url` stored in its matching annotation record. `manifest.jsonl` groups those links by source video.
437
 
438
  Videos are deliberately not duplicated in this repository. This keeps each source file under its original provenance and distribution terms while allowing any released frame to be reproduced exactly from its decoded timestamp.
439
  """
 
584
  (output / "README.md").write_text(dataset_card(), encoding="utf-8")
585
  (output / "source-videos").mkdir(exist_ok=True)
586
  (output / "source-videos" / "README.md").write_text(source_video_readme(), encoding="utf-8")
587
+ write_jsonl(output / "source-videos" / "manifest.jsonl", build_source_manifest(kept))
588
  write_jsonl(output / "data" / "annotations.jsonl", kept)
589
  write_json(output / "data" / "manifest.json", manifest)
590
  write_jsonl(output / "data" / "frame_failures.jsonl", failures)
 
596
  def upload_release(output: Path, message: str) -> str:
597
  api = HfApi()
598
  api.create_repo(TARGET_REPOSITORY, repo_type="dataset", exist_ok=True, private=False)
599
+ api.upload_folder(
600
  repo_id=TARGET_REPOSITORY,
601
  repo_type="dataset",
602
  folder_path=str(output),
603
  commit_message=message,
604
  )
605
+ return f"https://huggingface.co/datasets/{TARGET_REPOSITORY}"
606
 
607
 
608
  def main() -> None:
source-videos/README.md CHANGED
@@ -1,5 +1,5 @@
1
  # Source videos
2
 
3
- The complete, unmodified source MP4 for every SpaVoBench record is available from `Xinyun-Liu/WorldModelBench` at the `video_path` and `source_video_url` stored in its matching annotation record.
4
 
5
  Videos are deliberately not duplicated in this repository. This keeps each source file under its original provenance and distribution terms while allowing any released frame to be reproduced exactly from its decoded timestamp.
 
1
  # Source videos
2
 
3
+ The complete, unmodified source MP4 for every SpaVoBench record is available from `Xinyun-Liu/WorldModelBench` at the `video_path` and `source_video_url` stored in its matching annotation record. `manifest.jsonl` groups those links by source video.
4
 
5
  Videos are deliberately not duplicated in this repository. This keeps each source file under its original provenance and distribution terms while allowing any released frame to be reproduced exactly from its decoded timestamp.
source-videos/manifest.jsonl ADDED
The diff for this file is too large to render. See raw diff