Datasets:

Modalities:
Text
Formats:
json
ArXiv:
Libraries:
Datasets
Dask
License:
OpenDriveLab-org commited on
Commit
d3bcd7f
1 Parent(s): a32b1ce

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +35 -0
README.md CHANGED
@@ -1,3 +1,38 @@
1
  ---
2
  license: cc-by-nc-sa-4.0
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-nc-sa-4.0
3
  ---
4
+
5
+ # OpenDV-YouTube
6
+
7
+ This is the dataset repository of `OpenDV-YouTube` language annotations, including `context` and `command`. For more details, please refer to <a href="https://arxiv.org/abs/2403.09630" target="_blank">GenAD</a> project and <a href="https://github.com/OpenDriveLab/DriveAGI#opendv-youtube" target="_blank">OpenDV-YouTube</a>.
8
+
9
+ ## Usage
10
+
11
+ To use the annotations, you need to first download and prepare the data as instructed in <a href="https://github.com/OpenDriveLab/DriveAGI/tree/main/opendv" target="_blank">OpenDV-YouTube</a>.
12
+
13
+ You can use the following code to load in full OpenDV-YouTube-Train and OpenDV-YouTube-Val annotations respectively.
14
+
15
+ ```python
16
+ import json
17
+
18
+ # for train
19
+ full_annos = []
20
+ for split_id in range(10):
21
+ split = json.load(open("10hz_YouTube_train_split{}.json".format(str(split_id)), "r"))
22
+ full_annos.extend(split)
23
+
24
+ # for val
25
+ val_annos = json.load(open("10hz_YouTube_val.json", "r"))
26
+ ```
27
+
28
+ Annotations will be loaded in `full_annos` as a list where each element contains annotations for one video clip. All elements in the list are dictionaries of the following structure.
29
+
30
+ ```
31
+ {
32
+ "cmd": <int> -- command, i.e. the command of the ego vehicle in the current video clip
33
+ "blip": <str> -- context, i.e. the BLIP description of the center frame in the current video clip
34
+ "folder": <str> -- the relative path from the processed OpenDV-YouTube dataset root to the image folder of the video
35
+ "first_frame": <str> -- the filename of the first frame in the clip. The corresponding file is included in the current video clip.
36
+ "last_frame": <str> -- the filename of the last frame in the clip. The corresponding file is included in the current video clip.
37
+ }
38
+ ```