Datasets:
Size:
10K - 100K
License:
Add files using upload-large-folder tool
Browse files- .DS_Store +0 -0
- README.md +112 -0
- covert_jsonl.py +41 -0
- metadata.jsonl +0 -0
- splice_banchmark.py +102 -0
- splice_segment_metadata.json +0 -0
- splice_video_segments/.DS_Store +0 -0
- splice_video_segments/02/09A6DD53ad4_part_2.mp4 +3 -0
- splice_video_segments/02/57ryD89Ez9c_part_1.mp4 +3 -0
- splice_video_segments/02/57ryD89Ez9c_part_3.mp4 +3 -0
- splice_video_segments/02/78UikTQkGgg_part_2.mp4 +3 -0
- splice_video_segments/02/8U0ucEcs8Po_part_2.mp4 +3 -0
- splice_video_segments/02/9MP2aoismY0_part_1.mp4 +3 -0
- splice_video_segments/02/9MP2aoismY0_part_3.mp4 +3 -0
- splice_video_segments/02/DhHzrMMiVKI_part_4.mp4 +3 -0
- splice_video_segments/02/DhHzrMMiVKI_part_6.mp4 +3 -0
- splice_video_segments/02/G3d98rj9xtM_part_2.mp4 +3 -0
- splice_video_segments/02/H2ieVJmq9ao_part_2.mp4 +3 -0
- splice_video_segments/02/HFMS3jS6rfI_part_1.mp4 +3 -0
- splice_video_segments/02/HdXMpSduf7s_part_4.mp4 +3 -0
- splice_video_segments/02/Izsa3XvFAVs_part_2.mp4 +3 -0
- splice_video_segments/02/KX-2N8s-jh8_part_1.mp4 +3 -0
- splice_video_segments/02/KX-2N8s-jh8_part_3.mp4 +3 -0
- splice_video_segments/02/LBO_OS556lI_part_1.mp4 +3 -0
- splice_video_segments/02/Ns2WxN6VBMo_part_2.mp4 +3 -0
- splice_video_segments/02/RA5PfVquIoE_part_2.mp4 +3 -0
- splice_video_segments/02/S5nOtn1BIvw_part_5.mp4 +3 -0
- splice_video_segments/02/Si4HzIP9kHQ_part_2.mp4 +3 -0
- splice_video_segments/02/T8wEo4iiGhc_part_1.mp4 +3 -0
- splice_video_segments/02/T8wEo4iiGhc_part_3.mp4 +3 -0
- splice_video_segments/02/WU1J6bmqNKE_part_1.mp4 +3 -0
- splice_video_segments/02/WU1J6bmqNKE_part_3.mp4 +3 -0
- splice_video_segments/02/_9DAGF1cJK8_part_1.mp4 +3 -0
- splice_video_segments/02/_9DAGF1cJK8_part_3.mp4 +3 -0
- splice_video_segments/02/amGCqK97UT4_part_1.mp4 +3 -0
- splice_video_segments/02/amGCqK97UT4_part_3.mp4 +3 -0
- splice_video_segments/02/dBhgVVVgIqQ_part_5.mp4 +3 -0
- splice_video_segments/02/fHv947jR_6U_part_4.mp4 +3 -0
- splice_video_segments/02/iBDmUvAGpN0_part_1.mp4 +3 -0
- splice_video_segments/02/iBDmUvAGpN0_part_3.mp4 +3 -0
- splice_video_segments/02/iW6cN1UXDvE_part_1.mp4 +3 -0
- splice_video_segments/02/jLnrD6vY0B4_part_1.mp4 +3 -0
- splice_video_segments/02/jLnrD6vY0B4_part_3.mp4 +3 -0
- splice_video_segments/02/lEgPLY9_8Kg_part_2.mp4 +3 -0
- splice_video_segments/02/qkguKz3BrJI_part_2.mp4 +3 -0
- splice_video_segments/02/rHmMhAw7JL4_part_2.mp4 +3 -0
- splice_video_segments/02/u9eYnRdTGIc_part_2.mp4 +3 -0
- splice_video_segments/02/uY6dWKpq1Sw_part_2.mp4 +3 -0
- splice_video_segments/02/xAEAYYnpG-0_part_2.mp4 +3 -0
- upload_splice_hf.py +32 -0
.DS_Store
ADDED
|
Binary file (8.2 kB). View file
|
|
|
README.md
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-4.0
|
| 3 |
+
tags:
|
| 4 |
+
- multimodal
|
| 5 |
+
- video
|
| 6 |
+
- video-understanding
|
| 7 |
+
- temporal-reasoning
|
| 8 |
+
- causal-reasoning
|
| 9 |
+
- event-reordering
|
| 10 |
+
- Contextual Reasoning
|
| 11 |
+
- Commonsense Reasoning
|
| 12 |
+
pretty_name: "SPLICE: A Human Curated Benchmark for Probing Visual Reasoning in VLMs"
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# SPLICE: A Human Curated Benchmark for Probing Visual Reasoning in VLMs
|
| 16 |
+
|
| 17 |
+
## Dataset Summary
|
| 18 |
+
|
| 19 |
+
**SPLICE (Sequential Processing for Learning and Inference in Chronological Events)** is a human-curated benchmark designed to evaluate the temporal and causal reasoning capabilities of Multimodal Large Language Models (MLLMs). The core task is to reorder a set of shuffled video segments from a single procedural event into their correct chronological sequence. [SPLICE dataset](https://openreview.net/forum?id=deFgBHsHxl)
|
| 20 |
+
|
| 21 |
+
This dataset was created to address the "evaluation deficit" in video understanding, where existing benchmarks often fail to probe deep, structural reasoning and are susceptible to linguistic shortcuts. The dataset is derived from 3,381 instructional videos from the COIN dataset, segmented into 11,423 coherent event clips.
|
| 22 |
+
|
| 23 |
+
## Supported Tasks and Capabilities
|
| 24 |
+
|
| 25 |
+
The SPLICE benchmark is designed to evaluate a model's core visual reasoning capabilities through a primary task that necessitates a synthesis of multiple underlying reasoning skills.
|
| 26 |
+
|
| 27 |
+
### Primary Task: Video Segment Reordering
|
| 28 |
+
The fundamental task is to **reconstruct a coherent event sequence from a set of shuffled video clips**. This generative challenge requires the model to understand the entire procedural flow and the logical progression of an event.
|
| 29 |
+
|
| 30 |
+
### Probing Multiple Dimensions of Reasoning
|
| 31 |
+
As detailed in the paper, the benchmark is explicitly designed to probe five distinct dimensions of event-based reasoning:
|
| 32 |
+
|
| 33 |
+
- **Temporal Reasoning:** Grasping the correct linear sequence of events by tracking the changing states of objects over time.
|
| 34 |
+
- **Causal Reasoning:** Recognizing the cause-and-effect relationships that govern why events happen in a particular order.
|
| 35 |
+
- **Spatial Reasoning:** Interpreting the trajectories, orientations, and spatial relationships of objects in 3D space.
|
| 36 |
+
- **Contextual Reasoning:** Using the environment and the logic of a process to infer dependencies.
|
| 37 |
+
- **General Knowledge Reasoning:** Applying prior commonsense or domain-specific world knowledge to infer a plausible sequence.
|
| 38 |
+
|
| 39 |
+
## Dataset Structure
|
| 40 |
+
|
| 41 |
+
The dataset is structured with **one row per video segment (clip)**. Each row contains a playable video and all its associated metadata, flattened for easy access and analysis. This flat structure, with 11,423 rows in total, is designed for direct use with the Hugging Face Datasets library and the automatic Dataset Viewer. The dataset itself contains all 3,381 validated tasks.
|
| 42 |
+
|
| 43 |
+
### Data Fields
|
| 44 |
+
|
| 45 |
+
The dataset contains the following columns:
|
| 46 |
+
|
| 47 |
+
- `video`: The playable video clip for the segment. This is automatically loaded from the `file_name` column in the metadata.
|
| 48 |
+
- `file_name`: The relative path to the video clip file (e.g., `splice_video_segments/00/oDAY5PMwZgU_part_1.mp4`).
|
| 49 |
+
- `video_id`: The unique ID of the original parent video from the COIN dataset. This allows you to group all segments belonging to the same task.
|
| 50 |
+
- `part`: The ground-truth chronological order of this segment within its parent video task (1-indexed). This is the target for the reordering task.
|
| 51 |
+
- `label`: The human-annotated text description of the event in the video segment.
|
| 52 |
+
- `domain`: The high-level category of the task (e.g., 'Electrical Appliance', 'Science and Craft').
|
| 53 |
+
- `class`: The specific name of the task (e.g., 'UseVendingMachine').
|
| 54 |
+
- `subset`: The original split from the COIN dataset (e.g., 'training', 'testing').
|
| 55 |
+
- `start` / `end`: The start and end timestamps of this segment within the original, full-length video.
|
| 56 |
+
- `segment_id`: The unique ID for this specific segment from the COIN dataset.
|
| 57 |
+
- `task_duration`: The total duration in seconds of the original, full-length parent video.
|
| 58 |
+
- `video_url`: The original YouTube URL of the full-length parent video.
|
| 59 |
+
|
| 60 |
+
### Data Splits
|
| 61 |
+
|
| 62 |
+
The dataset is provided as a single `main` split, containing all 3,381 validated tasks.
|
| 63 |
+
|
| 64 |
+
## Dataset Creation
|
| 65 |
+
|
| 66 |
+
The SPLICE benchmark was created through a rigorous six-stage curation pipeline:
|
| 67 |
+
1. **Sourcing**: Instructional videos were selected from the COIN dataset.
|
| 68 |
+
2. **Selection**: A diverse subset of 3,600 videos was randomly sampled.
|
| 69 |
+
3. **Segmentation**: Videos were temporally segmented into event clips using COIN's ground-truth annotations.
|
| 70 |
+
4. **Anonymization**: All audio tracks, metadata, and original filenames were stripped to isolate visual reasoning for the [SPLICE dataset and publication](https://openreview.net/forum?id=deFgBHsHxl). Clips were standardized to `.mp4` format. However, for this dataset, the non-anonyzed version has been presented to encourage versatility, as metadata and audio stripping can be done based on what needs to be probed in future tasks.
|
| 71 |
+
5. **Human Validation**: Each of the 3,600 tasks (a set of shuffled clips) was presented to two independent human annotators. A task was only included in the final benchmark if it was not deemed "unsolvable" by both annotators, ensuring high quality and unambiguous solvability. Solvability does not equal correctness.
|
| 72 |
+
6. **Final Benchmark**: The final dataset comprises 3,381 validated tasks, totaling 11,423 clips.
|
| 73 |
+
|
| 74 |
+
### Sample Data Point
|
| 75 |
+
|
| 76 |
+
A single row in the dataset looks like this:
|
| 77 |
+
|
| 78 |
+
```json
|
| 79 |
+
{
|
| 80 |
+
"file_name": "splice_video_segments/00/oDAY5PMwZgU_part_1.mp4",
|
| 81 |
+
"video_id": "oDAY5PMwZgU",
|
| 82 |
+
"part": 1,
|
| 83 |
+
"label": "insert money into the vending machine",
|
| 84 |
+
"domain": "Electrical Appliance",
|
| 85 |
+
"class": "UseVendingMachine",
|
| 86 |
+
"subset": "training",
|
| 87 |
+
"start": 2.0,
|
| 88 |
+
"end": 7.0,
|
| 89 |
+
"segment_id": "519",
|
| 90 |
+
"task_duration": 17.205978,
|
| 91 |
+
"video_url": "https://www.youtube.com/embed/oDAY5PMwZgU",
|
| 92 |
+
"video": {
|
| 93 |
+
"path": "splice_video_segments/00/oDAY5PMwZgU_part_1.mp4",
|
| 94 |
+
"bytes": "..."
|
| 95 |
+
}
|
| 96 |
+
}
|
| 97 |
+
```
|
| 98 |
+
## Citation Information
|
| 99 |
+
|
| 100 |
+
If you use the SPLICE dataset in your research, please cite the following paper:
|
| 101 |
+
|
| 102 |
+
```bibtex
|
| 103 |
+
@inproceedings{
|
| 104 |
+
ballout2025can,
|
| 105 |
+
title={Can you {SPLICE} it together? A Human Curated Benchmark for Probing Visual Reasoning in {VLM}s},
|
| 106 |
+
author={Mohamad Ballout* and Okajevo Wilfred* and Seyedalireza Yaghoubi and Nohayr Muhammad Abdelmoneim and Julius Mayer and Elia Bruni},
|
| 107 |
+
booktitle={The 2025 Conference on Empirical Methods in Natural Language Processing},
|
| 108 |
+
year={2025},
|
| 109 |
+
url={https://openreview.net/forum?id=deFgBHsHxl}
|
| 110 |
+
}
|
| 111 |
+
```
|
| 112 |
+
```
|
covert_jsonl.py
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
import os
|
| 3 |
+
from tqdm import tqdm
|
| 4 |
+
|
| 5 |
+
INPUT_JSON = "splice_segment_metadata.json"
|
| 6 |
+
OUTPUT_JSONL = "metadata.jsonl"
|
| 7 |
+
|
| 8 |
+
def convert_to_jsonl_ordered():
|
| 9 |
+
"""
|
| 10 |
+
Converts the nested SPLICE JSON metadata into a flat, logically ordered
|
| 11 |
+
JSON Lines file for a professional display in the Hugging Face Viewer.
|
| 12 |
+
"""
|
| 13 |
+
print(f"--- Converting to logically ordered '{OUTPUT_JSONL}' ---")
|
| 14 |
+
|
| 15 |
+
with open(INPUT_JSON, 'r') as f:
|
| 16 |
+
data = json.load(f)
|
| 17 |
+
|
| 18 |
+
with open(OUTPUT_JSONL, 'w') as f_out:
|
| 19 |
+
for video_info in tqdm(data, desc="Processing video tasks"):
|
| 20 |
+
for segment in video_info.get("segments", []):
|
| 21 |
+
output_record = {
|
| 22 |
+
"file_name": segment.get("output_path", ""),
|
| 23 |
+
"video_id": video_info.get("video_id", ""),
|
| 24 |
+
"part": segment.get("part", -1),
|
| 25 |
+
"label": segment.get("label", ""),
|
| 26 |
+
"domain": video_info.get("Domain", ""),
|
| 27 |
+
"class": video_info.get("class", ""),
|
| 28 |
+
#"subset": video_info.get("subset", ""),
|
| 29 |
+
"start": segment.get("start", -1.0),
|
| 30 |
+
"end": segment.get("end", -1.0),
|
| 31 |
+
#"segment_id": segment.get("segment_id", ""),
|
| 32 |
+
"task_duration": video_info.get("duration", -1.0),
|
| 33 |
+
"video_url": video_info.get("video_url", ""),
|
| 34 |
+
}
|
| 35 |
+
f_out.write(json.dumps(output_record) + '\n')
|
| 36 |
+
|
| 37 |
+
print("\n--- Conversion Complete! ---")
|
| 38 |
+
print(f"Successfully created '{OUTPUT_JSONL}' with a professional column order.")
|
| 39 |
+
|
| 40 |
+
if __name__ == "__main__":
|
| 41 |
+
convert_to_jsonl_ordered()
|
metadata.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
splice_banchmark.py
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
import os
|
| 3 |
+
import datasets
|
| 4 |
+
|
| 5 |
+
_DESCRIPTION = """
|
| 6 |
+
SPLICE is a human-curated benchmark designed to evaluate the temporal and causal reasoning
|
| 7 |
+
capabilities of Multimodal Large Language Models (MLLMs). The core task is to reorder a set of
|
| 8 |
+
shuffled video segments from a single procedural event into their correct chronological sequence.
|
| 9 |
+
The dataset is derived from 3,381 instructional videos from the COIN dataset, segmented into
|
| 10 |
+
11,423 coherent event clips.
|
| 11 |
+
"""
|
| 12 |
+
|
| 13 |
+
_CITATION = """
|
| 14 |
+
@inproceedings{
|
| 15 |
+
ballout2025can,
|
| 16 |
+
title={{Can you {SPLICE} it together? A Human Curated Benchmark for Probing Visual Reasoning in {VLM}s}},
|
| 17 |
+
author={Mohamad Ballout* and Okajevo Wilfred* and Seyedalireza Yaghoubi and Nohayr Muhammad Abdelmoneim and Julius Mayer and Elia Bruni},
|
| 18 |
+
booktitle={The 2025 Conference on Empirical Methods in Natural Language Processing},
|
| 19 |
+
year={2025},
|
| 20 |
+
url={https://openreview.net/forum?id=deFgBHsHxl}
|
| 21 |
+
}
|
| 22 |
+
"""
|
| 23 |
+
|
| 24 |
+
class SpliceBenchmark(datasets.GeneratorBasedBuilder):
|
| 25 |
+
"""The SPLICE Benchmark Dataset."""
|
| 26 |
+
|
| 27 |
+
def _info(self):
|
| 28 |
+
return datasets.DatasetInfo(
|
| 29 |
+
description=_DESCRIPTION,
|
| 30 |
+
features=datasets.Features(
|
| 31 |
+
{
|
| 32 |
+
"video_id": datasets.Value("string"),
|
| 33 |
+
"domain": datasets.Value("string"),
|
| 34 |
+
"class": datasets.Value("string"),
|
| 35 |
+
"subset": datasets.Value("string"),
|
| 36 |
+
"video_url": datasets.Value("string"),
|
| 37 |
+
"duration": datasets.Value("float"),
|
| 38 |
+
"segments": datasets.Sequence(
|
| 39 |
+
{
|
| 40 |
+
"part": datasets.Value("int32"),
|
| 41 |
+
"segment_id": datasets.Value("string"),
|
| 42 |
+
"label": datasets.Value("string"),
|
| 43 |
+
"start": datasets.Value("float"),
|
| 44 |
+
"end": datasets.Value("float"),
|
| 45 |
+
"video_clip": datasets.Video()
|
| 46 |
+
}
|
| 47 |
+
),
|
| 48 |
+
}
|
| 49 |
+
),
|
| 50 |
+
homepage="https://huggingface.co/datasets/prokajevo/splice-benchmark",
|
| 51 |
+
citation=_CITATION,
|
| 52 |
+
)
|
| 53 |
+
|
| 54 |
+
def _split_generators(self, dl_manager):
|
| 55 |
+
data_dir = dl_manager.download_and_extract(".")
|
| 56 |
+
metadata_path = os.path.join(data_dir, "splice_segment_metadata.json")
|
| 57 |
+
return [
|
| 58 |
+
datasets.SplitGenerator(
|
| 59 |
+
name=datasets.Split.TRAIN,
|
| 60 |
+
gen_kwargs={"metadata_path": metadata_path, "data_dir": data_dir},
|
| 61 |
+
),
|
| 62 |
+
]
|
| 63 |
+
|
| 64 |
+
def _generate_examples(self, metadata_path, data_dir):
|
| 65 |
+
with open(metadata_path, "r") as f:
|
| 66 |
+
data = json.load(f)
|
| 67 |
+
|
| 68 |
+
video_count = 0
|
| 69 |
+
for video_info in data:
|
| 70 |
+
try:
|
| 71 |
+
if not video_info.get("segments"):
|
| 72 |
+
continue
|
| 73 |
+
|
| 74 |
+
segments_data = []
|
| 75 |
+
for segment in video_info.get("segments", []):
|
| 76 |
+
if "output_path" in segment and segment["output_path"]:
|
| 77 |
+
video_path = os.path.join(data_dir, segment["output_path"])
|
| 78 |
+
if os.path.exists(video_path):
|
| 79 |
+
segments_data.append({
|
| 80 |
+
"part": segment.get("part", -1),
|
| 81 |
+
"segment_id": segment.get("segment_id", ""),
|
| 82 |
+
"label": segment.get("label", ""),
|
| 83 |
+
"start": segment.get("start", -1.0),
|
| 84 |
+
"end": segment.get("end", -1.0),
|
| 85 |
+
"video_clip": video_path,
|
| 86 |
+
})
|
| 87 |
+
|
| 88 |
+
if segments_data:
|
| 89 |
+
yield video_count, {
|
| 90 |
+
"video_id": video_info.get("video_id", ""),
|
| 91 |
+
"domain": video_info.get("Domain", ""),
|
| 92 |
+
"class": video_info.get("class", ""),
|
| 93 |
+
"subset": video_info.get("subset", ""),
|
| 94 |
+
"video_url": video_info.get("video_url", ""),
|
| 95 |
+
"duration": video_info.get("duration", -1.0),
|
| 96 |
+
"segments": segments_data,
|
| 97 |
+
}
|
| 98 |
+
video_count += 1
|
| 99 |
+
|
| 100 |
+
except Exception as e:
|
| 101 |
+
print(f"--> WARNING: Skipping corrupted data for video {video_info.get('video_id', 'unknown')}. Error: {e}")
|
| 102 |
+
continue
|
splice_segment_metadata.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
splice_video_segments/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
splice_video_segments/02/09A6DD53ad4_part_2.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c07dc57a66c8d9bf498cb1777db811fa97e13ae5f7af5f5dea492dd3c68805b7
|
| 3 |
+
size 1033500
|
splice_video_segments/02/57ryD89Ez9c_part_1.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:955b7e2451ae76d0b2af034ca3b8c8d8ad67514997019571acf85376a6a88737
|
| 3 |
+
size 1134802
|
splice_video_segments/02/57ryD89Ez9c_part_3.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b2c27bb8794d492321c3a56cf98decc40256de318a96c675ce23296735d5d9e5
|
| 3 |
+
size 15889979
|
splice_video_segments/02/78UikTQkGgg_part_2.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:be81385072139f6eb0ce477e58a97d3f2de10da1ce773126491e7a1f3227b103
|
| 3 |
+
size 19739529
|
splice_video_segments/02/8U0ucEcs8Po_part_2.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:88f947b339044f537a6f3054ccc9ee57badc7d57689ae20d2c467193b2e4c5f8
|
| 3 |
+
size 5184898
|
splice_video_segments/02/9MP2aoismY0_part_1.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4abcb2f88193761528101c44ec29ae22aa883b72d4f863ba53258c32bd052885
|
| 3 |
+
size 602529
|
splice_video_segments/02/9MP2aoismY0_part_3.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:294909876ec1fce2b49bd979d44f9ac84c36d4ff9a7ea743476f2fd1f3f05b08
|
| 3 |
+
size 640216
|
splice_video_segments/02/DhHzrMMiVKI_part_4.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:daa6bffc347d5126eb38e15a5642a069525071e1ba379d907714b49fd5a0af03
|
| 3 |
+
size 1269669
|
splice_video_segments/02/DhHzrMMiVKI_part_6.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8c8880576dfba7507fbb2c4cdcc6e78811d57a95db970191db7693906f3bb53a
|
| 3 |
+
size 288679
|
splice_video_segments/02/G3d98rj9xtM_part_2.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0265f650d140d98ac178650a73ef412a9c8630b345ecf4eb91ff160dc0f33b7
|
| 3 |
+
size 3248488
|
splice_video_segments/02/H2ieVJmq9ao_part_2.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:21d2543bcdfda11150b2fb55ec7544640903690f522afebb11264478807608e0
|
| 3 |
+
size 443606
|
splice_video_segments/02/HFMS3jS6rfI_part_1.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ce1ae4c415c344c794ccbc7587033554f2f5b9ae4017ec6b070af154388eb555
|
| 3 |
+
size 4370167
|
splice_video_segments/02/HdXMpSduf7s_part_4.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:66d09d22addf8f0681c4067be47029a1e8ff0a35b096dbbedb8be9e54b6974dd
|
| 3 |
+
size 875417
|
splice_video_segments/02/Izsa3XvFAVs_part_2.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f6efbb2263b61d42d319971b536da44bf41182e7ba206880d2974de1327ce7b6
|
| 3 |
+
size 2568610
|
splice_video_segments/02/KX-2N8s-jh8_part_1.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8b535f154b9a3b4ad634a22fd0f94c190350d9edb25484724986a88f5ef66292
|
| 3 |
+
size 460285
|
splice_video_segments/02/KX-2N8s-jh8_part_3.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d65e6705cefa1a1f059d3c62e748a1659b9d449ae019e437e475d325b992ccf9
|
| 3 |
+
size 4917904
|
splice_video_segments/02/LBO_OS556lI_part_1.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b1d26d10270ac29c59b667d283ae1ec99fe4ac7aade55e535a8d22a784f842ad
|
| 3 |
+
size 6488507
|
splice_video_segments/02/Ns2WxN6VBMo_part_2.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:98c4ffb9de5654f11ec3ea3135a6816c0fcf0e203280085da0cf975942fe61f1
|
| 3 |
+
size 14618043
|
splice_video_segments/02/RA5PfVquIoE_part_2.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bd794bc1efdd44dbbf2c06bd759b0d6d8543c45b1d443b3f9a56f277ec124dc3
|
| 3 |
+
size 168491
|
splice_video_segments/02/S5nOtn1BIvw_part_5.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:394e4d75e4246210c95a1c0a6ac187e4cd8316683587370b723a7ba913819dde
|
| 3 |
+
size 704995
|
splice_video_segments/02/Si4HzIP9kHQ_part_2.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a102521585b13fe1b39e864712f0f8b4ce0fb9c1055a2f00393adaa89152c92b
|
| 3 |
+
size 1177863
|
splice_video_segments/02/T8wEo4iiGhc_part_1.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:46d0ba12269806ba01fd906769c95aa47cc4121bda4d036e342dd0c501621c8f
|
| 3 |
+
size 880089
|
splice_video_segments/02/T8wEo4iiGhc_part_3.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f65d17b767bd31084f983e08ddf75a58a0153e65181f41eb145842897f175126
|
| 3 |
+
size 6760657
|
splice_video_segments/02/WU1J6bmqNKE_part_1.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cf6e30c168ebc09ae56b1a304b39098eaf4d517ad6ae1a34081a8b6592799ad5
|
| 3 |
+
size 4735386
|
splice_video_segments/02/WU1J6bmqNKE_part_3.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9bf404baa477ef1cff2c9e628ed62f693d0273f05c3fca91de2b0922574598bb
|
| 3 |
+
size 1119483
|
splice_video_segments/02/_9DAGF1cJK8_part_1.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e273cedb9558fdd69843730703363492484d88847d09dcb46d6c23a43a015dbd
|
| 3 |
+
size 179336
|
splice_video_segments/02/_9DAGF1cJK8_part_3.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:90c3337250ab16f5de6d3611dd965bddb074c8b4fc2950fb2299589890a53311
|
| 3 |
+
size 3654154
|
splice_video_segments/02/amGCqK97UT4_part_1.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:36c76a9caf0070741921b0ca725a437f87e7492705d78dc12c353e5a311a26c2
|
| 3 |
+
size 523210
|
splice_video_segments/02/amGCqK97UT4_part_3.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a4a073a52e5f20f1b9798133e50a9919767983c7b101d3470ec3179f9f8057ff
|
| 3 |
+
size 1802442
|
splice_video_segments/02/dBhgVVVgIqQ_part_5.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:54ae8e3f36d92a523df6d1438edcb86e76d17bb0ce17bf5959da59cb93b44668
|
| 3 |
+
size 683527
|
splice_video_segments/02/fHv947jR_6U_part_4.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bc0afd28ae4ddad1f67e46273d1b0cb357a3fad9a222805e04da0d9180cd17e8
|
| 3 |
+
size 2131062
|
splice_video_segments/02/iBDmUvAGpN0_part_1.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5c02606446a461d0b1e4192cb66cc5bc03e359929ca9b8e968ff4ac9da0a8bf3
|
| 3 |
+
size 466745
|
splice_video_segments/02/iBDmUvAGpN0_part_3.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:764134c63d2624797025aa3d657a604c2fc90418f79738bac34f90bb494bc99e
|
| 3 |
+
size 3259315
|
splice_video_segments/02/iW6cN1UXDvE_part_1.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e4365acf7c7d4a123f3c1c4926d101ae51d77ce27b05b557ddc17def9311f131
|
| 3 |
+
size 1222901
|
splice_video_segments/02/jLnrD6vY0B4_part_1.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c4477148cb4fe05a9ef43f8001b7ae7bd77debdfc60389dd62ecb71ad2169ce6
|
| 3 |
+
size 1312560
|
splice_video_segments/02/jLnrD6vY0B4_part_3.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d5178495d4a9815767ba27adb0956c83e805d3d2b93af7dcc5a0f3eda86ab758
|
| 3 |
+
size 2186661
|
splice_video_segments/02/lEgPLY9_8Kg_part_2.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c539f771e41d9c144b3a34a0638f33938b67475e0f8891715639bfbee21391a7
|
| 3 |
+
size 1647674
|
splice_video_segments/02/qkguKz3BrJI_part_2.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9dde731cea7ae3bc4c16ce07a37c7776574fdcb59ef362ef78a6ab43f14e6ad8
|
| 3 |
+
size 568733
|
splice_video_segments/02/rHmMhAw7JL4_part_2.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:060ccb7398025902d262c2eedb6d86ea3046b33103822990c7c4e6b56c84d1f7
|
| 3 |
+
size 6324476
|
splice_video_segments/02/u9eYnRdTGIc_part_2.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5c0fb05b1b1e27944cc8ec6fd8ff271bb807255fc7fd544155d89229f1a0f267
|
| 3 |
+
size 4561979
|
splice_video_segments/02/uY6dWKpq1Sw_part_2.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d0e3a63f32f755803fa3c2e3ad1006c11fe4f9838163449c4b41ba7e6ba09ba1
|
| 3 |
+
size 407951
|
splice_video_segments/02/xAEAYYnpG-0_part_2.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0d05ec437776819199656d2fdc32cf1cc9b35997dd785437e06dea4328fbd37f
|
| 3 |
+
size 5194033
|
upload_splice_hf.py
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
from huggingface_hub import HfApi, create_repo
|
| 3 |
+
|
| 4 |
+
LOCAL_DATA_PATH = "."
|
| 5 |
+
REPO_ID = "prokajevo/splice-benchmark"
|
| 6 |
+
|
| 7 |
+
def upload_splice_robustly():
|
| 8 |
+
print(f"Starting robust upload for repository: {REPO_ID}")
|
| 9 |
+
|
| 10 |
+
api = HfApi()
|
| 11 |
+
|
| 12 |
+
print(f"Ensuring repository '{REPO_ID}' exists...")
|
| 13 |
+
create_repo(
|
| 14 |
+
repo_id=REPO_ID,
|
| 15 |
+
repo_type="dataset",
|
| 16 |
+
exist_ok=True,
|
| 17 |
+
)
|
| 18 |
+
print("Repository exists.")
|
| 19 |
+
|
| 20 |
+
print(f"Starting parallel upload of folder '{os.path.abspath(LOCAL_DATA_PATH)}'...")
|
| 21 |
+
api.upload_large_folder(
|
| 22 |
+
folder_path=LOCAL_DATA_PATH,
|
| 23 |
+
repo_id=REPO_ID,
|
| 24 |
+
repo_type="dataset"
|
| 25 |
+
)
|
| 26 |
+
|
| 27 |
+
print("\n--- Parallel Upload Complete! ---")
|
| 28 |
+
print(f"Visit your dataset at: https://huggingface.co/datasets/{REPO_ID}")
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
if __name__ == "__main__":
|
| 32 |
+
upload_splice_robustly()
|