sparshgarg57 commited on
Commit
ddd1d3e
·
verified ·
1 Parent(s): 6966888

Use numeric Nexar video ids; document nexar-ai/nexar_collision_prediction as video source

Browse files
Files changed (3) hide show
  1. README.md +32 -15
  2. data/test.json +0 -0
  3. data/test.parquet +2 -2
README.md CHANGED
@@ -50,7 +50,9 @@ dataset_info:
50
 
51
  **Causal Accident Video and Incident Analysis Repository** — Nexar validation/test annotations.
52
 
53
- This Hub dataset mirrors the public val/test split from [github.com/nec-labs-ma/CAViAR](https://github.com/nec-labs-ma/CAViAR): **749 videos**, **7,407 QA pairs**. **Videos are not included.** Obtain Nexar clips under the original Nexar license; `video_path` is a filename only (e.g. `nexar_00284.mp4`).
 
 
54
 
55
  Paper: *CAViAR: A Causal Video Dataset for Fine-Grained Accident Reasoning in Real-World Scenarios* ([arXiv:2608.19380](https://arxiv.org/abs/2608.19380)).
56
 
@@ -60,17 +62,17 @@ Paper: *CAViAR: A Causal Video Dataset for Fine-Grained Accident Reasoning in Re
60
  from datasets import load_dataset
61
 
62
  ds = load_dataset("sparshgarg57/CAViAR", split="test")
63
- print(ds[0]["video_path"], len(ds[0]["qa_pairs"]))
64
  ```
65
 
66
- Canonical JSON (same as the GitHub file): [`data/test.json`](data/test.json).
67
 
68
  ## Split
69
 
70
  | Split | Source | Role | Released here |
71
  |-------|--------|------|----------------|
72
  | Train | [CCD](https://github.com/Cogito2012/CarCrashDataset) | Fine-tuning | No |
73
- | Val / test | [Nexar](https://www.nexar.com/) | Held-out evaluation | Yes (annotations only) |
74
 
75
  ## Tasks
76
 
@@ -89,25 +91,28 @@ MCQ items include `choices`, `correct_answer`, and `correct_index`. Open-ended i
89
 
90
  ## Videos
91
 
92
- Place Nexar mp4 files so names match `video_path`:
 
 
 
 
93
 
94
- ```text
95
- nexar_00001.mp4
96
- ...
97
- nexar_00284.mp4
98
  ```
99
 
100
- Code, eval scripts, and ontology: [CAViAR GitHub](https://github.com/nec-labs-ma/CAViAR).
101
 
102
- Example clip (`nexar_00284`, T-bone):
103
 
104
- ![Preview of nexar_00284.mp4](https://github.com/nec-labs-ma/CAViAR/raw/main/examples/nexar_00284.gif)
105
 
106
- Source video from Nexar (Moura et al., 2025). Short collision-window preview only; the Nexar corpus is not redistributed.
107
 
108
  ## License and ethics
109
 
110
- Annotations are for academic research on accident understanding and rule-relevant multimodal reasoning. Raw Nexar (and CCD) videos remain under their original licenses.
111
 
112
  Labels are *apparent* responsibility cues from video evidence. They are **not** legal determinations of liability and must not be used for adjudication, insurance, enforcement, or decisions about identifiable individuals.
113
 
@@ -122,4 +127,16 @@ Labels are *apparent* responsibility cues from video evidence. They are **not**
122
  }
123
  ```
124
 
125
- Please also cite **Nexar** when using the val/test videos (Moura et al., 2025).
 
 
 
 
 
 
 
 
 
 
 
 
 
50
 
51
  **Causal Accident Video and Incident Analysis Repository** — Nexar validation/test annotations.
52
 
53
+ This Hub dataset mirrors the public val/test split from [github.com/nec-labs-ma/CAViAR](https://github.com/nec-labs-ma/CAViAR): **749 videos**, **7,407 QA pairs**. **Videos are not included.**
54
+
55
+ `video_path` is the **numeric Nexar clip id** (e.g. `00284`). Source videos: [nexar-ai/nexar_collision_prediction](https://huggingface.co/datasets/nexar-ai/nexar_collision_prediction) (`{id}.mp4` under `train/` / `test-public/` / `test-private/`).
56
 
57
  Paper: *CAViAR: A Causal Video Dataset for Fine-Grained Accident Reasoning in Real-World Scenarios* ([arXiv:2608.19380](https://arxiv.org/abs/2608.19380)).
58
 
 
62
  from datasets import load_dataset
63
 
64
  ds = load_dataset("sparshgarg57/CAViAR", split="test")
65
+ print(ds[0]["video_path"], len(ds[0]["qa_pairs"])) # e.g. "00776", 10
66
  ```
67
 
68
+ Canonical JSON (same as GitHub): [`data/test.json`](data/test.json).
69
 
70
  ## Split
71
 
72
  | Split | Source | Role | Released here |
73
  |-------|--------|------|----------------|
74
  | Train | [CCD](https://github.com/Cogito2012/CarCrashDataset) | Fine-tuning | No |
75
+ | Val / test | [nexar-ai/nexar_collision_prediction](https://huggingface.co/datasets/nexar-ai/nexar_collision_prediction) | Held-out evaluation | Yes (annotations only) |
76
 
77
  ## Tasks
78
 
 
91
 
92
  ## Videos
93
 
94
+ Download from [nexar-ai/nexar_collision_prediction](https://huggingface.co/datasets/nexar-ai/nexar_collision_prediction) (Nexar Open Data License). Join on id:
95
+
96
+ | CAViAR `video_path` | Nexar file |
97
+ |---------------------|------------|
98
+ | `00284` | `00284.mp4` |
99
 
100
+ ```bash
101
+ huggingface-cli download nexar-ai/nexar_collision_prediction --repo-type dataset --local-dir /path/to/nexar_collision_prediction
102
+ export CAVIAR_VIDEO_ROOT=/path/to/nexar_collision_prediction
 
103
  ```
104
 
105
+ Eval scripts search `train/`, `test-public/`, and `test-private/` for `{id}.mp4`. Code: [CAViAR GitHub](https://github.com/nec-labs-ma/CAViAR).
106
 
107
+ Example clip (`00284`, T-bone):
108
 
109
+ ![Preview of Nexar video 00284](https://github.com/nec-labs-ma/CAViAR/raw/main/examples/nexar_00284.gif)
110
 
111
+ Short collision-window preview only; the Nexar corpus is not redistributed here.
112
 
113
  ## License and ethics
114
 
115
+ Annotations are for academic research on accident understanding and rule-relevant multimodal reasoning. Raw Nexar videos remain under the [Nexar Open Data License](https://huggingface.co/datasets/nexar-ai/nexar_collision_prediction); CCD videos remain under their original license.
116
 
117
  Labels are *apparent* responsibility cues from video evidence. They are **not** legal determinations of liability and must not be used for adjudication, insurance, enforcement, or decisions about identifiable individuals.
118
 
 
127
  }
128
  ```
129
 
130
+ Please also cite **Nexar** when using the val/test videos:
131
+
132
+ ```bibtex
133
+ @misc{nexar2025dashcamcollisionprediction,
134
+ title={Nexar Dashcam Collision Prediction Dataset and Challenge},
135
+ author={Daniel C. Moura and Shizhan Zhu and Orly Zvitia},
136
+ year={2025},
137
+ eprint={2503.03848},
138
+ archivePrefix={arXiv},
139
+ primaryClass={cs.CV},
140
+ url={https://arxiv.org/abs/2503.03848}
141
+ }
142
+ ```
data/test.json CHANGED
The diff for this file is too large to render. See raw diff
 
data/test.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b0b440473b7a99df0d72bec3c4cafceedc5dc1ae3b7476c98730838e28dbacea
3
- size 145727
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df723dec5a4d7ff28a53d2b2cf0a415f25c97deef463980dfe0a004cb12d42b2
3
+ size 144965