tuhink commited on
Commit
2817b4d
·
verified ·
1 Parent(s): bc8fa59

Add CameraBench binary evaluation dataset with 393 questions

Browse files
README_HEADER.yaml ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ configs:
3
+ - config_name: default
4
+ data_files:
5
+ - split: train
6
+ path: data.jsonl
7
+ task_categories:
8
+ - visual-question-answering
9
+ - video-classification
10
+ language:
11
+ - en
12
+ size_categories:
13
+ - n<1K
14
+ ---
data.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
dataset_info.py ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import datasets
2
+ import os
3
+ from pathlib import Path
4
+ _DESCRIPTION = """
5
+ CameraBench Binary Evaluation Dataset with video frames and optical flow visualizations.
6
+ """
7
+ class CameraBenchConfig(datasets.BuilderConfig):
8
+ """BuilderConfig for CameraBench."""
9
+ def __init__(self, **kwargs):
10
+ super(CameraBenchConfig, self).__init__(**kwargs)
11
+ class CameraBench(datasets.GeneratorBasedBuilder):
12
+ """CameraBench dataset with frames and optical flows."""
13
+ VERSION = datasets.Version("1.0.0")
14
+ def _info(self):
15
+ return datasets.DatasetInfo(
16
+ description=_DESCRIPTION,
17
+ features=datasets.Features({
18
+ "video_name": datasets.Value("string"),
19
+ "video_path": datasets.Value("string"),
20
+ "frames_path": datasets.Value("string"),
21
+ "optical_flows_path": datasets.Value("string"),
22
+ "first_frame": datasets.Image(),
23
+ "first_flow": datasets.Image(),
24
+ "num_frames": datasets.Value("int32"),
25
+ "num_flows": datasets.Value("int32"),
26
+ "question": datasets.Value("string"),
27
+ "label": datasets.Value("string"),
28
+ "task": datasets.Value("string"),
29
+ "label_name": datasets.Value("string"),
30
+ })
31
+ )
32
+ def _split_generators(self, dl_manager):
33
+ return [
34
+ datasets.SplitGenerator(
35
+ name=datasets.Split.TRAIN,
36
+ gen_kwargs={"metadata_path": "data.jsonl"},
37
+ ),
38
+ ]
39
+ def _generate_examples(self, metadata_path):
40
+ import json
41
+ idx = 0
42
+ with open(metadata_path, "r") as f:
43
+ for line in f:
44
+ record = json.loads(line)
45
+ yield idx, record
46
+ idx += 1
metadata.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
sample_gifs/Has_Backward_Motion_1.gif ADDED

Git LFS Details

  • SHA256: 130280d6e023e6fa3a5e818b678d9c799396b156d2357fd8cb75523e426901d0
  • Pointer size: 131 Bytes
  • Size of remote file: 840 kB
sample_gifs/Has_Backward_Motion_2.gif ADDED

Git LFS Details

  • SHA256: 94fd605121992c10dcb6bf496aee5f6dcdbe7305312a8e1126ddc95d78ae2ebe
  • Pointer size: 131 Bytes
  • Size of remote file: 617 kB
sample_gifs/Has_Forward_Motion_1.gif ADDED

Git LFS Details

  • SHA256: 1badf938ba84ee53dc7397b4fba24138b0cb50b6cfab8949140d93e384844bf7
  • Pointer size: 131 Bytes
  • Size of remote file: 685 kB
sample_gifs/Has_Forward_Motion_2.gif ADDED

Git LFS Details

  • SHA256: 8181d29f41fa9d3d24b80776853b5362f5fda7a28f6ae21bffbc6fa94f309142
  • Pointer size: 131 Bytes
  • Size of remote file: 883 kB
sample_gifs/Has_Forward_Vs_Backward_Ground_1.gif ADDED

Git LFS Details

  • SHA256: 2a2548b6484d6575b127859adcd43121ad997cb0878e9fc21b278ce2c8f4bfce
  • Pointer size: 131 Bytes
  • Size of remote file: 702 kB
sample_gifs/Has_Forward_Vs_Backward_Ground_2.gif ADDED

Git LFS Details

  • SHA256: ac6ac3a5c13c64ec5e43b8037d660e583f4731d8876ad0f0511ec79009d6f9ab
  • Pointer size: 131 Bytes
  • Size of remote file: 142 kB
sample_gifs/Has_Pan_Left_1.gif ADDED

Git LFS Details

  • SHA256: 1badf938ba84ee53dc7397b4fba24138b0cb50b6cfab8949140d93e384844bf7
  • Pointer size: 131 Bytes
  • Size of remote file: 685 kB
