Datasets:
Tasks:
Visual Question Answering
Formats:
parquet
Languages:
English
Size:
100K - 1M
Tags:
video
multimodal
event-understanding
temporal-grounding
hierarchical-annotations
post-training
License:
Add files using upload-large-folder tool
Browse filesFiles changed (50)
- LICENSES.mdAdded+15
- MEDIA_LAYOUT_ZH.mdAdded+46
- README.md+269
- assets/eventlens-cover.svgAdded
- licenses/TimeLens-LICENSE.txtAdded+47
- metadata/annotation_content_verification.jsonAdded+15
- metadata/media_coverage.jsonAdded+56
- metadata/media_index/frames-00000-of-00037.jsonAdded+1
- metadata/media_index/frames-00001-of-00037.jsonAdded+1
- metadata/media_index/frames-00002-of-00037.jsonAdded+1
- metadata/media_index/frames-00003-of-00037.jsonAdded+1
- metadata/media_index/frames-00004-of-00037.jsonAdded+1
- metadata/media_index/frames-00005-of-00037.jsonAdded+1
- metadata/media_index/frames-00006-of-00037.jsonAdded+1
- metadata/media_index/frames-00007-of-00037.jsonAdded+1
- metadata/media_index/frames-00008-of-00037.jsonAdded+1
- metadata/media_index/frames-00009-of-00037.jsonAdded+1
- metadata/media_index/frames-00010-of-00037.jsonAdded+1
- metadata/media_index/frames-00011-of-00037.jsonAdded+1
- metadata/media_index/frames-00012-of-00037.jsonAdded+1
- metadata/media_index/frames-00013-of-00037.jsonAdded+1
- metadata/media_index/frames-00014-of-00037.jsonAdded+1
- metadata/media_index/frames-00015-of-00037.jsonAdded+1
- metadata/media_index/frames-00016-of-00037.jsonAdded+1
- metadata/media_index/frames-00017-of-00037.jsonAdded+1
- metadata/media_index/frames-00018-of-00037.jsonAdded+1
- metadata/media_index/frames-00019-of-00037.jsonAdded+1
- metadata/media_index/frames-00020-of-00037.jsonAdded+1
- metadata/media_index/frames-00021-of-00037.jsonAdded+1
- metadata/media_index/frames-00022-of-00037.jsonAdded+1
- metadata/media_index/frames-00023-of-00037.jsonAdded+1
- metadata/media_index/frames-00024-of-00037.jsonAdded+1
- metadata/media_index/frames-00025-of-00037.jsonAdded+1
- metadata/media_index/frames-00026-of-00037.jsonAdded+1
- metadata/media_index/frames-00027-of-00037.jsonAdded+1
- metadata/media_index/frames-00028-of-00037.jsonAdded+1
- metadata/media_index/frames-00029-of-00037.jsonAdded+1
- metadata/media_index/frames-00030-of-00037.jsonAdded+1
- metadata/media_index/frames-00031-of-00037.jsonAdded+1
- metadata/media_index/frames-00032-of-00037.jsonAdded+1
- metadata/media_index/frames-00033-of-00037.jsonAdded+1
- metadata/media_index/frames-00034-of-00037.jsonAdded+1
- metadata/media_index/frames-00035-of-00037.jsonAdded+1
- metadata/media_index/frames-00036-of-00037.jsonAdded+1
- metadata/media_shards.jsonAdded+228
- metadata/release.jsonAdded+158
- metadata/schema.jsonAdded+198
- metadata/sources.jsonAdded+19
- metadata/video_links.jsonlAdded
- tools/convert_to_training_jsonl.pyAdded+367
123456789101112131415# Noncommercial use and source-specific terms
EventLens-derived hierarchy annotations and proxy labels use[CC-BY-NC-SA-4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/).Preserve attribution and share-alike requirements. This does not replaceupstream third-party terms or license third-party video rights.
| Source | Applicable terms || --- | --- || ET-Instruct-164K | [CC-BY-NC-SA-4.0 source card](https://huggingface.co/datasets/PolyU-ChenLab/ET-Instruct-164K) || TimeLens-100K | [Custom license](licenses/TimeLens-LICENSE.txt): academic/noncommercial purposes, excludes commercial/production use, includes an EU restriction. Constituent third-party terms remain applicable. || TimeRFT / TimeR1 | [Upstream project](https://github.com/xiaomi-research/time-r1) and each constituent dataset's terms. || LLaVA-Video-178K | [Upstream dataset](https://huggingface.co/datasets/lmms-lab/LLaVA-Video-178K) and constituent media terms; academic/educational use. |
All media retain source-specific terms. The code license is separate.12345678910111213141516171819202122232425262728293031323334353637383940414243444546# 原始标注、训练样本与视频帧的对应关系
发布目录采用以下结构。多个训练 config 共享同一份帧,原始标注通过视频关联。
```textEventLens-Train/ train/<config>/part-00000.parquet train/<config>/training.jsonl.gz val/<config>/part-00000.parquet val/<config>/training.jsonl.gz annotations/hier_v1/{part-00000.parquet,original_json.tar.gz} annotations/hier_legacy/{part-00000.parquet,original_json.tar.gz} media/frames/... metadata/video_links.jsonl metadata/media_coverage.json```
`val/` 对应 Hugging Face 的 `monitor_val` split,是历史训练监控集,不能视为独立测试集。两个原始标注 config 使用 `annotations` split。
| 查看内容 | 关联字段 | 关联规则 || --- | --- | --- || 原始 JSON 标注 | `clip_key`、`source_video_path` / `video_path` | 保留 L1/L2/L3 层级内容;源视频路径转换为可移植的来源引用 || 标注 Parquet | `annotation_id`、`annotation_collection`、`source_dataset`、`video_id`、`source_video_key`、`payload_json` | collection 区分历史标注版本;真实来源从视频路径识别,不能仅根据目录名判断 || 训练 Parquet | `source_video_ids`、`media[].source_dataset`、`media[].source_video_id`、`annotation_id` | 每个 media 项仍是一段独立模型输入,保持原有帧列表顺序 || 训练 JSONL | `videos`、`metadata.clip_key` / `video_id`、来源引用 | 直接保留训练契约,仅将机器绝对路径改成相对引用 || 视频关联索引 | `source_dataset + source_video_key` | 精确关联原始标注与训练帧目录;完整源视频 key 防止不同数据集或子目录的同名视频混淆 || 共享帧 | `media[].frame_keys` / JSONL 的 `videos` | 相对数据根目录解析;train、val 和不同 config 不各自复制帧 |
原始标注关联的是源视频。训练输入可能使用整段视频的采样帧,也可能只取其中一个片段,或重新排列多个片段。因此,视频对应正确不表示“每条训练样本包含整段视频的全部帧”。发布不增加逐帧标签映射,也不将原始标注用的约 1 FPS 图片冒充训练用的 2 FPS 缓存。
层级原始标注主要对应 boundary、progression、relation 的派生训练样本。TG 和 MCQ 的原始监督来自各自上游数据,不能因为共享 `media/` 就宣称每个 TG/MCQ 视频都具有 EventLens 层级标注。
2026-10-12 已完成冻结 full mix 的全量核查:37,428 条训练样本与 1,950 条监控样本引用的 2,921,513 张不同路径的 JPEG 全部存在,总计 76,307,127,175 字节;没有训练缓存目录对应多个源视频或目录元数据不一致的问题。30,000 条层级派生训练样本与 750 条监控样本全部关联到原始标注。
| 实际上游来源 | 原始标注文件数 | 不同来源路径的视频数 | 出现在训练媒体中的标注视频 | 没有训练帧的标注视频 || --- | ---: | ---: | ---: | ---: || ET-Instruct | 10,530 | 10,035 | 9,108 | 927 || TimeLens | 531 | 531 | 1 | 530 |
`hier_v1` collection 有 9,738 份 ET 标注;`hier_legacy` 有 792 份 ET 和 531 份 TimeLens 标注。历史目录不是纯 TimeLens 来源。原始标注共 11,061 份,包含同一视频的历史版本,因此文件数不等于视频数。已逐份比较原始 JSON 与发布 JSON,标签、时间区间及描述完全一致;仅 `video_path`、`source_video_path`、`frame_dir` 三个字段的机器路径被替换,语义差异为 0。
11,061 个 `annotation_id` 均唯一,没有跨视频歧义。有 4 个 `clip_key` 对应多个来源路径。索引使用 `source_dataset + source_video_key`,保留这些路径差异;仅按 Video ID 关联会产生歧义。对训练引用的帧可逐一找到来源,但发布的训练帧没有覆盖全部原始标注视频,也没有提供整段原视频的每一帧。
训练媒体中另有 2,115 个 TimeRFT 来源视频、2,106 个 TimeLens 来源视频和 3,237 个 LLaVA-Video 来源视频。TG/MCQ 的上游监督与本次原始层级标注是不同集合。详细覆盖结果以 `metadata/media_coverage.json` 为准。
`sources/` 和 `provenance/` 是上游来源与历史构造输入的相对引用,不表示这些原视频、标注过程用帧或内部构造报告随包分发。训练实际消费的共享 JPEG 位于 `media/frames/`。123---license: cc-by-nc-sa-4.0---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272---pretty_name: EventLenslicense: cc-by-nc-sa-4.0language:- ensize_categories:- 10K<n<100Ktask_categories:- visual-question-answeringtags:- video- multimodal- event-understanding- temporal-grounding- hierarchical-annotations- post-training- noncommercialconfigs:- config_name: paper_mt_opddefault: truedata_files:- split: trainpath: train/paper_mt_opd/part-*.parquet- split: monitor_valpath: val/paper_mt_opd/part-*.parquet- config_name: paper_seg_teacherdata_files:- split: trainpath: train/paper_seg_teacher/part-*.parquet- split: monitor_valpath: val/paper_seg_teacher/part-*.parquet- config_name: paper_prog_teacherdata_files:- split: trainpath: train/paper_prog_teacher/part-*.parquet- split: monitor_valpath: val/paper_prog_teacher/part-*.parquet- config_name: paper_relation_teacherdata_files:- split: trainpath: train/paper_relation_teacher/part-*.parquet- split: monitor_valpath: val/paper_relation_teacher/part-*.parquet- config_name: tgdata_files:- split: trainpath: train/tg/part-*.parquet- split: monitor_valpath: val/tg/part-*.parquet- config_name: mcqdata_files:- split: trainpath: train/mcq/part-*.parquet- split: monitor_valpath: val/mcq/part-*.parquet- config_name: segdata_files:- split: trainpath: train/seg/part-*.parquet- split: monitor_valpath: val/seg/part-*.parquet- config_name: progdata_files:- split: trainpath: train/prog/part-*.parquet- split: monitor_valpath: val/prog/part-*.parquet- config_name: relationdata_files:- split: trainpath: train/relation/part-*.parquet- split: monitor_valpath: val/relation/part-*.parquet- config_name: annotations_hier_v1data_files:- split: annotationspath: annotations/hier_v1/part-*.parquet- config_name: annotations_hier_legacydata_files:- split: annotationspath: annotations/hier_legacy/part-*.parquet---**[Quick start](#quick-start) · [Training views](#training-views) · [Annotations & media](#annotations--media) · [字段说明(中文)](MEDIA_LAYOUT_ZH.md)**EventLens provides **event-based video supervision** for boundaries, progression, and relations, alongside temporal grounding and video question answering. This release brings together frozen **no-CoT training views**, original **L1/L2/L3 hierarchy annotations**, and the **shared JPEG frames** used by those training views.| Training examples¹ | Monitor examples | Original annotation files | Shared frames || ---: | ---: | ---: | ---: || **37,428** | **1,950** | **11,061** | **2,921,513** |¹ Counts refer to the default `paper_mt_opd` view. Other configurations reuse examples and media; their counts are **not additive**.## Video domains<div align="center"><img src="assets/data-domains.png" alt="Source-video domain distribution from the EventLens paper appendix: food and culinary, lifestyle and daily activities, engineering and mechanics, sports and outdoors, culture and media, and general domain." width="620"></div>*Source-video domain distribution reproduced from the paper appendix. The figure describes videos used to construct the recovery tasks.*## Task families| Task | What the model learns | Training examples | Config || --- | --- | ---: | --- || **Boundary** | Locate event boundaries at different hierarchy levels | 10,000 | `seg` || **Progression** | Recognize the temporal progression of actions | 10,000 | `prog` || **Relation** | Recover event order and relationships between clips | 10,000 | `relation` || Temporal grounding | Locate a text-described moment in a video | 4,791 | `tg` || Video QA | Answer multiple-choice questions about video content | 2,637 | `mcq` |### A glimpse of the dataThese are three actual records from the frozen release. Answers retain their original format.| Family | Source video ID | Model input | Ground truth || --- | --- | --- | --- || Boundary | `ZccajuCybns` | One input with 61 frames | Six temporal intervals, wrapped in `<events>` tags || Progression | `UAR9gmFr_m8` | Two inputs with 4 frames each | `B` || Relation | `2rkEYETtXH8` | Three inputs with 2 frames each | `213` |## Quick start```pythonfrom datasets import load_datasetREPO = "Lostgreen/EventLens-Train"REVISION = "main" # Use a commit SHA to pin an experiment.train = load_dataset(REPO, "paper_mt_opd", split="train", revision=REVISION)monitor = load_dataset(REPO, "paper_mt_opd", split="monitor_val", revision=REVISION)annotations = load_dataset(REPO, "annotations_hier_v1", split="annotations", revision=REVISION)```This loads records and media references. To train with the JPEGs, download and unpack the shared frame shards described below.## Training viewsChoose `paper_mt_opd` for the full mix, a specialist view for teacher training, or a task config for an individual family.| Config | Contents | Train | Monitor || --- | --- | ---: | ---: || **`paper_mt_opd`** | Grounding + QA + Boundary + Progression + Relation | **37,428** | **1,950** || `paper_seg_teacher` | Grounding + QA + Boundary | 17,428 | 1,350 || `paper_prog_teacher` | Grounding + QA + Progression | 17,428 | 1,500 || `paper_relation_teacher` | Grounding + QA + Relation | 17,428 | 1,500 || `tg` | Temporal grounding | 4,791 | 600 || `mcq` | Video QA | 2,637 | 600 || `seg` | Boundary | 10,000 | 150 || `prog` | Progression | 10,000 | 300 || `relation` | Relation | 10,000 | 300 |> **Split meaning:** `monitor_val` preserves the historical training monitor and overlaps with training. It is not an independent validation or test split. The repository stores it under `val/`.## Annotations & mediaThe repository separates **training records**, **original annotations**, and **shared frames**. Train, monitor, and specialist views all reference the same media files.```textEventLens-Train/├── train/<config>/ Parquet + training.jsonl.gz├── val/<config>/ Parquet + training.jsonl.gz├── annotations/│ ├── hier_v1/ Parquet + original_json.tar.gz│ └── hier_legacy/ Parquet + original_json.tar.gz├── media/shards/ 37 shared frame TARs├── metadata/ Video links, frame indexes, hashes & audits└── tools/ Training converter + schema```Unpacking `media/shards/*.tar` at the repository root creates `media/frames/`.### Original hierarchy annotations| Config | Split | JSON files | Source composition || --- | --- | ---: | --- || `annotations_hier_v1` | `annotations` | 9,738 | ET-Instruct || `annotations_hier_legacy` | `annotations` | 1,323 | 792 ET-Instruct + 531 TimeLens |The collections preserve historical annotation versions. Labels, time intervals, and descriptions match the original JSONs; machine-specific `video_path`, `source_video_path`, and `frame_dir` values are replaced with portable provenance references. Parquet stores the original hierarchy in `payload_json`; the archives retain the original JSON filenames.**Join at the video level:** use `source_dataset + source_video_key` from `metadata/video_links.jsonl`. Each of the **11,061 annotation IDs** has one unambiguous source-video owner. Four readable clip IDs refer to multiple source paths, so full source keys are required to disambiguate them.| Annotation source | Unique annotated videos | Have training frames | Outside training media || --- | ---: | ---: | ---: || ET-Instruct | 10,035 | 9,108 | 927 || TimeLens | 531 | 1 | 530 |All **30,750 hierarchy-derived train/monitor examples** link to original hierarchy annotations. TG/QA records retain their upstream supervision and source-video provenance; they do not all have EventLens hierarchy labels. Original annotations also include videos not used by the training views.### Shared frame mediaThe **2,921,513 referenced JPEGs** are packaged into **37 TAR shards**, with **71.07 GiB of JPEG payload** before archive overhead. Frame indexes record the source-video key, TAR member, byte size, and SHA256; the shard manifest records each TAR's SHA256.```pythonfrom huggingface_hub import snapshot_downloadsnapshot_download(REPO, repo_type="dataset", revision=REVISION, local_dir="EventLens-Train")``````bashDATASET_ROOT=/path/to/EventLens-Trainfor shard in "$DATASET_ROOT"/media/shards/*.tar; dotar -xf "$shard" -C "$DATASET_ROOT"done```Training inputs preserve frozen frame sampling, multiple-clip boundaries, and frame order, including reordered action blocks. The bundled media are sampled training frames; native video binaries and annotation-process frame folders are referenced through provenance and are not bundled. Optional source/presentation timestamps remain `null`, and cache frame indices are not native-video frame numbers.## Use with the training codeEach training view includes a portable runtime JSONL alongside its typed Parquet:```bashgzip -dc "$DATASET_ROOT/train/paper_mt_opd/training.jsonl.gz" > train.jsonlgzip -dc "$DATASET_ROOT/val/paper_mt_opd/training.jsonl.gz" > val.jsonl```Set EasyR1's **`data.image_dir` to `DATASET_ROOT`** so relative nested frame lists resolve to the extracted media. Alternatively, convert a Hub split with the included script:```bashpython "$DATASET_ROOT/tools/convert_to_training_jsonl.py" \--input Lostgreen/EventLens-Train --config paper_mt_opd --split train \--prompt-mode no_cot --media-root "$DATASET_ROOT" --check-media \--output train.jsonl```Pin `--revision` to the same commit used for the media download when reproducing an experiment. The conversion preserves `prompt`, `messages`, `answer`, `problem_type`, `data_type`, video grouping, and frame order.### Fields at a glance| Field | Meaning || --- | --- || `sample_id` / `row_id` | Stable content identity / occurrence within a frozen view || `task_family` / `problem_type` | Human-readable task family / exact training and reward routing || `prompt` / `messages` / `answer` | Model input and original ground truth || `media[].frame_keys` | Ordered relative JPEG paths for each model input || `media[].source_video_id` | Readable upstream video identifier || `annotation_id` | Primary hierarchy annotation link where available || `training_metadata_json` | Portable original timing, construction, and reward metadata |See [the complete field and correspondence table](MEDIA_LAYOUT_ZH.md) and [the typed schema](metadata/schema.json) for details. `sources/` and `provenance/` are source references rather than downloadable payload directories.## Verification & provenanceThe frozen default view was audited across all train/monitor references: every referenced JPEG exists, frame cache directories have consistent video provenance, and every hierarchy-derived row links to original annotations. All 11,061 published annotation JSONs were compared with their originals with zero semantic changes.A 512-record conversion preflight covered all 12 problem types, and all 9 training plus 2 annotation configs passed standard `load_dataset` checks. Detailed coverage and content checks are included in `metadata/media_coverage.json` and `metadata/annotation_content_verification.json`; media hashes are in `metadata/media_shards.json` and `metadata/media_index/`.This is a frozen release. Upstream source revisions were not recorded; those values remain unknown rather than being inferred.## Sources & license**Noncommercial use.** EventLens-derived hierarchy annotations and proxy labels use **[CC-BY-NC-SA-4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)**. Source-specific terms continue to apply to third-party records and media; see [LICENSES.md](LICENSES.md).| Upstream source | Link | Terms || --- | --- | --- || ET-Instruct-164K | [Dataset](https://huggingface.co/datasets/PolyU-ChenLab/ET-Instruct-164K) | CC-BY-NC-SA-4.0 || TimeLens-100K | [Dataset](https://huggingface.co/datasets/TencentARC/TimeLens-100K) | [Custom academic/noncommercial terms](licenses/TimeLens-LICENSE.txt), including the upstream EU restriction || TimeRFT / TimeR1 | [Project](https://github.com/xiaomi-research/time-r1) | Upstream and constituent dataset terms || LLaVA-Video-178K | [Dataset](https://huggingface.co/datasets/lmms-lab/LLaVA-Video-178K) | Upstream and constituent media terms |The code license is separate from the data and media terms.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647Tencent is pleased to support the community by making TimeLens available.
Copyright (C) 2025 Tencent. All rights reserved.
The open-source software and/or models and/or datasets included in this distribution may have been modified by Tencent (“Tencent Modifications”). All Tencent Modifications are Copyright (C) Tencent.
TimeLens is licensed under License Term of TimeLens, except for the third-party components listed below, which remain licensed under their respective original terms. TimeLens does not impose any additional restrictions beyond those specified in the original licenses of these third-party components. Users are required to comply with all applicable terms and conditions of the original licenses and to ensure that the use of these third-party components conforms to all relevant laws and regulations.
For the avoidance of doubt, TimeLens refers solely to training datasets, inference code, parameters, and weights made publicly available by Tencent in accordance with License Term of TimeLens.
Terms of License Term of TimeLens:
--------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
4. TimeLens IS NOT INTENDED FOR USE WITHIN THE EUROPEAN UNION. IN THE EVENT OF ANY CONFLICT, THIS CLAUSE SHALL PREVAIL.
5. You agree to use the TimeLens only for academic purposes, and refrain from using it for any commercial or production purposes under any circumstances.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Dependencies and Licenses:
This project, TimeLens, builds upon the following open-source models and/or software components, each of which remains licensed under its original license. Certain models or software may include modifications made by Tencent (“Tencent Modifications”), which are Copyright (C) Tencent. Please refer to the NOTICE file for more details.123456789101112131415{ "status": "pass", "files": 11061, "collections": { "hier_v1": 9738, "hier_legacy": 1323 }, "changed_path_fields": { "video_path": 11061, "source_video_path": 11061, "frame_dir": 11061 }, "semantic_failure_count": 0, "failures": []}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ "status": "pass", "row_counts": { "train": { "rows": 37428, "media_items": 66827, "frame_references": 3643914, "hier_rows": 30000, "hier_rows_with_annotation": 30000, "base_rows": 7428, "base_rows_without_hier_annotation": 7426, "base_rows_with_hier_annotation": 2 }, "monitor_val": { "rows": 1950, "media_items": 2447, "frame_references": 177552, "base_rows": 1200, "base_rows_without_hier_annotation": 1200, "hier_rows": 750, "hier_rows_with_annotation": 750 } }, "annotation_collections": { "hier_v1": { "et_instruct": 9738 }, "hier_legacy": { "timelens": 531, "et_instruct": 792 } }, "annotation_coverage": { "et_instruct": { "annotation_files": 10530, "annotated_videos": 10035, "annotated_videos_in_training_media": 9108, "annotated_videos_not_in_training_media": 927 }, "timelens": { "annotation_files": 531, "annotated_videos": 531, "annotated_videos_in_training_media": 1, "annotated_videos_not_in_training_media": 530 } }, "training_videos_by_source": { "et_instruct": 9108, "timerft": 2115, "timelens": 2106, "llava_video": 3237 }, "unique_training_frames": 2921513, "training_media_bytes": 76307127175, "failures": {}}1{"shard": "media/shards/frames-00000-of-00037.tar", "frames": 118185, "bytes": 2117130240, "sha256": "69c045ab818309bdde941ed3dfb7a1dc498d380de5f454c3b5b489df7dfa108f"}1{"shard": "media/shards/frames-00001-of-00037.tar", "frames": 118896, "bytes": 2117007360, "sha256": "da123e118b60f4c1b2b668ba1e67189bfd850cb59f3426ad8662df1e68b85ac8"}1{"shard": "media/shards/frames-00002-of-00037.tar", "frames": 116306, "bytes": 2117611520, "sha256": "8c9c0fc698dd12222abab8bc2a2e032de442a23d44bbf06cd94cbc967306a7fb"}1{"shard": "media/shards/frames-00003-of-00037.tar", "frames": 115786, "bytes": 2117806080, "sha256": "e60bc2e5e626b8e43bfbd975b4ccbe25ac177a7a5ad21d707bc5d1cb830586fa"}1{"shard": "media/shards/frames-00004-of-00037.tar", "frames": 118141, "bytes": 2117201920, "sha256": "ed2f43d74d68acb126d17a3799b70bd759f06dcac75cb08708c161eb7f1f062e"}1{"shard": "media/shards/frames-00005-of-00037.tar", "frames": 119865, "bytes": 2116720640, "sha256": "91fa488af39f9c5768d8c45386f96aff3a93f409f059708b419bde5243965441"}1{"shard": "media/shards/frames-00006-of-00037.tar", "frames": 118884, "bytes": 2117017600, "sha256": "58e30330a24f6c3471b225816f2bf83420ef603f34bb34e5baa763226f6c5ffd"}1{"shard": "media/shards/frames-00007-of-00037.tar", "frames": 119743, "bytes": 2116761600, "sha256": "5e7feb5adbcf6247121327bdda0725a712aef26eea2407d111659ab9f338bd29"}1{"shard": "media/shards/frames-00008-of-00037.tar", "frames": 120805, "bytes": 2116474880, "sha256": "41121b49a1cea0c59fd2d98a7734b9917692ce872551361c9dc8d5da744fada1"}1{"shard": "media/shards/frames-00009-of-00037.tar", "frames": 83231, "bytes": 2126120960, "sha256": "ee56b6a0249e7045c91885ff85a0572bab359e9f8d8e57bb590e4ae4278c6821"}1{"shard": "media/shards/frames-00010-of-00037.tar", "frames": 37954, "bytes": 2137600000, "sha256": "63ab87649fb337353df71e6dacc2f0d22164f621b15dca1181a406612e25a10a"}1{"shard": "media/shards/frames-00011-of-00037.tar", "frames": 22735, "bytes": 2141480960, "sha256": "37306f206af80c315a9ae8c94c798b5ae3fc72424c1137e2853094e5b29e65f0"}1{"shard": "media/shards/frames-00012-of-00037.tar", "frames": 24589, "bytes": 2141214720, "sha256": "62e460dd07e134b709c933ceb04232cbabf827bb990bb1cb31ec025f099f3ead"}1{"shard": "media/shards/frames-00013-of-00037.tar", "frames": 26311, "bytes": 2140712960, "sha256": "fff2f9beb77fda40ea0d174b4a4e24f4bf606d7e57482c07f69a5824b9428941"}1{"shard": "media/shards/frames-00014-of-00037.tar", "frames": 26777, "bytes": 2140559360, "sha256": "7bbb059629e66c7376016b1f895871b3fb2ec9305cf55ccdce77140307d9a739"}1{"shard": "media/shards/frames-00015-of-00037.tar", "frames": 26455, "bytes": 2140559360, "sha256": "49425868e86b05ae42b806b5a903ba13c2ddaf7d91ca3218d74fca6bbc5b3252"}1{"shard": "media/shards/frames-00016-of-00037.tar", "frames": 27134, "bytes": 2140354560, "sha256": "26f233a4c7d90ae5a3d1a9e4698d1c1b63e14e153c2c6adef4a7ebadfd446698"}1{"shard": "media/shards/frames-00017-of-00037.tar", "frames": 27171, "bytes": 2140405760, "sha256": "2265dd2e9f613b8fdd4b2f232cebd5276d3e349566ccd384883768ccdf317d8a"}1{"shard": "media/shards/frames-00018-of-00037.tar", "frames": 25386, "bytes": 2140856320, "sha256": "47ddc835828f5d7383fb7881e520b8a5ab6b91050380f4bd19f10bf40b89e5ea"}1{"shard": "media/shards/frames-00019-of-00037.tar", "frames": 78913, "bytes": 2127308800, "sha256": "4342056f6ee09419360fcb411151f68c64bf2a648b9f2553464888b832f26fea"}1{"shard": "media/shards/frames-00020-of-00037.tar", "frames": 117055, "bytes": 2117488640, "sha256": "6ce0f781c8ae8012c8f56a3df1aca92bb434299d625d4bef1659552ef0fdb729"}1{"shard": "media/shards/frames-00021-of-00037.tar", "frames": 119842, "bytes": 2116741120, "sha256": "54a0b982cbe5036bb334f9b1b367a3db8e0f47b113565a6f128672b33c87c5ab"}1{"shard": "media/shards/frames-00022-of-00037.tar", "frames": 117920, "bytes": 2117355520, "sha256": "aa11cb6b46852db947b1d9777e48d40e9e2aa3374c6245ab0ada85887208b785"}1{"shard": "media/shards/frames-00023-of-00037.tar", "frames": 118993, "bytes": 2116956160, "sha256": "35a860a23fc518307e14255fda0536bdc20237d8db0c544a86eec6975979e229"}1{"shard": "media/shards/frames-00024-of-00037.tar", "frames": 117902, "bytes": 2117222400, "sha256": "cae6ae7efcad75f6fa600094fb5bd64a35fdd46c9a62258fad7bb4d95c6a41f7"}1{"shard": "media/shards/frames-00025-of-00037.tar", "frames": 118593, "bytes": 2117109760, "sha256": "40cc9c8a91d2e770c6b8fdff26b70660199732abfe926812e26d01f0fc73c2b9"}1{"shard": "media/shards/frames-00026-of-00037.tar", "frames": 119795, "bytes": 2116679680, "sha256": "f0772d4cfac7d19a0c54a01ea8b476419785ff84e705e6b0d57f2015e9c44abb"}1{"shard": "media/shards/frames-00027-of-00037.tar", "frames": 116642, "bytes": 2117498880, "sha256": "73c9b5ce1576181ef82b59f8b4c67c36316f62bc24b6f879b4bf3640be0af0ad"}1{"shard": "media/shards/frames-00028-of-00037.tar", "frames": 110993, "bytes": 2119075840, "sha256": "13b3e34d4526de373b7e0a304cb88e0d6ba6e102ebb431392adf85e22ef386cd"}1{"shard": "media/shards/frames-00029-of-00037.tar", "frames": 47679, "bytes": 2136596480, "sha256": "f944d3b17871ad01db4e9897d7f19bdf1bc3fd34571e3a4715e4ac69fb5fced8"}1{"shard": "media/shards/frames-00030-of-00037.tar", "frames": 46003, "bytes": 2137088000, "sha256": "e5d8dbbdebde4d218f3236779caeacf31d2ef070045040bc4ff54453fa844303"}1{"shard": "media/shards/frames-00031-of-00037.tar", "frames": 48784, "bytes": 2137784320, "sha256": "a0a975b5f7d43e2b26a701ea3da266c1e1a6d4225019b5f3f840352fce345f76"}1{"shard": "media/shards/frames-00032-of-00037.tar", "frames": 49603, "bytes": 2136729600, "sha256": "625b0fc4e506a58a58cc0aee066bacc80d3aca26abb0cd8a093d0720576e5da0"}1{"shard": "media/shards/frames-00033-of-00037.tar", "frames": 48539, "bytes": 2136913920, "sha256": "cdf8b0ae368d34e53b536cc7e9413cacdd1c310c0eb77e04d876fbd3d466bd24"}1{"shard": "media/shards/frames-00034-of-00037.tar", "frames": 47199, "bytes": 2138736640, "sha256": "e0f0b38e234279c4af8c7bb300f7a0b03e647b7ddb9bbea56f4e980ec313937d"}1{"shard": "media/shards/frames-00035-of-00037.tar", "frames": 47511, "bytes": 2138193920, "sha256": "94717ee51c77fd0b23281557f7b738246f93c70f28fff4be9cf80d8fec229797"}1{"shard": "media/shards/frames-00036-of-00037.tar", "frames": 55193, "bytes": 1979678720, "sha256": "45b8b0deeda8a641450a2d59c1db38e3df6f36efb97d12b6f8ee81f1345f463e"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228{ "status": "complete", "frames": 2921513, "shards": [ { "shard": "media/shards/frames-00000-of-00037.tar", "frames": 118185, "bytes": 2117130240, "sha256": "69c045ab818309bdde941ed3dfb7a1dc498d380de5f454c3b5b489df7dfa108f" }, { "shard": "media/shards/frames-00001-of-00037.tar", "frames": 118896, "bytes": 2117007360, "sha256": "da123e118b60f4c1b2b668ba1e67189bfd850cb59f3426ad8662df1e68b85ac8" }, { "shard": "media/shards/frames-00002-of-00037.tar", "frames": 116306, "bytes": 2117611520, "sha256": "8c9c0fc698dd12222abab8bc2a2e032de442a23d44bbf06cd94cbc967306a7fb" }, { "shard": "media/shards/frames-00003-of-00037.tar", "frames": 115786, "bytes": 2117806080, "sha256": "e60bc2e5e626b8e43bfbd975b4ccbe25ac177a7a5ad21d707bc5d1cb830586fa" }, { "shard": "media/shards/frames-00004-of-00037.tar", "frames": 118141, "bytes": 2117201920, "sha256": "ed2f43d74d68acb126d17a3799b70bd759f06dcac75cb08708c161eb7f1f062e" }, { "shard": "media/shards/frames-00005-of-00037.tar", "frames": 119865, "bytes": 2116720640, "sha256": "91fa488af39f9c5768d8c45386f96aff3a93f409f059708b419bde5243965441" }, { "shard": "media/shards/frames-00006-of-00037.tar", "frames": 118884, "bytes": 2117017600, "sha256": "58e30330a24f6c3471b225816f2bf83420ef603f34bb34e5baa763226f6c5ffd" }, { "shard": "media/shards/frames-00007-of-00037.tar", "frames": 119743, "bytes": 2116761600, "sha256": "5e7feb5adbcf6247121327bdda0725a712aef26eea2407d111659ab9f338bd29" }, { "shard": "media/shards/frames-00008-of-00037.tar", "frames": 120805, "bytes": 2116474880, "sha256": "41121b49a1cea0c59fd2d98a7734b9917692ce872551361c9dc8d5da744fada1" }, { "shard": "media/shards/frames-00009-of-00037.tar", "frames": 83231, "bytes": 2126120960, "sha256": "ee56b6a0249e7045c91885ff85a0572bab359e9f8d8e57bb590e4ae4278c6821" }, { "shard": "media/shards/frames-00010-of-00037.tar", "frames": 37954, "bytes": 2137600000, "sha256": "63ab87649fb337353df71e6dacc2f0d22164f621b15dca1181a406612e25a10a" }, { "shard": "media/shards/frames-00011-of-00037.tar", "frames": 22735, "bytes": 2141480960, "sha256": "37306f206af80c315a9ae8c94c798b5ae3fc72424c1137e2853094e5b29e65f0" }, { "shard": "media/shards/frames-00012-of-00037.tar", "frames": 24589, "bytes": 2141214720, "sha256": "62e460dd07e134b709c933ceb04232cbabf827bb990bb1cb31ec025f099f3ead" }, { "shard": "media/shards/frames-00013-of-00037.tar", "frames": 26311, "bytes": 2140712960, "sha256": "fff2f9beb77fda40ea0d174b4a4e24f4bf606d7e57482c07f69a5824b9428941" }, { "shard": "media/shards/frames-00014-of-00037.tar", "frames": 26777, "bytes": 2140559360, "sha256": "7bbb059629e66c7376016b1f895871b3fb2ec9305cf55ccdce77140307d9a739" }, { "shard": "media/shards/frames-00015-of-00037.tar", "frames": 26455, "bytes": 2140559360, "sha256": "49425868e86b05ae42b806b5a903ba13c2ddaf7d91ca3218d74fca6bbc5b3252" }, { "shard": "media/shards/frames-00016-of-00037.tar", "frames": 27134, "bytes": 2140354560, "sha256": "26f233a4c7d90ae5a3d1a9e4698d1c1b63e14e153c2c6adef4a7ebadfd446698" }, { "shard": "media/shards/frames-00017-of-00037.tar", "frames": 27171, "bytes": 2140405760, "sha256": "2265dd2e9f613b8fdd4b2f232cebd5276d3e349566ccd384883768ccdf317d8a" }, { "shard": "media/shards/frames-00018-of-00037.tar", "frames": 25386, "bytes": 2140856320, "sha256": "47ddc835828f5d7383fb7881e520b8a5ab6b91050380f4bd19f10bf40b89e5ea" }, { "shard": "media/shards/frames-00019-of-00037.tar", "frames": 78913, "bytes": 2127308800, "sha256": "4342056f6ee09419360fcb411151f68c64bf2a648b9f2553464888b832f26fea" }, { "shard": "media/shards/frames-00020-of-00037.tar", "frames": 117055, "bytes": 2117488640, "sha256": "6ce0f781c8ae8012c8f56a3df1aca92bb434299d625d4bef1659552ef0fdb729" }, { "shard": "media/shards/frames-00021-of-00037.tar", "frames": 119842, "bytes": 2116741120, "sha256": "54a0b982cbe5036bb334f9b1b367a3db8e0f47b113565a6f128672b33c87c5ab" }, { "shard": "media/shards/frames-00022-of-00037.tar", "frames": 117920, "bytes": 2117355520, "sha256": "aa11cb6b46852db947b1d9777e48d40e9e2aa3374c6245ab0ada85887208b785" }, { "shard": "media/shards/frames-00023-of-00037.tar", "frames": 118993, "bytes": 2116956160, "sha256": "35a860a23fc518307e14255fda0536bdc20237d8db0c544a86eec6975979e229" }, { "shard": "media/shards/frames-00024-of-00037.tar", "frames": 117902, "bytes": 2117222400, "sha256": "cae6ae7efcad75f6fa600094fb5bd64a35fdd46c9a62258fad7bb4d95c6a41f7" }, { "shard": "media/shards/frames-00025-of-00037.tar", "frames": 118593, "bytes": 2117109760, "sha256": "40cc9c8a91d2e770c6b8fdff26b70660199732abfe926812e26d01f0fc73c2b9" }, { "shard": "media/shards/frames-00026-of-00037.tar", "frames": 119795, "bytes": 2116679680, "sha256": "f0772d4cfac7d19a0c54a01ea8b476419785ff84e705e6b0d57f2015e9c44abb" }, { "shard": "media/shards/frames-00027-of-00037.tar", "frames": 116642, "bytes": 2117498880, "sha256": "73c9b5ce1576181ef82b59f8b4c67c36316f62bc24b6f879b4bf3640be0af0ad" }, { "shard": "media/shards/frames-00028-of-00037.tar", "frames": 110993, "bytes": 2119075840, "sha256": "13b3e34d4526de373b7e0a304cb88e0d6ba6e102ebb431392adf85e22ef386cd" }, { "shard": "media/shards/frames-00029-of-00037.tar", "frames": 47679, "bytes": 2136596480, "sha256": "f944d3b17871ad01db4e9897d7f19bdf1bc3fd34571e3a4715e4ac69fb5fced8" }, { "shard": "media/shards/frames-00030-of-00037.tar", "frames": 46003, "bytes": 2137088000, "sha256": "e5d8dbbdebde4d218f3236779caeacf31d2ef070045040bc4ff54453fa844303" }, { "shard": "media/shards/frames-00031-of-00037.tar", "frames": 48784, "bytes": 2137784320, "sha256": "a0a975b5f7d43e2b26a701ea3da266c1e1a6d4225019b5f3f840352fce345f76" }, { "shard": "media/shards/frames-00032-of-00037.tar", "frames": 49603, "bytes": 2136729600, "sha256": "625b0fc4e506a58a58cc0aee066bacc80d3aca26abb0cd8a093d0720576e5da0" }, { "shard": "media/shards/frames-00033-of-00037.tar", "frames": 48539, "bytes": 2136913920, "sha256": "cdf8b0ae368d34e53b536cc7e9413cacdd1c310c0eb77e04d876fbd3d466bd24" }, { "shard": "media/shards/frames-00034-of-00037.tar", "frames": 47199, "bytes": 2138736640, "sha256": "e0f0b38e234279c4af8c7bb300f7a0b03e647b7ddb9bbea56f4e980ec313937d" }, { "shard": "media/shards/frames-00035-of-00037.tar", "frames": 47511, "bytes": 2138193920, "sha256": "94717ee51c77fd0b23281557f7b738246f93c70f28fff4be9cf80d8fec229797" }, { "shard": "media/shards/frames-00036-of-00037.tar", "frames": 55193, "bytes": 1979678720, "sha256": "45b8b0deeda8a641450a2d59c1db38e3df6f36efb97d12b6f8ee81f1345f463e" } ]}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158{ "version": "vpmixed_20260516_full_comp", "configs": { "paper_mt_opd": { "train": { "rows": 37428, "tasks": { "progression": 10000, "tg": 4791, "boundary": 10000, "relation": 10000, "mcq": 2637 } }, "monitor_val": { "rows": 1950, "tasks": { "tg": 600, "mcq": 600, "progression": 300, "relation": 300, "boundary": 150 } } }, "paper_seg_teacher": { "train": { "rows": 17428, "tasks": { "tg": 4791, "boundary": 10000, "mcq": 2637 } }, "monitor_val": { "rows": 1350, "tasks": { "tg": 600, "mcq": 600, "boundary": 150 } } }, "paper_prog_teacher": { "train": { "rows": 17428, "tasks": { "tg": 4791, "progression": 10000, "mcq": 2637 } }, "monitor_val": { "rows": 1500, "tasks": { "progression": 300, "tg": 600, "mcq": 600 } } }, "paper_relation_teacher": { "train": { "rows": 17428, "tasks": { "tg": 4791, "relation": 10000, "mcq": 2637 } }, "monitor_val": { "rows": 1500, "tasks": { "relation": 300, "tg": 600, "mcq": 600 } } }, "tg": { "train": { "rows": 4791, "tasks": { "tg": 4791 } }, "monitor_val": { "rows": 600, "tasks": { "tg": 600 } } }, "mcq": { "train": { "rows": 2637, "tasks": { "mcq": 2637 } }, "monitor_val": { "rows": 600, "tasks": { "mcq": 600 } } }, "seg": { "train": { "rows": 10000, "tasks": { "boundary": 10000 } }, "monitor_val": { "rows": 150, "tasks": { "boundary": 150 } } }, "prog": { "train": { "rows": 10000, "tasks": { "progression": 10000 } }, "monitor_val": { "rows": 300, "tasks": { "progression": 300 } } }, "relation": { "train": { "rows": 10000, "tasks": { "relation": 10000 } }, "monitor_val": { "rows": 300, "tasks": { "relation": 300 } } } }, "annotations": { "hier_v1": 9738, "hier_legacy": 1323 }, "media_packaged": true, "media_frames": 2921513, "media_shards": 37}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198{ "row_id": { "dtype": "string", "_type": "Value" }, "sample_id": { "dtype": "string", "_type": "Value" }, "source_sample_id": { "dtype": "string", "_type": "Value" }, "dataset_version": { "dtype": "string", "_type": "Value" }, "source_dataset": { "dtype": "string", "_type": "Value" }, "source_video_ids": [ { "dtype": "string", "_type": "Value" } ], "task_family": { "dtype": "string", "_type": "Value" }, "problem_type": { "dtype": "string", "_type": "Value" }, "data_type": { "dtype": "string", "_type": "Value" }, "level": { "dtype": "int8", "_type": "Value" }, "prompt_mode": { "dtype": "string", "_type": "Value" }, "reasoning_tag": { "dtype": "string", "_type": "Value" }, "parent_sample_id": { "dtype": "string", "_type": "Value" }, "parent_dataset_revision": { "dtype": "string", "_type": "Value" }, "prompt": { "dtype": "string", "_type": "Value" }, "messages": [ { "role": { "dtype": "string", "_type": "Value" }, "content": { "dtype": "string", "_type": "Value" } } ], "answer": { "dtype": "string", "_type": "Value" }, "answer_format": { "dtype": "string", "_type": "Value" }, "answer_time_coordinate": { "dtype": "string", "_type": "Value" }, "media": [ { "media_id": { "dtype": "string", "_type": "Value" }, "source_dataset": { "dtype": "string", "_type": "Value" }, "source_video_id": { "dtype": "string", "_type": "Value" }, "kind": { "dtype": "string", "_type": "Value" }, "video_path": { "dtype": "string", "_type": "Value" }, "frame_keys": [ { "dtype": "string", "_type": "Value" } ], "source_frame_indices": [ { "dtype": "int64", "_type": "Value" } ], "source_timestamps_sec": [ { "dtype": "float64", "_type": "Value" } ], "presentation_timestamps_sec": [ { "dtype": "float64", "_type": "Value" } ], "clip_start_sec": { "dtype": "float64", "_type": "Value" }, "clip_end_sec": { "dtype": "float64", "_type": "Value" }, "duration_sec": { "dtype": "float64", "_type": "Value" }, "source_fps": { "dtype": "float64", "_type": "Value" }, "effective_fps": { "dtype": "float64", "_type": "Value" }, "ordering": { "dtype": "string", "_type": "Value" } } ], "split_role": { "dtype": "string", "_type": "Value" }, "mix_id": { "dtype": "string", "_type": "Value" }, "mix_row_index": { "dtype": "int64", "_type": "Value" }, "annotation_id": { "dtype": "string", "_type": "Value" }, "build_id": { "dtype": "string", "_type": "Value" }, "license_ids": [ { "dtype": "string", "_type": "Value" } ], "prompt_sha256": { "dtype": "string", "_type": "Value" }, "answer_sha256": { "dtype": "string", "_type": "Value" }, "training_metadata_json": { "dtype": "string", "_type": "Value" }}12345678910111213141516171819{ "et_instruct": { "url": "https://huggingface.co/datasets/PolyU-ChenLab/ET-Instruct-164K", "license": "CC-BY-NC-SA-4.0" }, "timelens": { "url": "https://huggingface.co/datasets/TencentARC/TimeLens-100K", "license": "TimeLens custom terms", "license_url": "https://github.com/TencentARC/TimeLens/blob/main/LICENSE" }, "timerft": { "url": "https://github.com/xiaomi-research/time-r1", "license": "Upstream TimeR1 and constituent dataset terms" }, "llava_video": { "url": "https://huggingface.co/datasets/lmms-lab/LLaVA-Video-178K", "license": "Upstream LLaVA-Video and constituent dataset terms" }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367"""Convert EventLens Hugging Face rows into the JSONL contract used by EasyR1.
The converter keeps the published row as the source of truth and only rebuildsthe runtime fields expected by ``verl.utils.dataset.RLHFDataset``:``videos``, ``metadata``, ``messages``, and ``data_type``."""
from __future__ import annotations
import argparseimport hashlibimport jsonimport osimport reimport tempfilefrom collections import Counterfrom pathlib import Pathfrom typing import Any, Iterable
from datasets import load_dataset
SCRIPT_VERSION = "eventlens_hf_to_training_jsonl_v1"DEFAULT_MAX_FRAMES = 256_COT_MARKER = re.compile(r"<(?:think|thought)>|think\s+step\s+by\s+step|first,?\s+think", re.IGNORECASE)
def _as_float(value: Any) -> float | None: if value is None or value == "": return None try: parsed = float(value) except (TypeError, ValueError): return None return parsed if parsed > 0 else None
def _decode_metadata(value: Any) -> dict[str, Any]: if value in (None, ""): return {} if isinstance(value, str): try: value = json.loads(value) except json.JSONDecodeError as exc: raise ValueError(f"training_metadata_json is not valid JSON: {exc}") from exc if not isinstance(value, dict): raise ValueError("training_metadata_json must decode to an object") return value
def _rewrite_path(value: str, media_root: Path | None) -> tuple[str, bool]: if not isinstance(value, str) or not value: raise ValueError("media references must be non-empty strings") path = Path(value).expanduser() rewritten = False if path.is_absolute(): if media_root is None: raise ValueError( f"absolute media reference {value!r}; pass --media-root to rewrite it into a relative path" ) absolute = path.resolve(strict=False) try: value = absolute.relative_to(media_root).as_posix() except ValueError as exc: raise ValueError( f"media reference {value!r} is outside --media-root {str(media_root)!r}" ) from exc rewritten = True else: parts = Path(value).parts if ".." in parts: raise ValueError(f"media reference must not escape its root: {value!r}") value = Path(value).as_posix() return value, rewritten
def _rewrite_metadata_paths(value: Any, media_root: Path | None, where: str = "metadata") -> tuple[Any, int]: """Rewrite absolute paths embedded in legacy metadata, without dropping keys.""" if isinstance(value, dict): rewritten = 0 result = {} for key, child in value.items(): result[key], count = _rewrite_metadata_paths(child, media_root, f"{where}.{key}") rewritten += count return result, rewritten if isinstance(value, list): result = [] rewritten = 0 for index, child in enumerate(value): item, count = _rewrite_metadata_paths(child, media_root, f"{where}[{index}]") result.append(item) rewritten += count return result, rewritten if isinstance(value, str) and value.startswith("/"): if media_root is None: raise ValueError(f"absolute path in {where}; pass --media-root to rewrite it") path, changed = _rewrite_path(value, media_root) return path, int(changed) return value, 0
def _messages(row: dict[str, Any], prompt: str) -> tuple[list[dict[str, str]], bool]: messages = row.get("messages") if messages in (None, []): return [{"role": "user", "content": prompt}], True if not isinstance(messages, list) or any(not isinstance(item, dict) for item in messages): raise ValueError("messages must be a list of role/content objects") normalized = [] for item in messages: role, content = item.get("role"), item.get("content") if not isinstance(role, str) or not isinstance(content, str): raise ValueError("every message needs string role and content") normalized.append({"role": role, "content": content}) users = [item for item in normalized if item["role"] == "user"] if not users or users[-1]["content"] != prompt: raise ValueError("messages last user content must equal prompt") return normalized, False
def _media(row: dict[str, Any], media_root: Path | None) -> tuple[list[Any], dict[str, Any], int, int]: media = row.get("media") if not isinstance(media, list) or not media: raise ValueError("media must be a non-empty list") videos: list[Any] = [] sampling_videos: list[dict[str, Any]] = [] media_provenance: list[dict[str, Any]] = [] rewritten_paths = 0 reference_count = 0 for index, item in enumerate(media): if not isinstance(item, dict): raise ValueError(f"media[{index}] must be an object") frame_keys = item.get("frame_keys") or [] video_path = item.get("video_path") if frame_keys and video_path: raise ValueError(f"media[{index}] has both frame_keys and video_path") if frame_keys: if not isinstance(frame_keys, list): raise ValueError(f"media[{index}].frame_keys must be a list") refs = [] for frame in frame_keys: rewritten, changed = _rewrite_path(frame, media_root) refs.append(rewritten) rewritten_paths += int(changed) videos.append(refs) reference_count += len(refs) sampling: dict[str, Any] = {"output_frames": len(refs)} for source_key, target_key in (("duration_sec", "duration_sec"), ("source_fps", "base_fps"), ("effective_fps", "target_fps")): numeric = _as_float(item.get(source_key)) if numeric is not None: sampling[target_key] = numeric sampling_videos.append(sampling) provenance = dict(item) provenance["frame_keys"] = refs provenance["video_path"] = None media_provenance.append(provenance) elif video_path: rewritten, changed = _rewrite_path(video_path, media_root) videos.append(rewritten) rewritten_paths += int(changed) reference_count += 1 sampling_videos.append({}) provenance = dict(item) provenance["video_path"] = rewritten provenance["frame_keys"] = [] media_provenance.append(provenance) else: raise ValueError(f"media[{index}] needs frame_keys or video_path")
metadata_patch = {} if any(item for item in sampling_videos): metadata_patch["experiment_frame_sampling"] = { "policy": SCRIPT_VERSION, "videos": sampling_videos, } metadata_patch["eventlens_media"] = media_provenance durations = [_as_float(item.get("duration_sec")) for item in media] durations = [value for value in durations if value is not None] if len(media) == 1 and len(durations) == 1: metadata_patch["duration"] = durations[0] return videos, metadata_patch, rewritten_paths, reference_count
def convert_row( row: dict[str, Any], media_root: str | os.PathLike[str] | None = None, prompt_mode: str | None = None,) -> tuple[dict[str, Any], dict[str, int]]: """Convert one HF row and return ``(training_row, conversion_counters)``.""" if not isinstance(row, dict): raise ValueError("each dataset row must be an object") prompt, answer, problem_type = row.get("prompt"), row.get("answer"), row.get("problem_type") if not isinstance(prompt, str) or not prompt.strip(): raise ValueError("missing prompt") if prompt_mode not in (None, "no_cot", "cot"): raise ValueError("prompt_mode must be no_cot or cot") if prompt_mode is not None and bool(_COT_MARKER.search(prompt)) != (prompt_mode == "cot"): raise ValueError(f"prompt does not match {prompt_mode}") if not isinstance(answer, str): raise ValueError("answer must be a string") if not isinstance(problem_type, str) or not problem_type: raise ValueError("missing problem_type")
root = Path(media_root).expanduser().resolve() if media_root else None videos, media_metadata, rewritten_paths, reference_count = _media(row, root) metadata = _decode_metadata(row.get("training_metadata_json")) metadata, metadata_paths = _rewrite_metadata_paths(metadata, root) if "experiment_frame_sampling" not in metadata and "experiment_frame_sampling" in media_metadata: metadata["experiment_frame_sampling"] = media_metadata["experiment_frame_sampling"] if "duration" not in metadata and "duration" in media_metadata: metadata["duration"] = media_metadata["duration"] if "eventlens_media" not in metadata and "eventlens_media" in media_metadata: metadata["eventlens_media"] = media_metadata["eventlens_media"]
messages, synthesized = _messages(row, prompt) output = dict(row) for key in ("media", "training_metadata_json"): output.pop(key, None) data_type = str(row.get("data_type") or "video") if not data_type: raise ValueError("data_type must be non-empty") output.update({ "prompt": prompt, "answer": answer, "problem_type": problem_type, "messages": messages, "videos": videos, "metadata": metadata, "data_type": data_type, }) return output, { "messages_synthesized": int(synthesized), "media_paths_rewritten": rewritten_paths, "metadata_paths_rewritten": metadata_paths, "media_references": reference_count, }
def validate_training_row(row: dict[str, Any], max_frames: int = DEFAULT_MAX_FRAMES) -> None: """Validate the fields consumed by EasyR1 before writing a row.""" for key in ("prompt", "answer", "problem_type", "data_type", "metadata", "messages", "videos"): if key not in row: raise ValueError(f"converted row missing {key}") if not isinstance(row["metadata"], dict) or not isinstance(row["messages"], list): raise ValueError("metadata/messages have the wrong type") if not isinstance(row["videos"], list) or not row["videos"]: raise ValueError("videos must be a non-empty list") for video in row["videos"]: refs = video if isinstance(video, list) else [video] if not refs or any(not isinstance(ref, str) or not ref for ref in refs): raise ValueError("videos contains an invalid reference") if isinstance(video, list) and len(video) > max_frames: raise ValueError(f"a frame list exceeds max_frames={max_frames}") users = [message for message in row["messages"] if message.get("role") == "user"] if not users or users[-1].get("content") != row["prompt"]: raise ValueError("messages and prompt disagree")
def load_rows(input_spec: str, config: str | None, split: str, revision: str | None = None, cache_dir: str | None = None) -> Iterable[dict[str, Any]]: path = Path(input_spec).expanduser() kwargs: dict[str, Any] = {"split": split} if revision: kwargs["revision"] = revision if cache_dir: kwargs["cache_dir"] = cache_dir if path.is_file() and path.suffix == ".parquet": kwargs.pop("revision", None) kwargs["split"] = "train" return load_dataset("parquet", data_files=str(path), **kwargs) if path.is_dir() and not config: parquet_files = sorted(str(item) for item in path.rglob("*.parquet")) if not parquet_files: raise ValueError(f"no Parquet files found under {path}") kwargs.pop("revision", None) kwargs["split"] = "train" return load_dataset("parquet", data_files=parquet_files, **kwargs) return load_dataset(input_spec, config, **kwargs) if config else load_dataset(input_spec, **kwargs)
def convert_dataset( rows: Iterable[dict[str, Any]], output: Path, media_root: str | None, check_media: bool, max_frames: int, max_rows: int | None = None, prompt_mode: str | None = None,) -> dict[str, Any]: output = output.expanduser().resolve() if output.exists(): raise ValueError(f"output exists: {output}; choose a new path or remove it explicitly") if check_media and not media_root: raise ValueError("--check-media requires --media-root") root = Path(media_root).expanduser().resolve() if media_root else None if check_media and (root is None or not root.is_dir()): raise ValueError(f"media root is not a directory: {root}")
output.parent.mkdir(parents=True, exist_ok=True) counts = Counter() totals = Counter() rows_written = 0 with tempfile.NamedTemporaryFile("w", encoding="utf-8", dir=output.parent, prefix=f".{output.name}.", delete=False) as stream: temporary = Path(stream.name) try: for row in rows: if max_rows is not None and rows_written >= max_rows: break converted, summary = convert_row(dict(row), root, prompt_mode=prompt_mode) validate_training_row(converted, max_frames=max_frames) if check_media: for video in converted["videos"]: refs = video if isinstance(video, list) else [video] for ref in refs: if not (root / ref).is_file(): raise ValueError(f"missing media file: {root / ref}") stream.write(json.dumps(converted, ensure_ascii=False, separators=(",", ":")) + "\n") rows_written += 1 counts[converted["problem_type"]] += 1 totals.update(summary) except Exception: temporary.unlink(missing_ok=True) raise temporary.replace(output) if rows_written == 0: output.unlink(missing_ok=True) raise ValueError("input split is empty") digest = hashlib.sha256(output.read_bytes()).hexdigest() manifest = { "schema_version": 1, "converter": SCRIPT_VERSION, "rows": rows_written, "tasks": dict(sorted(counts.items())), "media_root": str(root) if root else None, "check_media": check_media, "max_frames": max_frames, "counters": dict(sorted(totals.items())), "output": str(output), "output_sha256": digest, } manifest_path = output.with_suffix(output.suffix + ".manifest.json") manifest_path.write_text(json.dumps(manifest, indent=2, ensure_ascii=False) + "\n", encoding="utf-8") return manifest
def main() -> int: parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("--input", required=True, help="HF dataset repo, local dataset-card directory, or Parquet file") parser.add_argument("--config", help="HF config name, for example paper_mt_opd") parser.add_argument("--split", default="train", help="Dataset split; a single Parquet file is treated as one split") parser.add_argument("--revision", help="Immutable Hub commit/revision") parser.add_argument("--cache-dir") parser.add_argument("--output", required=True, type=Path, help="Output training JSONL path") parser.add_argument("--media-root", help="Root used to rewrite absolute refs and metadata paths") parser.add_argument("--check-media", action="store_true", help="Verify every converted video/frame file exists") parser.add_argument("--max-frames", type=int, default=DEFAULT_MAX_FRAMES) parser.add_argument("--max-rows", type=int) parser.add_argument("--prompt-mode", choices=("no_cot", "cot"), help="Validate the source prompt mode") args = parser.parse_args() rows = load_rows(args.input, args.config, args.split, args.revision, args.cache_dir) manifest = convert_dataset( rows, args.output, args.media_root, args.check_media, args.max_frames, args.max_rows, args.prompt_mode ) print(json.dumps(manifest, ensure_ascii=False, indent=2)) return 0
if __name__ == "__main__": raise SystemExit(main())LICENSES.mdAdded+15
MEDIA_LAYOUT_ZH.mdAdded+46
README.md+269
assets/eventlens-cover.svgAdded
licenses/TimeLens-LICENSE.txtAdded+47
metadata/annotation_content_verification.jsonAdded+15
metadata/media_coverage.jsonAdded+56
metadata/media_index/frames-00000-of-00037.jsonAdded+1
metadata/media_index/frames-00001-of-00037.jsonAdded+1
metadata/media_index/frames-00002-of-00037.jsonAdded+1
metadata/media_index/frames-00003-of-00037.jsonAdded+1
metadata/media_index/frames-00004-of-00037.jsonAdded+1
metadata/media_index/frames-00005-of-00037.jsonAdded+1
metadata/media_index/frames-00006-of-00037.jsonAdded+1
metadata/media_index/frames-00007-of-00037.jsonAdded+1
metadata/media_index/frames-00008-of-00037.jsonAdded+1
metadata/media_index/frames-00009-of-00037.jsonAdded+1
metadata/media_index/frames-00010-of-00037.jsonAdded+1
metadata/media_index/frames-00011-of-00037.jsonAdded+1
metadata/media_index/frames-00012-of-00037.jsonAdded+1
metadata/media_index/frames-00013-of-00037.jsonAdded+1
metadata/media_index/frames-00014-of-00037.jsonAdded+1
metadata/media_index/frames-00015-of-00037.jsonAdded+1
metadata/media_index/frames-00016-of-00037.jsonAdded+1
metadata/media_index/frames-00017-of-00037.jsonAdded+1
metadata/media_index/frames-00018-of-00037.jsonAdded+1
metadata/media_index/frames-00019-of-00037.jsonAdded+1
metadata/media_index/frames-00020-of-00037.jsonAdded+1
metadata/media_index/frames-00021-of-00037.jsonAdded+1
metadata/media_index/frames-00022-of-00037.jsonAdded+1
metadata/media_index/frames-00023-of-00037.jsonAdded+1
metadata/media_index/frames-00024-of-00037.jsonAdded+1
metadata/media_index/frames-00025-of-00037.jsonAdded+1
metadata/media_index/frames-00026-of-00037.jsonAdded+1
metadata/media_index/frames-00027-of-00037.jsonAdded+1
metadata/media_index/frames-00028-of-00037.jsonAdded+1
metadata/media_index/frames-00029-of-00037.jsonAdded+1
metadata/media_index/frames-00030-of-00037.jsonAdded+1
metadata/media_index/frames-00031-of-00037.jsonAdded+1
metadata/media_index/frames-00032-of-00037.jsonAdded+1
metadata/media_index/frames-00033-of-00037.jsonAdded+1
metadata/media_index/frames-00034-of-00037.jsonAdded+1
metadata/media_index/frames-00035-of-00037.jsonAdded+1
metadata/media_index/frames-00036-of-00037.jsonAdded+1
metadata/media_shards.jsonAdded+228
metadata/release.jsonAdded+158
metadata/schema.jsonAdded+198
metadata/sources.jsonAdded+19
metadata/video_links.jsonlAdded
tools/convert_to_training_jsonl.pyAdded+367