advaitgupta commited on
Commit
64490b8
·
verified ·
1 Parent(s): 19365d2

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. README.md +162 -0
  2. data/metadata.csv +0 -0
  3. data/videos/video_0.mp4 +3 -0
  4. data/videos/video_1001.mp4 +3 -0
  5. data/videos/video_10019.mp4 +3 -0
  6. data/videos/video_10033.mp4 +3 -0
  7. data/videos/video_10036.mp4 +3 -0
  8. data/videos/video_10049.mp4 +3 -0
  9. data/videos/video_10055.mp4 +3 -0
  10. data/videos/video_10056.mp4 +3 -0
  11. data/videos/video_1006.mp4 +3 -0
  12. data/videos/video_10065.mp4 +3 -0
  13. data/videos/video_10071.mp4 +3 -0
  14. data/videos/video_10078.mp4 +3 -0
  15. data/videos/video_1008.mp4 +3 -0
  16. data/videos/video_10119.mp4 +3 -0
  17. data/videos/video_10134.mp4 +3 -0
  18. data/videos/video_10174.mp4 +3 -0
  19. data/videos/video_10189.mp4 +3 -0
  20. data/videos/video_10203.mp4 +3 -0
  21. data/videos/video_10218.mp4 +3 -0
  22. data/videos/video_10221.mp4 +3 -0
  23. data/videos/video_10223.mp4 +3 -0
  24. data/videos/video_10230.mp4 +3 -0
  25. data/videos/video_10234.mp4 +3 -0
  26. data/videos/video_1024.mp4 +3 -0
  27. data/videos/video_10241.mp4 +3 -0
  28. data/videos/video_10245.mp4 +3 -0
  29. data/videos/video_10277.mp4 +3 -0
  30. data/videos/video_10281.mp4 +3 -0
  31. data/videos/video_10299.mp4 +3 -0
  32. data/videos/video_10302.mp4 +3 -0
  33. data/videos/video_10312.mp4 +3 -0
  34. data/videos/video_10325.mp4 +3 -0
  35. data/videos/video_1033.mp4 +3 -0
  36. data/videos/video_10335.mp4 +3 -0
  37. data/videos/video_10374.mp4 +3 -0
  38. data/videos/video_10377.mp4 +3 -0
  39. data/videos/video_10381.mp4 +3 -0
  40. data/videos/video_10385.mp4 +3 -0
  41. data/videos/video_10395.mp4 +3 -0
  42. data/videos/video_10398.mp4 +3 -0
  43. data/videos/video_10417.mp4 +3 -0
  44. data/videos/video_10426.mp4 +3 -0
  45. data/videos/video_10429.mp4 +3 -0
  46. data/videos/video_10431.mp4 +3 -0
  47. data/videos/video_10453.mp4 +3 -0
  48. data/videos/video_10455.mp4 +3 -0
  49. data/videos/video_10462.mp4 +3 -0
  50. data/videos/video_10478.mp4 +3 -0
