KHUjongseo commited on
Commit
3fc6c34
·
verified ·
1 Parent(s): f22285b

Upload folder using huggingface_hub

Browse files
direction_obj_in_a_close_ended.json CHANGED
@@ -43,10 +43,10 @@
43
  "category": "up",
44
  "question": "In which direction is the object moving in this video?",
45
  "options": [
46
- "The sophia is moving up",
47
- "The sophia is moving down",
48
- "The sophia is moving left",
49
- "The sophia is moving right"
50
  ],
51
  "answer": "A",
52
  "id": 3
@@ -238,10 +238,10 @@
238
  "category": "right",
239
  "question": "In which direction is the object moving in this video?",
240
  "options": [
241
- "The sophia is moving up",
242
- "The sophia is moving down",
243
- "The sophia is moving left",
244
- "The sophia is moving right"
245
  ],
246
  "answer": "D",
247
  "id": 18
@@ -342,10 +342,10 @@
342
  "category": "down",
343
  "question": "In which direction is the object moving in this video?",
344
  "options": [
345
- "The sophia is moving up",
346
- "The sophia is moving down",
347
- "The sophia is moving left",
348
- "The sophia is moving right"
349
  ],
350
  "answer": "B",
351
  "id": 26
@@ -381,10 +381,10 @@
381
  "category": "left",
382
  "question": "In which direction is the object moving in this video?",
383
  "options": [
384
- "The sophia is moving up",
385
- "The sophia is moving down",
386
- "The sophia is moving left",
387
- "The sophia is moving right"
388
  ],
389
  "answer": "C",
390
  "id": 29
 
43
  "category": "up",
44
  "question": "In which direction is the object moving in this video?",
45
  "options": [
46
+ "The person is moving up",
47
+ "The person is moving down",
48
+ "The person is moving left",
49
+ "The person is moving right"
50
  ],
51
  "answer": "A",
52
  "id": 3
 
238
  "category": "right",
239
  "question": "In which direction is the object moving in this video?",
240
  "options": [
241
+ "The person is moving up",
242
+ "The person is moving down",
243
+ "The person is moving left",
244
+ "The person is moving right"
245
  ],
246
  "answer": "D",
247
  "id": 18
 
342
  "category": "down",
343
  "question": "In which direction is the object moving in this video?",
344
  "options": [
345
+ "The person is moving up",
346
+ "The person is moving down",
347
+ "The person is moving left",
348
+ "The person is moving right"
349
  ],
350
  "answer": "B",
351
  "id": 26
 
381
  "category": "left",
382
  "question": "In which direction is the object moving in this video?",
383
  "options": [
384
+ "The person is moving up",
385
+ "The person is moving down",
386
+ "The person is moving left",
387
+ "The person is moving right"
388
  ],
389
  "answer": "C",
390
  "id": 29
direction_obj_in_a_open_ended.json CHANGED
@@ -24,7 +24,7 @@
24
  "video": "up/sophia.mp4",
25
  "category": "up",
26
  "question": "In which direction is the object moving in this video?",
27
- "answer": "The sophia is moving up",
28
  "id": 3
29
  },
30
  {
@@ -129,7 +129,7 @@
129
  "video": "right/sophia.mp4",
130
  "category": "right",
131
  "question": "In which direction is the object moving in this video?",
132
- "answer": "The sophia is moving right",
133
  "id": 18
134
  },
135
  {
@@ -185,7 +185,7 @@
185
  "video": "down/sophia.mp4",
186
  "category": "down",
187
  "question": "In which direction is the object moving in this video?",
188
- "answer": "The sophia is moving down",
189
  "id": 26
190
  },
191
  {
@@ -206,7 +206,7 @@
206
  "video": "left/sophia.mp4",
207
  "category": "left",
208
  "question": "In which direction is the object moving in this video?",
209
- "answer": "The sophia is moving left",
210
  "id": 29
211
  },
212
  {
 
24
  "video": "up/sophia.mp4",
25
  "category": "up",
26
  "question": "In which direction is the object moving in this video?",
27
+ "answer": "The person is moving up",
28
  "id": 3
29
  },
