memray commited on
Commit
6c0241a
·
verified ·
1 Parent(s): a72c96b

Add files using upload-large-folder tool

Browse files
README.md ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - visual-question-answering
5
+ - video-classification
6
+ language:
7
+ - en
8
+ viewer: false
9
+ configs:
10
+ - config_name: splits
11
+ data_files:
12
+ - split: eval
13
+ path:
14
+ - "video_tasks"
15
+ - "image_tasks"
16
+ ---
17
+
18
+ # MMEB-V2 (Massive Multimodal Embedding Benchmark)
19
+
20
+ Building upon on our original [**MMEB**](https://arxiv.org/abs/2410.05160), **MMEB-V2** expands the evaluation scope to include five new tasks: four video-based tasks — Video Retrieval, Moment Retrieval, Video Classification, and Video Question Answering — and one task focused on visual documents, Visual Document Retrieval. This comprehensive suite enables robust evaluation of multimodal embedding models across static, temporal, and structured visual data settings.
21
+
22
+ **This Hugging Face repository contains only the raw image and video files used in MMEB-V2, which need to be downloaded in advance.**
23
+ The test data for each task in MMEB-V2 is available [here](https://huggingface.co/VLM2Vec) and will be automatically downloaded and used by our code. More details on how to set it up are provided in the following sections.
24
+
25
+ |[**Github**](https://github.com/TIGER-AI-Lab/VLM2Vec) | [**🏆Leaderboard**](https://huggingface.co/spaces/TIGER-Lab/MMEB) | [**📖MMEB-V2/VLM2Vec-V2 Paper (TBA)**](https://arxiv.org/abs/2410.05160) | | [**📖MMEB-V1/VLM2Vec-V1 Paper**](https://arxiv.org/abs/2410.05160) |
26
+
27
+
28
+ ## 🚀 What's New
29
+ - **\[2025.05\]** Initial release of MMEB-V2.
30
+
31
+
32
+ ## Dataset Overview
33
+
34
+ We present an overview of the MMEB-V2 dataset below:
35
+ <img width="900" alt="abs" src="overview.png">
36
+
37
+
38
+ ## Dataset Structure
39
+
40
+ The directory structure of this Hugging Face repository is shown below.
41
+ For video tasks, we provide both sampled frames and raw videos (the latter will be released later). For image tasks, we provide the raw images.
42
+ Files from each meta-task are zipped together, resulting in six files. For example, ``video_cls.tar.gz`` contains the sampled frames for the video classification task.
43
+
44
+ ```
45
+
46
+ → video-tasks/
47
+ ├── frames/
48
+ │ ├── video_cls.tar.gz
49
+ │ ├── video_qa.tar.gz
50
+ │ ├── video_ret.tar.gz
51
+ │ └── video_mret.tar.gz
52
+ ├── raw videos/ (To be released)
53
+
54
+ → image-tasks/
55
+ ├── mmeb_v1.tar.gz
56
+ └── visdoc.tar.gz
57
+
58
+ ```
59
+
60
+ After downloading and unzipping these files locally, you can organize them as shown below. (You may choose to use ``Git LFS`` or ``wget`` for downloading.)
61
+ Then, simply specify the correct file path in the configuration file used by your code.
62
+
63
+ ```
64
+
65
+ → MMEB
66
+ ├── video-tasks/
67
+ │ └── frames/
68
+ │ ├── video_cls/
69
+ │ │ ├── UCF101/
70
+ │ │ │ └── video_1/ # video ID
71
+ │ │ │ ├── frame1.png # frame from video_1
72
+ │ │ │ ├── frame2.png
73
+ │ │ │ └── ...
74
+ │ │ ├── HMDB51/
75
+ │ │ ├── Breakfast/
76
+ │ │ └── ... # other datasets from video classification category
77
+ │ ├── video_qa/
78
+ │ │ └── ... # video QA datasets
79
+ │ ├── video_ret/
80
+ │ │ └── ... # video retrieval datasets
81
+ │ └── video_mret/
82
+ │ └── ... # moment retrieval datasets
83
+ ├── image-tasks/
84
+ │ ├── mmeb_v1/
85
+ │ │ ├── OK-VQA/
86
+ │ │ │ ├── image1.png
87
+ │ │ │ ├── image2.png
88
+ │ │ │ └── ...
89
+ │ │ ├── ImageNet-1K/
90
+ │ │ └── ... # other datasets from MMEB-V1 category
91
+ │ └── visdoc/
92
+ │ └── ... # visual document retrieval datasets
93
+
94
+
95
+ ```
dataset_setup.py ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import subprocess
3
+
4
+ def extract_video_tasks():
5
+ root = os.path.join('video_tasks', 'frames')
6
+ all_bundles = list(filter(lambda x: '.tar.gz' in x, os.listdir(root)))
7
+ for task in ['cls', 'qa', 'ret', 'mret']:
8
+ print(f'Extracting {task} task ... ...')
9
+ output_dir = os.path.join(root, f'video_{task}')
10
+ os.makedirs(output_dir, exist_ok=True)
11
+ bundles = sorted(list(filter(lambda x: task in x, all_bundles)))
12
+ bundles = [os.path.join(root, x) for x in bundles]
13
+ if len(bundles) > 1:
14
+ cat = subprocess.Popen(['cat'] + bundles, stdout=subprocess.PIPE)
15
+ cmd = ['tar', '-xzf', '-', '-C', output_dir]
16
+ tar = subprocess.Popen(cmd, stdin=cat.stdout)
17
+ cat_return_code = cat.wait()
18
+ tar_return_code = tar.wait()
19
+ elif len(bundles) == 1:
20
+ tar = subprocess.run(['tar', '-xzf', bundles[0], '-C', output_dir])
21
+ else:
22
+ raise ValueError(f'Unexpected size: {len(bundles)}')
23
+ print('All video tasks completed!')
24
+
25
+ def extract_image_tasks():
26
+ root = 'image_tasks'
27
+ for task in ['mmeb_v1', 'visdoc']:
28
+ print(f'Extracting {task} task ... ...')
29
+ tar = subprocess.run(['tar', '-xzf', os.path.join(root, f'{task}.tar.gz'), '-C', root])
30
+ print('All image tasks completed!')
31
+
32
+ def main():
33
+ extract_image_tasks()
34
+ extract_video_tasks()
35
+
36
+ if __name__ == '__main__':
37
+ main()
image-tasks/mmeb_v1.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:feeaf4a8319cba587b982ec976fba225d13e134a3217e1cad5c251e64299346a
3
+ size 7031608592
overview.png ADDED

Git LFS Details

  • SHA256: 80e1cd3d78d9a2e5523edc1dbf8ca37cfac20a6ed5772e5a198ee920aa114774
  • Pointer size: 131 Bytes
  • Size of remote file: 260 kB
video-tasks/frames/video_cls.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0dabbbc7a080efa29389b0755d03813daa35d4b0ef84876a8dbc242cac3f34d3
3
+ size 9615015554
video-tasks/frames/video_mret.tar.gz-00 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c930b7c607006207da80398ec68a452c82785595dc534b318ceca30c6813c5d1
3
+ size 10737418240
video-tasks/frames/video_mret.tar.gz-01 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:434dded26908aab573d196edf3a724d677d2d00cd05b603b1448e3f73b9f52bf
3
+ size 10737418240
video-tasks/frames/video_mret.tar.gz-02 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1a14be2b34b11d1565519736ff1d8169e2d4146a21cd6399c84238dbc14e7c9
3
+ size 10737418240
video-tasks/frames/video_mret.tar.gz-03 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93a4e3abd5651849a897386ea234f2b75db9d7371b3f92e64f33c9d64f34e4bd
3
+ size 10737418240
video-tasks/frames/video_mret.tar.gz-04 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7d541ec69c0e3eb2d83d6ae482b3e141c7bafa722db932046fd5fd1a3b744fc
3
+ size 10737418240
video-tasks/frames/video_mret.tar.gz-05 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1cce590f7e2d23ebce83c7949911c816498b03952529436e2ea5add31b5fcf1
3
+ size 10737418240
video-tasks/frames/video_mret.tar.gz-06 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d3c7dae7ce69f11256a634157a23870cdb5a1cd8c1408899d812d31c1f3f279
3
+ size 10737418240
video-tasks/frames/video_mret.tar.gz-07 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:64166a2ff97e79b1a4f2837d9de9d44cc1bc3c7b66afb2a4154a5b53c024387f
3
+ size 10737418240
video-tasks/frames/video_mret.tar.gz-08 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c47cdae6d29337111e4b9a5f27afa593a6fde7c8bd1fa74862ed061dc3661e0a
3
+ size 2708521729
video-tasks/frames/video_qa.tar.gz-00 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:320d02436451b3b5e6bf466a906eaf3ca68467b8a14c780e2b03e70f9c9a8443
3
+ size 10737418240
video-tasks/frames/video_qa.tar.gz-01 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c9fc4d53359001cadb2fe6d54eceb6de023aa76dbb3623f4c2a1ef989880421
3
+ size 10737418240
video-tasks/frames/video_qa.tar.gz-02 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:725dea4e294d1fdda32541150d4f290b94a430a43b0849fde0d6c894c10b263e
3
+ size 10737418240
video-tasks/frames/video_qa.tar.gz-03 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11a82196eaca0e722924a784a7b7d9d1534e5a92f5057839a233962e15470f0c
3
+ size 10737418240
video-tasks/frames/video_qa.tar.gz-04 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84e1d62c70965d3c26c66ce823e8327fab8b3b6e08ac34e3998aabf82e16345f
3
+ size 8772447601
video-tasks/frames/video_ret.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82b86db3c89339c9e85c4e017a3935b8f4c9689523c6178f249108dfffed28a8
3
+ size 7801879510
visdoc-tasks/visdoc-tasks.tar.gz-00 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a0f4283a254f272c4e53b556c61d30ed376c3887d4705029d19ae5d738b77d1
3
+ size 10737418240
visdoc-tasks/visdoc-tasks.tar.gz-01 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e8c49c9c9816453952f734bf2219b6c02a2dcbb931f16a1df2d80d7a7e0e443
3
+ size 10737418240
visdoc-tasks/visdoc-tasks.tar.gz-02 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d36ee5dd93948d5edd0b5fe3b50b9420761cfafa41cb97ef5a06796a7c0100f9
3
+ size 1642119168