README.md ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - video-classification
5
+ - question-answering
6
+ - visual-question-answering
7
+ tags:
8
+ - perception-test
9
+ - video-qa
10
+ - multiple-choice
11
+ - video-understanding
12
+ size_categories:
13
+ - 1K<n<10K
14
+ viewer: true
15
+ ---
16
+
17
+ # Perception Test MCQ Dataset
18
+
19
+ ## Dataset Description
20
+
21
+ This dataset contains **1000 video question-answering entries** from the Perception Test dataset. Each entry includes a video and a multiple-choice question about the video content, testing various aspects of video understanding including object tracking, action recognition, and temporal reasoning.
22
+
23
+ ## Dataset Structure
24
+
25
+ This dataset follows the VideoFolder format with the following structure:
26
+
27
+ ```
28
+ dataset/
29
+ ├── data/
30
+ │ ├── videos/
31
+ │ │ ├── video_XXX.mp4
32
+ │ │ └── ...
33
+ │ └── metadata.csv
34
+ └── README.md
35
+ ```
36
+
37
+ ### Metadata Format
38
+
39
+ The `metadata.csv` contains:
40
+ - `file_name`: Path to the video file (relative to split directory)
41
+ - `video_id`: Unique video identifier
42
+ - `question`: The question text
43
+ - `options`: JSON string containing multiple choice options
44
+ - `correct_answer`: The correct answer (available for 997/1000 entries)
45
+ - `question_type`: Type of question (typically "multiple choice")
46
+
47
+ ## Dataset Statistics
48
+
49
+ - **Total QA pairs**: 1000
50
+ - **Unique videos**: 1000
51
+ - **Average questions per video**: 1.0
52
+ - **Entries with answers**: 997/1000 (99.7%)
53
+ - **Video format**: MP4
54
+
55
+ ### Question Type Distribution
56
+
57
+ - `unknown`: 1000 questions
58
+
59
+ ## Usage
60
+
61
+ ### Loading the Dataset
62
+
63
+ ```python
64
+ from datasets import load_dataset
65
+ import json
66
+
67
+ # Load the dataset
68
+ dataset = load_dataset("advaitgupta/perception_test_mcq")
69
+
70
+ # Access the data split
71
+ data = dataset['data']
72
+
73
+ # Example: Get first sample
74
+ sample = data[0]
75
+ print("Question:", sample['question'])
76
+ print("Options:", json.loads(sample['options']))
77
+ print("Correct Answer:", sample['correct_answer'])
78
+ print("Video:", sample['file_name'])
79
+ ```
80
+
81
+ ### Processing Videos and Questions
82
+
83
+ ```python
84
+ import json
85
+ import cv2
86
+
87
+ # Load metadata
88
+ metadata = data.to_pandas()
89
+
90
+ # Process a video-question pair
91
+ sample = metadata.iloc[0]
92
+ video_path = sample['file_name']
93
+ question = sample['question']
94
+ options = json.loads(sample['options'])
95
+ correct_answer = sample['correct_answer']
96
+
97
+ print(f"Question: {question}")
98
+ for i, option in enumerate(options):
99
+ print(f"{i+1}. {option}")
100
+ print(f"Correct Answer: {correct_answer}")
101
+
102
+ # Load and process video
103
+ cap = cv2.VideoCapture(video_path)
104
+ # ... your video processing code
105
+ ```
106
+
107
+ ## Task Types
108
+
109
+ This dataset covers various video understanding tasks:
110
+
111
+ ### Object and Action Recognition
112
+ *"What ingredients did the person put in the bowl or on the plate?"*
113
+
114
+ ### Temporal Reasoning
115
+ *"How many objects were put in the backpack throughout the video?"*
116
+
117
+ ### Camera Motion Analysis
118
+ *"Is the camera moving or static?"*
119
+
120
+ ### Spatial Understanding
121
+ *"Where is the person?"*
122
+
123
+ ### Activity Recognition
124
+ *"What is the person preparing?"*
125
+
126
+ ## Data Quality
127
+
128
+ - All video files have been validated to exist
129
+ - Questions are human-annotated from the Perception Test dataset
130
+ - Multiple choice format ensures consistent evaluation
131
+ - Fair distribution across videos (avg 1.0 questions per video)
132
+ - Correct answers provided for evaluation
133
+
134
+ ## Example Entry
135
+
136
+ ```json
137
+ {
138
+ "file_name": "videos/video_10909.mp4",
139
+ "video_id": "video_10909",
140
+ "question": "Is the camera moving or static?",
141
+ "options": ["I don't know", "moving", "static or shaking"],
142
+ "correct_answer": "static or shaking",
143
+ "question_type": "multiple choice"
144
+ }
145
+ ```
146
+
147
+ ## Citation
148
+
149
+ If you use this dataset, please cite the original Perception Test paper:
150
+
151
+ ```bibtex
152
+ @article{perception-test-2022,
153
+ title={Perception Test: A Diagnostic Benchmark for Multimodal Video Models},
154
+ author={Pătrăucean, Viorica and others},
155
+ journal={arXiv preprint arXiv:2211.13775},
156
+ year={2022}
157
+ }
158
+ ```
159
+
160
+ ## License
161
+
162
+ This dataset is released under the Apache 2.0 license.
data/metadata.csv ADDED
The diff for this file is too large to render. See raw diff
 