30
  {
 
129
  "video": "right/sophia.mp4",
130
  "category": "right",
131
  "question": "In which direction is the object moving in this video?",
132
+ "answer": "The person is moving right",
133
  "id": 18
134
  },
135
  {
 
185
  "video": "down/sophia.mp4",
186
  "category": "down",
187
  "question": "In which direction is the object moving in this video?",
188
+ "answer": "The person is moving down",
189
  "id": 26
190
  },
191
  {
 
206
  "video": "left/sophia.mp4",
207
  "category": "left",
208
  "question": "In which direction is the object moving in this video?",
209
+ "answer": "The person is moving left",
210
  "id": 29
211
  },
212
  {
direction_obj_in_q_close_ended.json CHANGED
@@ -197,7 +197,7 @@
197
  {
198
  "video": "left/sophia.mp4",
199
  "category": "left",
200
- "question": "In which direction is the sophia moving in this video?",
201
  "options": [
202
  "Up",
203
  "Down",
@@ -392,7 +392,7 @@
392
  {
393
  "video": "up/sophia.mp4",
394
  "category": "up",
395
- "question": "In which direction is the sophia moving in this video?",
396
  "options": [
397
  "Up",
398
  "Down",
@@ -496,7 +496,7 @@
496
  {
497
  "video": "right/sophia.mp4",
498
  "category": "right",
499
- "question": "In which direction is the sophia moving in this video?",
500
  "options": [
501
  "Up",
502
  "Down",
@@ -665,7 +665,7 @@
665
  {
666
  "video": "down/sophia.mp4",
667
  "category": "down",
668
- "question": "In which direction is the sophia moving in this video?",
669
  "options": [
670
  "Up",
671
  "Down",
 
197
  {
198
  "video": "left/sophia.mp4",
199
  "category": "left",
200
+ "question": "In which direction is the person moving in this video?",
201
  "options": [
202
  "Up",
203
  "Down",
 
392
  {
393
  "video": "up/sophia.mp4",
394
  "category": "up",
395
+ "question": "In which direction is the person moving in this video?",
396
  "options": [
397
  "Up",
398
  "Down",
 
496
  {
497
  "video": "right/sophia.mp4",
498
  "category": "right",
499
+ "question": "In which direction is the person moving in this video?",
500
  "options": [
501
  "Up",
502
  "Down",
 
665
  {
666
  "video": "down/sophia.mp4",
667
  "category": "down",
668
+ "question": "In which direction is the person moving in this video?",
669
  "options": [
670
  "Up",
671
  "Down",
direction_obj_in_q_open_ended.json CHANGED
@@ -107,7 +107,7 @@
107
  {
108
  "video": "left/sophia.mp4",
109
  "category": "left",
110
- "question": "In which direction is the sophia moving in this video?",
111
  "answer": "Left",
112
  "id": 15
113
  },
@@ -212,7 +212,7 @@
212
  {
213
  "video": "up/sophia.mp4",
214
  "category": "up",
215
- "question": "In which direction is the sophia moving in this video?",
216
  "answer": "Up",
217
  "id": 30
218
  },
@@ -268,7 +268,7 @@
268
  {
269
  "video": "right/sophia.mp4",
270
  "category": "right",
271
- "question": "In which direction is the sophia moving in this video?",
272
  "answer": "Right",
273
  "id": 38
274
  },
@@ -359,7 +359,7 @@
359
  {
360
  "video": "down/sophia.mp4",
361
  "category": "down",
362
- "question": "In which direction is the sophia moving in this video?",
363
  "answer": "Down",
364
  "id": 51
365
  }
 
107
  {
108
  "video": "left/sophia.mp4",
109
  "category": "left",
110
+ "question": "In which direction is the person moving in this video?",
111
  "answer": "Left",
112
  "id": 15
113
  },
 
212
  {
213
  "video": "up/sophia.mp4",
214
  "category": "up",
215
+ "question": "In which direction is the person moving in this video?",
216
  "answer": "Up",
217
  "id": 30
218
  },
 
268
  {
269
  "video": "right/sophia.mp4",
270
  "category": "right",
271
+ "question": "In which direction is the person moving in this video?",
272
  "answer": "Right",
273
  "id": 38
274
  },
 
359
  {
360
  "video": "down/sophia.mp4",
361
  "category": "down",
362
+ "question": "In which direction is the person moving in this video?",
363
  "answer": "Down",
364
  "id": 51
365
  }
direction_obj_in_qa_close_ended.json CHANGED
@@ -2,12 +2,12 @@
2
  {
3
  "video": "right/sophia.mp4",
4
  "category": "right",
5
- "question": "In which direction is the sophia moving in this video?",
6
  "options": [
7
- "The sophia is moving up",
8
- "The sophia is moving down",
9
- "The sophia is moving left",
10
- "The sophia is moving right"
11
  ],
12
  "answer": "D",
13
  "id": 0
@@ -54,12 +54,12 @@
54
  {
55
  "video": "left/sophia.mp4",
56
  "category": "left",
57
- "question": "In which direction is the sophia moving in this video?",
58
  "options": [
59
- "The sophia is moving up",
60
- "The sophia is moving down",
61
- "The sophia is moving left",
62
- "The sophia is moving right"
63
  ],
64
  "answer": "C",
65
  "id": 4
@@ -67,12 +67,12 @@
67
  {
68
  "video": "down/sophia.mp4",
69
  "category": "down",
70
- "question": "In which direction is the sophia moving in this video?",
71
  "options": [
72
- "The sophia is moving up",
73
- "The sophia is moving down",
74
- "The sophia is moving left",
75
- "The sophia is moving right"
76
  ],
77
  "answer": "B",
78
  "id": 5
@@ -574,12 +574,12 @@
574
  {
575
  "video": "up/sophia.mp4",
576
  "category": "up",
577
- "question": "In which direction is the sophia moving in this video?",
578
  "options": [
579
- "The sophia is moving up",
580
- "The sophia is moving down",
581
- "The sophia is moving left",
582
- "The sophia is moving right"
583
  ],
584
  "answer": "A",
585
  "id": 44
 
2
  {
3
  "video": "right/sophia.mp4",
4
  "category": "right",
5
+ "question": "In which direction is the person moving in this video?",
6
  "options": [
7
+ "The person is moving up",
8
+ "The person is moving down",
9
+ "The person is moving left",
10
+ "The person is moving right"
11
  ],
12
  "answer": "D",
13
  "id": 0
 
54
  {
55
  "video": "left/sophia.mp4",
56
  "category": "left",
57
+ "question": "In which direction is the person moving in this video?",
58
  "options": [
59
+ "The person is moving up",
60
+ "The person is moving down",
61
+ "The person is moving left",
62
+ "The person is moving right"
63
  ],
64
  "answer": "C",
65
  "id": 4
 
67
  {
68
  "video": "down/sophia.mp4",
69
  "category": "down",
70
+ "question": "In which direction is the person moving in this video?",
71
  "options": [
72
+ "The person is moving up",
73
+ "The person is moving down",
74
+ "The person is moving left",
75
+ "The person is moving right"
76
  ],
77
  "answer": "B",
78
  "id": 5
 
574
  {
575
  "video": "up/sophia.mp4",
576
  "category": "up",
577
+ "question": "In which direction is the person moving in this video?",
578
  "options": [
579
+ "The person is moving up",
580
+ "The person is moving down",
581
+ "The person is moving left",
582
+ "The person is moving right"
583
  ],
584
  "answer": "A",
585
  "id": 44
direction_obj_in_qa_open_ended.json CHANGED
@@ -2,8 +2,8 @@
2
  {
3
  "video": "right/sophia.mp4",
4
  "category": "right",
5
- "question": "In which direction is the sophia moving in this video?",
6
- "answer": "The sophia is moving right",
7
  "id": 0
8
  },
9
  {
@@ -30,15 +30,15 @@
30
  {
31
  "video": "left/sophia.mp4",
32
  "category": "left",
33
- "question": "In which direction is the sophia moving in this video?",
34
- "answer": "The sophia is moving left",
35
  "id": 4
36
  },
37
  {
38
  "video": "down/sophia.mp4",
39
  "category": "down",
40
- "question": "In which direction is the sophia moving in this video?",
41
- "answer": "The sophia is moving down",
42
  "id": 5
43
  },
44
  {
@@ -310,8 +310,8 @@
310
  {
311
  "video": "up/sophia.mp4",
312
  "category": "up",
313
- "question": "In which direction is the sophia moving in this video?",
314
- "answer": "The sophia is moving up",
315
  "id": 44
316
  },
317
  {
 
2
  {
3
  "video": "right/sophia.mp4",
4
  "category": "right",
5
+ "question": "In which direction is the person moving in this video?",
6
+ "answer": "The person is moving right",
7
  "id": 0
8
  },
9
  {
 
30
  {
31
  "video": "left/sophia.mp4",
32
  "category": "left",
33
+ "question": "In which direction is the person moving in this video?",
34
+ "answer": "The person is moving left",
35
  "id": 4
36
  },
37
  {
38
  "video": "down/sophia.mp4",
39
  "category": "down",
40
+ "question": "In which direction is the person moving in this video?",
41
+ "answer": "The person is moving down",
42
  "id": 5
43
  },
44
  {
 
310
  {
311
  "video": "up/sophia.mp4",
312
  "category": "up",
313
+ "question": "In which direction is the person moving in this video?",
314
+ "answer": "The person is moving up",
315
  "id": 44
316
  },
317
  {
makejson.py CHANGED
@@ -40,9 +40,15 @@ for cls in DIRECTION_CLASSES:
40
  videos = sorted(glob.glob(os.path.join(cls_dir, "*.mp4")))
41
  print(f"{cls}: {len(videos)} videos")
42
 
 
 
 
 
 
43
  for video_path in videos:
44
  filename = os.path.basename(video_path)
45
- obj_name = os.path.splitext(filename)[0] # car.mp4 → car
 
46
  video_rel = f"{cls}/{filename}"
47
 
48
  all_samples.append({
 
40
  videos = sorted(glob.glob(os.path.join(cls_dir, "*.mp4")))
41
  print(f"{cls}: {len(videos)} videos")
42
 
43
+ # 고유명사 → 일반명사 매핑
44
+ OBJ_NAME_MAP = {
45
+ "sophia": "person",
46
+ }
47
+
48
  for video_path in videos:
49
  filename = os.path.basename(video_path)
50
+ raw_name = os.path.splitext(filename)[0] # car.mp4 → car
51
+ obj_name = OBJ_NAME_MAP.get(raw_name, raw_name) # sophia → person
52
  video_rel = f"{cls}/{filename}"
53
 
54
  all_samples.append({
object_recognition_close_ended.json CHANGED
@@ -44,7 +44,7 @@
44
  "question": "What is the object moving in this video?",
45
  "options": [
46
  "Basketball",
47
- "Sophia",
48
  "Horse",
49
  "Laptop"
50
  ],
@@ -111,7 +111,7 @@
111
  "Basketball",
112
  "Laptop",
113
  "Sphere",
114
- "Sofa"
115
  ],
116
  "answer": "B",
117
  "id": 8
@@ -123,7 +123,7 @@
123
  "options": [
124
  "Bed",
125
  "Horse",
126
- "Sophia",
127
  "Basketball"
128
  ],
129
  "answer": "C",
@@ -134,7 +134,7 @@
134
  "category": "up",
135
  "question": "What is the object moving in this video?",
136
  "options": [
137
- "Sophia",
138
  "Duck",
139
  "Bicycle",
140
  "Chair"
@@ -173,7 +173,7 @@
173
  "category": "left",
174
  "question": "What is the object moving in this video?",
175
  "options": [
176
- "Sophia",
177
  "Horse",
178
  "Bench",
179
  "Car"
@@ -188,7 +188,7 @@
188
  "options": [
189
  "Basketball",
190
  "Horse",
191
- "Sofa",
192
  "Car"
193
  ],
194
  "answer": "D",
@@ -201,7 +201,7 @@
201
  "options": [
202
  "Horse",
203
  "Bench",
204
- "Sophia",
205
  "Car"
206
  ],
207
  "answer": "C",
@@ -226,8 +226,8 @@
226
  "question": "What is the object moving in this video?",
227
  "options": [
228
  "Laptop",
 
229
  "Sofa",
230
- "Sophia",
231
  "Dog"
232
  ],
233
  "answer": "D",
@@ -238,7 +238,7 @@
238
  "category": "right",
239
  "question": "What is the object moving in this video?",
240
  "options": [
241
- "Sophia",
242
  "Bench",
243
  "Sofa",
244
  "Bed"
@@ -253,7 +253,7 @@
253
  "options": [
254
  "Bench",
255
  "Sphere",
256
- "Sophia",
257
  "Horse"
258
  ],
259
  "answer": "B",
@@ -292,7 +292,7 @@
292
  "options": [
293
  "Bench",
294
  "Basketball",
295
- "Sophia",
296
  "Chair"
297
  ],
298
  "answer": "C",
@@ -342,7 +342,7 @@
342
  "category": "left",
343
  "question": "What is the object moving in this video?",
344
  "options": [
345
- "Sophia",
346
  "Bicycle",
347
  "Dog",
348
  "Chair"
@@ -358,7 +358,7 @@
358
  "Bench",
359
  "Bicycle",
360
  "Horse",
361
- "Sofa"
362
  ],
363
  "answer": "C",
364
  "id": 27
@@ -459,7 +459,7 @@
459
  "category": "up",
460
  "question": "What is the object moving in this video?",
461
  "options": [
462
- "Sofa",
463
  "Laptop",
464
  "Duck",
465
  "Bicycle"
@@ -499,7 +499,7 @@
499
  "question": "What is the object moving in this video?",
500
  "options": [
501
  "Bed",
502
- "Sophia",
503
  "Chair",
504
  "Bench"
505
  ],
@@ -526,7 +526,7 @@
526
  "options": [
527
  "Bench",
528
  "Duck",
529
- "Sophia",
530
  "Dog"
531
  ],
532
  "answer": "B",
@@ -550,7 +550,7 @@
550
  "category": "left",
551
  "question": "What is the object moving in this video?",
552
  "options": [
553
- "Sophia",
554
  "Sofa",
555
  "Sphere",
556
  "Duck"
@@ -603,7 +603,7 @@
603
  "question": "What is the object moving in this video?",
604
  "options": [
605
  "Bed",
606
- "Sofa",
607
  "Duck",
608
  "Horse"
609
  ],
@@ -657,7 +657,7 @@
657
  "Duck",
658
  "Laptop",
659
  "Horse",
660
- "Sophia"
661
  ],
662
  "answer": "A",
663
  "id": 50
 
44
  "question": "What is the object moving in this video?",
45
  "options": [
46
  "Basketball",
47
+ "Sofa",
48
  "Horse",
49
  "Laptop"
50
  ],
 
111
  "Basketball",
112
  "Laptop",
113
  "Sphere",
114
+ "Person"
115
  ],
116
  "answer": "B",
117
  "id": 8
 
123
  "options": [
124
  "Bed",
125
  "Horse",
126
+ "Person",
127
  "Basketball"
128
  ],
129
  "answer": "C",
 
134
  "category": "up",
135
  "question": "What is the object moving in this video?",
136
  "options": [
137
+ "Sofa",
138
  "Duck",
139
  "Bicycle",
140
  "Chair"
 
173
  "category": "left",
174
  "question": "What is the object moving in this video?",
175
  "options": [
176
+ "Sofa",
177
  "Horse",
178
  "Bench",
179
  "Car"
 
188
  "options": [
189
  "Basketball",
190
  "Horse",
191
+ "Person",
192
  "Car"
193
  ],
194
  "answer": "D",
 
201
  "options": [
202
  "Horse",
203
  "Bench",
204
+ "Person",
205
  "Car"
206
  ],
207
  "answer": "C",
 
226
  "question": "What is the object moving in this video?",
227
  "options": [
228
  "Laptop",
229
+ "Person",
230
  "Sofa",
 
231
  "Dog"
232
  ],
233
  "answer": "D",
 
238
  "category": "right",
239
  "question": "What is the object moving in this video?",
240
  "options": [
241
+ "Person",
242
  "Bench",
243
  "Sofa",
244
  "Bed"
 
253
  "options": [
254
  "Bench",
255
  "Sphere",
256
+ "Sofa",
257
  "Horse"
258
  ],
259
  "answer": "B",
 
292
  "options": [
293
  "Bench",
294
  "Basketball",
295
+ "Person",
296
  "Chair"
297
  ],
298
  "answer": "C",
 
342
  "category": "left",
343
  "question": "What is the object moving in this video?",
344
  "options": [
345
+ "Sofa",
346
  "Bicycle",
347
  "Dog",
348
  "Chair"
 
358
  "Bench",
359
  "Bicycle",
360
  "Horse",
361
+ "Person"
362
  ],
363
  "answer": "C",
364
  "id": 27
 
459
  "category": "up",
460
  "question": "What is the object moving in this video?",
461
  "options": [
462
+ "Person",
463
  "Laptop",
464
  "Duck",
465
  "Bicycle"
 
499
  "question": "What is the object moving in this video?",
500
  "options": [
501
  "Bed",
502
+ "Sofa",
503
  "Chair",
504
  "Bench"
505
  ],
 
526
  "options": [
527
  "Bench",
528
  "Duck",
529
+ "Sofa",
530
  "Dog"
531
  ],
532
  "answer": "B",
 
550
  "category": "left",
551
  "question": "What is the object moving in this video?",
552
  "options": [
553
+ "Person",
554
  "Sofa",
555
  "Sphere",
556
  "Duck"
 
603
  "question": "What is the object moving in this video?",
604
  "options": [
605
  "Bed",
606
+ "Person",
607
  "Duck",
608
  "Horse"
609
  ],
 
657
  "Duck",
658
  "Laptop",
659
  "Horse",
660
+ "Sofa"
661
  ],
662
  "answer": "A",
663
  "id": 50
object_recognition_open_ended.json CHANGED
@@ -66,7 +66,7 @@
66
  "video": "up/sophia.mp4",
67
  "category": "up",
68
  "question": "What is the object moving in this video?",
69
- "answer": "Sophia",
70
  "id": 9
71
  },
72
  {
@@ -108,7 +108,7 @@
108
  "video": "down/sophia.mp4",
109
  "category": "down",
110
  "question": "What is the object moving in this video?",
111
- "answer": "Sophia",
112
  "id": 15
113
  },
114
  {
@@ -157,7 +157,7 @@
157
  "video": "right/sophia.mp4",
158
  "category": "right",
159
  "question": "What is the object moving in this video?",
160
- "answer": "Sophia",
161
  "id": 22
162
  },
163
  {
@@ -297,7 +297,7 @@
297
  "video": "left/sophia.mp4",
298
  "category": "left",
299
  "question": "What is the object moving in this video?",
300
- "answer": "Sophia",
301
  "id": 42
302
  },
303
  {
 
66
  "video": "up/sophia.mp4",
67
  "category": "up",
68
  "question": "What is the object moving in this video?",
69
+ "answer": "Person",
70
  "id": 9
71
  },
72
  {
 
108
  "video": "down/sophia.mp4",
109
  "category": "down",
110
  "question": "What is the object moving in this video?",
111
+ "answer": "Person",
112
  "id": 15
113
  },
114
  {
 
157
  "video": "right/sophia.mp4",
158
  "category": "right",
159
  "question": "What is the object moving in this video?",
160
+ "answer": "Person",
161
  "id": 22
162
  },
163
  {
 
297
  "video": "left/sophia.mp4",
298
  "category": "left",
299
  "question": "What is the object moving in this video?",
300
+ "answer": "Person",
301
  "id": 42
302
  },
303
  {