sample_gifs/Has_Pan_Left_2.gif ADDED

Git LFS Details

  • SHA256: 8181d29f41fa9d3d24b80776853b5362f5fda7a28f6ae21bffbc6fa94f309142
  • Pointer size: 131 Bytes
  • Size of remote file: 883 kB
sample_gifs/Has_Pan_Right_1.gif ADDED

Git LFS Details

  • SHA256: fb4ef0b8694e027b369e6c900d5fbff3976889e2ae2d022feb4199184a58fd46
  • Pointer size: 131 Bytes
  • Size of remote file: 406 kB
sample_gifs/Has_Pan_Right_2.gif ADDED

Git LFS Details

  • SHA256: 70e82887db26e1b6a98893b9891355679b50bacfdc51567c937c59c4adc5f41c
  • Pointer size: 131 Bytes
  • Size of remote file: 221 kB
sample_gifs/Has_Truck_Left_1.gif ADDED

Git LFS Details

  • SHA256: 26024b5a7c95d6a1c44792f584aad9fb13ec80cd4223d5961ed7244fa74ca4ca
  • Pointer size: 131 Bytes
  • Size of remote file: 561 kB
sample_gifs/Has_Truck_Left_2.gif ADDED

Git LFS Details

  • SHA256: 614004929d585e7f82f5e55103bd37b6f21129bad556fdfdde8a33f817c20f8b
  • Pointer size: 131 Bytes
  • Size of remote file: 369 kB
sample_gifs/Has_Truck_Right_1.gif ADDED

Git LFS Details

  • SHA256: 70e82887db26e1b6a98893b9891355679b50bacfdc51567c937c59c4adc5f41c
  • Pointer size: 131 Bytes
  • Size of remote file: 221 kB
sample_gifs/Has_Truck_Right_2.gif ADDED

Git LFS Details

  • SHA256: b06633700884bcfe7aad9f0f16853b100323ab9147729e4abcc228cb8b72cc32
  • Pointer size: 131 Bytes
  • Size of remote file: 638 kB
sample_gifs/Has_Zoom_Out_Not_Move_Vs_Has_Move_Not_Zoom_Out_1.gif ADDED

Git LFS Details

  • SHA256: 97038b1587c111987a337088262e9284f732fc0df42e6100f57ec4335d2f6e3e
  • Pointer size: 131 Bytes
  • Size of remote file: 618 kB
sample_gifs/Has_Zoom_Out_Not_Move_Vs_Has_Move_Not_Zoom_Out_2.gif ADDED

Git LFS Details

  • SHA256: b52f058752f7d6e487283f42e9401d52927f5d8d50d8dc7631145e90ab6633ec
  • Pointer size: 131 Bytes
  • Size of remote file: 678 kB
sample_gifs/Is_Scene_Static_Or_Not_1.gif ADDED

Git LFS Details

  • SHA256: 1badf938ba84ee53dc7397b4fba24138b0cb50b6cfab8949140d93e384844bf7
  • Pointer size: 131 Bytes
  • Size of remote file: 685 kB
sample_gifs/Is_Scene_Static_Or_Not_2.gif ADDED

Git LFS Details

  • SHA256: fb4ef0b8694e027b369e6c900d5fbff3976889e2ae2d022feb4199184a58fd46
  • Pointer size: 131 Bytes
  • Size of remote file: 406 kB
sample_gifs/Is_The_Camera_Stable_Or_Shaky_1.gif ADDED

Git LFS Details

  • SHA256: 1badf938ba84ee53dc7397b4fba24138b0cb50b6cfab8949140d93e384844bf7
  • Pointer size: 131 Bytes
  • Size of remote file: 685 kB
sample_gifs/Is_The_Camera_Stable_Or_Shaky_2.gif ADDED

Git LFS Details

  • SHA256: fb4ef0b8694e027b369e6c900d5fbff3976889e2ae2d022feb4199184a58fd46
  • Pointer size: 131 Bytes
  • Size of remote file: 406 kB
sample_gifs/Is_The_Fixed_Camera_Shaking_Or_Not_1.gif ADDED

Git LFS Details

  • SHA256: 3b7ae4fd8a20f108a46efd0dc35ba85aec38441b5f1eefe3a127e2c684b16025
  • Pointer size: 131 Bytes
  • Size of remote file: 298 kB
sample_gifs/Is_The_Fixed_Camera_Shaking_Or_Not_2.gif ADDED

Git LFS Details

  • SHA256: 0b82707e65b65e7921c10351ecaedddeddfd39c21ad0ceb68f23785d8eed91b0
  • Pointer size: 131 Bytes
  • Size of remote file: 764 kB