data/videos/video_0.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26f67202ccb0eba7df06738abccd5ff13f6d65d14d4fb7911670f1277ebded13
3
+ size 7888940
data/videos/video_1001.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96b3ec9b4e71b01d0fc537dbc4572c24506d207a1de0ae8b9440c163cd29ffbb
3
+ size 8558593
data/videos/video_10019.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3cdf8b7d7e095116ee31ae6a2d663c9d1fe11eaa837fc8f02f366eb63ab16e3f
3
+ size 3385559
data/videos/video_10033.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1bbe9cc02c9207bb32757b7cdb65eee714091b0a920c2bf1f9dff17f16feef97
3
+ size 5437450
data/videos/video_10036.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21b30c5cbc4d5d986306a036cee2d738acca1cc0ce94f32f37dc5f72bf56359e
3
+ size 8273743
data/videos/video_10049.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51d0ddb6142732dabf044418eb3bcd30d4388b41d287e84f100692f8b0c46718
3
+ size 8423073
data/videos/video_10055.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9f1db1a895fb30469926eca1934d36be0c7fbacf73c963cc3941c92213d609e
3
+ size 5156562
data/videos/video_10056.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4da499321fc02c84b664fe23a5014a0909490428e51efee96670319f84bd583b
3
+ size 6398045
data/videos/video_1006.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00c91335700f792a571a3b0797defa7c7c027840299aa40097acb4e7fd2930cd
3
+ size 7425802
data/videos/video_10065.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f87570cc3e8a5969d9a65fed5df37d8b114435dd3dbf1eb3694d7dab4e214ce3
3
+ size 7706884
data/videos/video_10071.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37b97e469c2ea2f01aa85e7b5bd0cf0a6fe3ab8b7db37001c6d6e6425005539c
3
+ size 22061087
data/videos/video_10078.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d3ed68462356e77a5adcbcba311432251542b7a9fdea2cf256797a87f6bd5e0
3
+ size 8508705
data/videos/video_1008.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14735626a88d7ccd603dc889d6ea782923b3cf06cf429d3b124a632c33f25912
3
+ size 4757927
data/videos/video_10119.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d229d7451e2e431466bdedcd57a3885c9c492a6955161d0215b779f19d1537b
3
+ size 4595191
data/videos/video_10134.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1196933e10576556b6bad2ca47a1bc7c0a5b2e681162f14d7f157203966e0dfa
3
+ size 8083699
data/videos/video_10174.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:127039f73bce9d47e21c089714e3a79afe9e7fb6976fb2707b064d657826a2fa
3
+ size 20553469
data/videos/video_10189.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9830a00fc0ab4f128575207fbdc079e58d0b5b21927d87aa62f145bbc1887d1
3
+ size 1912048
data/videos/video_10203.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5f7154cfa4388cc0db72c4d5db95fcb6408b5c4c973444237bd5f014589e944
3
+ size 5830973
data/videos/video_10218.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ead422a2a5980492b4124f1eb669d9eb5d0f1f334a52bd8a2741a4c3d5839abd
3
+ size 7800036
data/videos/video_10221.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb5bdb44e8597e836c842561f487d7896f8adea1166ec8bec016ee3ae8bc849b
3
+ size 4018968
data/videos/video_10223.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a40d864bf8510cf7973b9c07db2f6c5f8d4a7c05639f2357514e88153ce51fc
3
+ size 8300184
data/videos/video_10230.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a47286581fa9028709bed4783e2932d7e9da59755bcfdda0fa9be9013e41653
3
+ size 8940047
data/videos/video_10234.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c01353e49de0bc3fb3cd264b85348a8d3be9b77f79a9e291291973d5fb71e37e
3
+ size 2801896
data/videos/video_1024.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:881ea8a71d9c4ddf1cb5e3f88cbbc4e3e5ab50d47c7e0aa0fa1833baeb3b98ca
3
+ size 4548250
data/videos/video_10241.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:44598339c81d5063f6beab0f858d319814b2b5ac333819eeab42610d02877bc4
3
+ size 6575393
data/videos/video_10245.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e444fa4f783227c6e782519539d858358c52c1d6a8fd8d27c502f2d9b175b1a
3
+ size 5763426
data/videos/video_10277.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2551d7eec60e45a4c717fd2bfb2bd848fe4375eceb5bad8d4a550e6ec59e6885
3
+ size 7188788
data/videos/video_10281.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:008ed21e2d21109e6018caab38cd5d95c6554aee122022658808b37568c2098b
3
+ size 3785152
data/videos/video_10299.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ceb2df60d56448592e7a9213e0a333683a2d5b148a5c31b93d76490943fb33ad
3
+ size 7173086
data/videos/video_10302.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:09ed4184d062c0f5ab451577179428be5e7c3c48263ea9d45efd91f2dee6e934
3
+ size 8693083
data/videos/video_10312.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:015a49b2dea1a6bda448a6acecacbb4ab5c6eca997f091a5dfce517f801a2a17
3
+ size 7607675
data/videos/video_10325.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:545210decdcf4495c4b80479e9543efa802c86fd15f9dd20acf5d39226eddd35
3
+ size 3197469
data/videos/video_1033.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fbb496ff0f55c20bc6ed866ba5ceea0059411781bd2bc43d8994416974ec721e
3
+ size 3542081
data/videos/video_10335.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:404e7bd35176588cea171313f89d9637cc909249c9e37cdf02f78ee90446af2b
3
+ size 6408793
data/videos/video_10374.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7753cef16d6d049c5d1e8396fbe6c1d4513b4ef5bccc5de4e3b7fa52a03d6c60
3
+ size 3960905
data/videos/video_10377.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87fab6f7d8ba7d30049e8c61bf449208977d5130f1365d54025a3f9ccfaa3a6b
3
+ size 7647911
data/videos/video_10381.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3eccdc41e12ba60a26e016e35b36c47ee35fb8319981ab2cb34ab9471d4561d5
3
+ size 6141303
data/videos/video_10385.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82c61aaac477374106f409bf4483f9ee6759896c6b3fc047452b2e0bd94e5644
3
+ size 8748160
data/videos/video_10395.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0aaccfcfaf100860d4b6d35931567196522c0ef8aea25acd5c2b2f370c22f83
3
+ size 7296825
data/videos/video_10398.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a617db83e1b2515d84161e0ed7044aa02cb437952075f080ebeb51351f411122
3
+ size 3677999
data/videos/video_10417.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a7aba32b67027ee455fcff12d5112c5b7b1570f7505a1061a4c15017e62b6835
3
+ size 8621410
data/videos/video_10426.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9227ff954841f6468abeeae048e21fe6104a62a00ae77ec2c8336d3345c64c28
3
+ size 2989057
data/videos/video_10429.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:10c68c10c930af2ad2456b233aca4adc3e8358c5e7e74522f14b11f59282deea
3
+ size 7122158
data/videos/video_10431.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:351cae1c94a421bc3c714dae8cd884a7bfeb3f188875385deebda171796b331e
3
+ size 5456495
data/videos/video_10453.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ef23b9c2d1dbecd1758a6700b80e1d8ff09d61ccf66a76f85aba8bf0d51279c
3
+ size 5320998
data/videos/video_10455.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:160ebc192df173ab78d872f83bb935e2a4c86e11f4de70719276081cfb8638e9
3
+ size 5674305
data/videos/video_10462.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:442998671818d286056d52067a5ad52b85b58a7b498060f9f3841546544d0cb2
3
+ size 8839068
data/videos/video_10478.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1465a793fb16c50c419ff6e49189267b42dff07bbf431bf031b57cec40d73cd8
3
+ size 3588040