Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -14,4 +14,41 @@ tags:
|
|
14 |
- prediction
|
15 |
size_categories:
|
16 |
- 1K<n<10K
|
17 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
- prediction
|
15 |
size_categories:
|
16 |
- 1K<n<10K
|
17 |
+
---
|
18 |
+
|
19 |
+
# Nexar Collision Prediction Dataset
|
20 |
+
|
21 |
+
## Dataset
|
22 |
+
|
23 |
+
The Nexar collision prediction dataset comprises videos from Nexar dashcams. Videos have a resolution of 1280x720 at 30 frames per second and typically have about 40 seconds of duration. The dataset contains 1500 videos where half show events where there was a collision or a collision was eminent (positive cases), and the other half shows regular driving (negative cases). The time of the event (collision or near-miss) is available for positive cases.
|
24 |
+
|
25 |
+
|
26 |
+
## Goal
|
27 |
+
|
28 |
+
The goal of this dataset is to help build models to predict the time of collision. Models should be able to predict if a collision is about to happen or not. Both collisions and near-misses are treated equally as positive cases.
|
29 |
+
|
30 |
+
|
31 |
+
## Model assessment
|
32 |
+
|
33 |
+
Models should be able to predict that a collision is about to happen as soon as possible, while avoiding false positives. Assessment scripts will be made available shortly that calculate the mean average precision across different times before collision (e.g. 500ms, 1000ms, 2000ms).
|
34 |
+
|
35 |
+
|
36 |
+
## Usage
|
37 |
+
|
38 |
+
``` python
|
39 |
+
from datasets import load_dataset
|
40 |
+
|
41 |
+
dataset = load_dataset("videofolder", data_dir="/your/path/nexar_collision_prediction", split="train", drop_labels=False)
|
42 |
+
```
|
43 |
+
|
44 |
+
A positive example would look like this:
|
45 |
+
|
46 |
+
``` bash
|
47 |
+
{'video': <decord.video_reader.VideoReader object at 0x7f127b56f940>, 'label': 1, 'time_of_event': 19.967}
|
48 |
+
```
|
49 |
+
|
50 |
+
and a negative example like this:
|
51 |
+
|
52 |
+
``` bash
|
53 |
+
{'video': <decord.video_reader.VideoReader object at 0x7f127b56f250>, 'label': 0, 'time_of_event': None}
|
54 |
+
```
|