fesvhtr commited on
Commit
cbfd03f
·
verified ·
1 Parent(s): 2566202

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +35 -63
README.md CHANGED
@@ -20,36 +20,39 @@ configs:
20
  # Dataset for the paper: FunQA: Towards Surprising Video Comprehension
21
 
22
  Paper: https://huggingface.co/papers/2306.14899.
 
 
 
23
 
24
- ## Repository Layout
25
-
26
- ```text
27
- data/
28
- train.parquet
29
- validation.parquet
30
- test.parquet
31
- mcqa_test.parquet
32
- videos/
33
- train/
34
- train_humor/
35
- train_magic/
36
- train_creative/
37
- validation/
38
- val_humor/
39
- val_magic/
40
- val_creative/
41
- test/
42
- test_humor/
43
- test_magic/
44
- test_creative/
45
- raw/
46
- FunQA_train.json
47
- FunQA_val.json
48
- FunQA_test.json
49
- Funqa_mcqa_v1.json
50
- train.zip
51
- val.zip
52
- test.zip
53
  ```
54
 
55
  ## Dataset Configs
@@ -82,38 +85,7 @@ Columns:
82
  - `gt`
83
  - `id`
84
 
85
- ## Load from Hugging Face Hub
86
 
87
- ```python
88
- from datasets import load_dataset
89
-
90
- train_ds = load_dataset("your-name/FunQA", "standard", split="train")
91
- val_ds = load_dataset("your-name/FunQA", "standard", split="validation")
92
- test_ds = load_dataset("your-name/FunQA", "standard", split="test")
93
- mcqa_ds = load_dataset("your-name/FunQA", "mcqa", split="mcqa_test")
94
- ```
95
-
96
- `load_dataset(...)` loads and caches the annotation files used by the selected config/split. It does not automatically download unrelated archive files in the repository.
97
-
98
- ## Load from Local Files
99
-
100
- ```python
101
- from datasets import load_dataset
102
-
103
- standard_ds = load_dataset(
104
- "parquet",
105
- data_files={
106
- "train": "data/train.parquet",
107
- "validation": "data/validation.parquet",
108
- "test": "data/test.parquet",
109
- },
110
- )
111
-
112
- mcqa_ds = load_dataset(
113
- "parquet",
114
- data_files={"mcqa_test": "data/mcqa_test.parquet"},
115
- )
116
- ```
117
 
118
  ## Download Video Archives
119
 
@@ -125,7 +97,7 @@ Download one archive into the Hugging Face cache:
125
  from huggingface_hub import hf_hub_download
126
 
127
  zip_path = hf_hub_download(
128
- repo_id="your-name/FunQA",
129
  repo_type="dataset",
130
  filename="raw/test.zip",
131
  )
@@ -138,7 +110,7 @@ Download the whole repository snapshot:
138
  from huggingface_hub import snapshot_download
139
 
140
  repo_dir = snapshot_download(
141
- repo_id="your-name/FunQA",
142
  repo_type="dataset",
143
  )
144
  print(repo_dir)
@@ -150,7 +122,7 @@ If needed, download files to a specific local folder instead of only using the d
150
  from huggingface_hub import snapshot_download
151
 
152
  repo_dir = snapshot_download(
153
- repo_id="your-name/FunQA",
154
  repo_type="dataset",
155
  local_dir="funqa_local",
156
  )
 
20
  # Dataset for the paper: FunQA: Towards Surprising Video Comprehension
21
 
22
  Paper: https://huggingface.co/papers/2306.14899.
23
+ Github: https://github.com/Nicous20/FunQA.
24
+ - Supports using [LMMs-Eval](https://github.com/evolvinglmms-lab/lmms-eval) for evaluation.
25
+ - This dataset is also included in the OpenGVLab/MVBench benchmark.
26
 
27
+ ## Load from Hugging Face Hub
28
+
29
+ ```python
30
+ from datasets import load_dataset
31
+
32
+ train_ds = load_dataset("fesvhtr/FunQA", "standard", split="train")
33
+ val_ds = load_dataset("fesvhtr/FunQA", "standard", split="validation")
34
+ test_ds = load_dataset("fesvhtr/FunQA", "standard", split="test")
35
+ mcqa_ds = load_dataset("fesvhtr/FunQA", "mcqa", split="mcqa_test")
36
+ ```
37
+
38
+ ## Load from Local Files
39
+
40
+ ```python
41
+ from datasets import load_dataset
42
+
43
+ standard_ds = load_dataset(
44
+ "parquet",
45
+ data_files={
46
+ "train": "data/train.parquet",
47
+ "validation": "data/validation.parquet",
48
+ "test": "data/test.parquet",
49
+ },
50
+ )
51
+
52
+ mcqa_ds = load_dataset(
53
+ "parquet",
54
+ data_files={"mcqa_test": "data/mcqa_test.parquet"},
55
+ )
56
  ```
57
 
58
  ## Dataset Configs
 
85
  - `gt`
86
  - `id`
87
 
 
88
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
 
90
  ## Download Video Archives
91
 
 
97
  from huggingface_hub import hf_hub_download
98
 
99
  zip_path = hf_hub_download(
100
+ repo_id="fesvhtr/FunQA",
101
  repo_type="dataset",
102
  filename="raw/test.zip",
103
  )
 
110
  from huggingface_hub import snapshot_download
111
 
112
  repo_dir = snapshot_download(
113
+ repo_id="fesvhtr/FunQA",
114
  repo_type="dataset",
115
  )
116
  print(repo_dir)
 
122
  from huggingface_hub import snapshot_download
123
 
124
  repo_dir = snapshot_download(
125
+ repo_id="fesvhtr/FunQA",
126
  repo_type="dataset",
127
  local_dir="funqa_local",
128
  )