ashutosh-kumar_stargate commited on
Commit
0de9f64
·
1 Parent(s): 4b42a73

chore: track *.jsonl via Git LFS

Browse files
.gitattributes CHANGED
@@ -57,3 +57,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
60
+ *.jsonl filter=lfs diff=lfs merge=lfs -text
61
+ *.mov filter=lfs diff=lfs merge=lfs -text
62
+ *.avi filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,252 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: "InstVL: An Instance-Aware Vision-Language Dataset"
3
+ language:
4
+ - en
5
+ multilinguality: monolingual
6
+ task_categories:
7
+ - image-to-text
8
+ - text-to-image
9
+ - video-text-to-text
10
+ - text-to-video
11
+ - object-detection
12
+ size_categories:
13
+ - "1M<n<10M"
14
+ annotations_creators:
15
+ - machine-generated
16
+ source_datasets:
17
+ - original
18
+ configs:
19
+ - config_name: image
20
+ data_files:
21
+ - train/instvl_img_2m.jsonl
22
+ - test/instvl_img_1k.jsonl
23
+ - test/instvl_img_10k.jsonl
24
+ - test/instvl_img_zero_1k.jsonl
25
+ - test/instvl_img_zero_10k.jsonl
26
+ - config_name: video
27
+ data_files:
28
+ - train/instvl_video_50k.jsonl
29
+ - test/instvl_video_1k.jsonl
30
+ - test/instvl_video_10k.jsonl
31
+ ---
32
+
33
+ # InstVL: An Instance-Aware Vision-Language Dataset
34
+
35
+ ![InstVL Teaser](media/instvl_teaser.png)
36
+
37
+ This is the official repository for the **InstVL** dataset, introduced in the paper **INST-AP: Instance-Aware Vision-Language Pre-Train for Spatial-Temporal Understanding**.
38
+
39
+ InstVL is a large-scale dataset of images and videos designed to bridge the gap between holistic scene understanding and fine-grained, instance-level comprehension. It addresses the limitation that most pre-training paradigms excel at global semantics but struggle with details about fine-grained instances.
40
+
41
+ InstVL provides two levels of detailed textual annotations:
42
+
43
+ - **Global Captions** — A comprehensive description of the entire scene.
44
+ - **Instance Captions** — Fine-grained descriptions grounded to specific object regions (in images) or trajectories (in videos).
45
+
46
+ The dataset contains ***over 3.4 million instances** in **over 2 million images** and **50,000 videos**, providing rich supervision for instance-centric pre-training and benchmarking.
47
+
48
+ ---
49
+
50
+ ## 💻 How to Load with 🤗 Datasets
51
+
52
+ You can load the dataset directly using the Hugging Face `datasets` library. You must specify which configuration (**image** or **video**) you want to load.
53
+
54
+ ### Loading the Image Dataset
55
+
56
+ ```python
57
+ from datasets import load_dataset
58
+
59
+ img_ds = load_dataset(
60
+ "visionai-gai/instvl",
61
+ name="image",
62
+ data_files={
63
+ "train": "train/instvl_img_2m.jsonl",
64
+ "test_1k": "test/instvl_img_1k.jsonl",
65
+ "test_10k": "test/instvl_img_10k.jsonl",
66
+ "test_zero_1k": "test/instvl_img_zero_1k.jsonl",
67
+ "test_zero_10k": "test/instvl_img_zero_10k.jsonl",
68
+ },
69
+ )
70
+
71
+ # Access a split
72
+ train_split = img_ds["train"]
73
+
74
+ print(train_split[0])
75
+ ```
76
+
77
+ ### Loading the Video Dataset
78
+
79
+ ```python
80
+ from datasets import load_dataset
81
+
82
+ video_ds = load_dataset(
83
+ "visionai-gai/instvl",
84
+ name="video",
85
+ data_files={
86
+ "train": "train/instvl_video_50k.jsonl",
87
+ "test_1k": "test/instvl_video_1k.jsonl",
88
+ "test_10k": "test/instvl_video_10k.jsonl",
89
+ }
90
+ )
91
+ # Access a split
92
+ train_split = video_ds["train"]
93
+
94
+ # Print the first example
95
+ print(train_split[0])
96
+ ```
97
+
98
+ ---
99
+
100
+ ## 📋 Dataset Structure
101
+
102
+ The dataset is organized into `train` and `test` splits, with data provided in the JSON Lines (`.jsonl`) format.
103
+
104
+ ```text
105
+ .
106
+ ├── test
107
+ │ ├── instvl_img_10k.jsonl
108
+ │ ├── instvl_img_1k.jsonl
109
+ │ ├── instvl_img_zero_10k.jsonl
110
+ │ ├── instvl_img_zero_1k.jsonl
111
+ │ ├── instvl_video_10k.jsonl
112
+ │ └── instvl_video_1k.jsonl
113
+ └── train
114
+ ├── instvl_img_2m.jsonl
115
+ └── instvl_video_50k.jsonl
116
+ ```
117
+
118
+ ---
119
+
120
+ ## 🖼️ Image Data Structure
121
+
122
+ Each line in the image `.jsonl` files represents a single image and its annotations.
123
+
124
+ ### Fields
125
+
126
+ | Key | Data Type | Description |
127
+ |----------------|--------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
128
+ | `image` | String | The relative file path to the JPG image. |
129
+ | `caption` | String | A detailed, holistic caption describing the entire image scene. |
130
+ | `image_id` | String | A unique identifier for the image. | |
131
+ | `instance_data`| List of Objects | A list of annotations for specific object instances within the image. Each annotation pairs a bounding box with a free-form sentence describing that instance. Can be `[]`. |
132
+
133
+ ### `instance_data` Object
134
+
135
+ | Key | Data Type | Description |
136
+ |---------------------|-----------------|-------------------------------------------------------------------------------------------------------|
137
+ | `instance_id` | String | A unique ID for the detected object within the image. |
138
+ | `instance_category` | String | The category or class assigned to the object (e.g., `"Shoes"`, `"Player"`). |
139
+ | `bbox` | List of Int | The bounding box coordinates for the object, in `[x, y, width, height]` format. |
140
+ | `instance_caption` | String | A fine-grained caption describing only the object within the bounding box. |
141
+
142
+ ---
143
+
144
+ ## 📹 Video Data Structure
145
+
146
+ Each line in the video `.jsonl` files represents a single video segment and its annotations.
147
+
148
+ ### Fields
149
+
150
+ | Key | Data Type | Description |
151
+ |-----------------------|-----------------|----------------------------------------------------------------------------------------------------------------|
152
+ | `video` | String | The filename of the segmented MP4 video clip. |
153
+ | `resolution` | List of Int | The video's resolution as `[height, width]`. |
154
+ | `caption` | String | A detailed summary of the events and scene within the entire video segment. |
155
+ | `duration` | Float | The total duration of the video segment in seconds. |
156
+ | `segment_frame_range` | List of Int | The `[start_frame, end_frame]` numbers from the original, full-length source video. |
157
+ | `instance_data` | List of Objects | A list containing information about each object tracked across multiple frames. The instance caption is shared by all boxes on an object's trajectory. |
158
+
159
+ ### `instance_data` Object
160
+
161
+ | Key | Data Type | Description |
162
+ |---------------------|--------------|-----------------------------------------------------------------------------------------------------------|
163
+ | `instance_id` | Integer | A unique ID for the tracked object within this video segment. |
164
+ | `instance_category` | String | The category assigned to the tracked object (e.g., `"person"`, `"furniture"`). |
165
+ | `instance_caption` | String | A summary describing the object and its actions throughout the video. |
166
+ | `frames` | List of Obj | A list of frame-wise boxes for the object. |
167
+ | `frame` | Integer | (Field inside each frames item) The frame index. |
168
+ | `bbox` | List of Int | (Field inside each frames item) The bounding box coordinates `[x, y, width, height]` for the object on a specific frame. |
169
+
170
+ ---
171
+
172
+ ## 📊 Data Splits
173
+
174
+ The InstVL dataset is divided into several training and test splits to facilitate robust benchmarking.
175
+
176
+ | Split | Filename | # of Samples | Description |
177
+ |------------|----------------------------------|--------------|-------------------------------------|
178
+ | Train | `train/instvl_img_2m.jsonl` | ~2,000,000 | Main training set for images. |
179
+ | Train | `train/instvl_video_50k.jsonl` | ~50,000 | Main training set for videos. |
180
+ | Test | `test/instvl_img_1k.jsonl` | 2,442 | Standard image test set. |
181
+ | Test | `test/instvl_img_10k.jsonl` | 23,129 | Larger image test set. |
182
+ | Test | `test/instvl_video_1k.jsonl` | 2,508 | Standard video test set. |
183
+ | Test-Zero | `test/instvl_img_zero_1k.jsonl` | 2,570 | Zero-shot image test set. |
184
+ | Test-Zero | `test/instvl_img_zero_10k.jsonl` | 26,029 | Larger zero-shot image test set. |
185
+
186
+ ### Meaning of the “Zero” Splits
187
+
188
+ The **img-zero** splits are a key component for evaluation. As stated in the paper, these splits are **not present** in the training dataset and introduce a **mild distributional shift**. Their purpose is to confirm that a model's performance demonstrates **true generalization** capabilities and is not merely inherited from the training distribution.
189
+
190
+ ---
191
+
192
+ ## 🏆 Benchmark Results
193
+
194
+ The following tables show the performance of the **INST-AP** model on the InstVL test sets, compared to other state-of-the-art models. All results are from the original paper.
195
+
196
+ ### Instance-Level Retrieval Performance (Recall@1)
197
+
198
+ This task evaluates the model's ability to retrieve the correct fine-grained instance caption.
199
+
200
+ | Method | InstVL(img) 1K (V2T/T2V) | InstVL(img) 10K (V2T/T2V) | InstVL(img-zero) 1K (V2T/T2V) | InstVL(img-zero) 10K (V2T/T2V) | InstVL(video) 1K (V2T/T2V) |
201
+ |-----------------|--------------------------|----------------------------|--------------------------------|---------------------------------|----------------------------|
202
+ | CLIP4CLIP [56] | 25.10 / 18.68 | 33.21 / 28.19 | 17.82 / 25.10 | 9.11 / 16.30 | 17.71 / 24.69 |
203
+ | UMT-B [17] | 38.74 / 18.95 | 32.79 / 25.59 | 32.25 / 28.13 | 15.06 / 12.99 | 39.85 / 40.22 |
204
+ | UMT-L [17] | 38.44 / 23.08 | 21.34 / 35.65 | 29.34 / 30.17 | 11.09 / 16.38 | 26.38 / 22.43 |
205
+ | **INST-AP (Ours)** | **49.61 / 51.33** | **44.69 / 45.01** | **41.47 / 40.21** | **23.95 / 28.99** | **51.63 / 54.62** |
206
+
207
+ ### Global Retrieval Performance (Recall@1)
208
+
209
+ This task evaluates the model's ability to retrieve the correct global caption for the entire scene.
210
+
211
+ | Method | InstVL(img) 1K (V2T/T2V) | InstVL(img) 10K (V2T/T2V) | InstVL(img-zero) 1K (V2T/T2V) | InstVL(img-zero) 10K (V2T/T2V) | InstVL(video) 1K (V2T/T2V) |
212
+ |-----------------|--------------------------|----------------------------|--------------------------------|---------------------------------|----------------------------|
213
+ | CLIP4CLIP [56] | 93.40 / 84.25 | 79.22 / 96.00 | 78.20 / 81.70 | 56.95 / 63.96 | 67.50 / 70.50 |
214
+ | UMT-B [17] | 92.60 / 89.50 | 72.40 / 71.43 | 83.10 / 80.90 | 65.37 / 66.12 | 83.70 / 79.20 |
215
+ | UMT-L [17] | 95.30 / 83.95 | 94.70 / 85.41 | 83.70 / 83.90 | 72.59 / 72.60 | 88.30 / 85.50 |
216
+ | **INST-AP (Ours)** | **97.90 / 96.80** | **90.93 / 88.95** | **86.70 / 85.60** | **76.96 / 75.76** | **88.30 / 87.70** |
217
+
218
+ ---
219
+
220
+ ## ⬇️ Downloading the Original Images & Videos
221
+
222
+ You can download the original images and videos from the following websites:
223
+
224
+ - **InstVL Image:** [LAION-400M via img2dataset](https://github.com/rom1504/img2dataset/blob/main/dataset_examples/laion400m.md)
225
+ - **InstVL Image Zero:** [COYO-700M via img2dataset](https://github.com/rom1504/img2dataset/blob/main/dataset_examples/coyo-700m.md)
226
+ - **InstVL Video:** [HD-VILA-100M on Hugging Face](https://huggingface.co/datasets/TempoFunk/hdvila-100M)
227
+
228
+ ---
229
+
230
+
231
+ ## 🙏 Acknowledgements
232
+
233
+ This dataset is based on results obtained from a project, **JPNP20017**, subsidized by the **New Energy and Industrial Technology Development Organization (NEDO)**.
234
+
235
+ ## 📝 License
236
+
237
+ Refer to the license [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en) for using our dataset.
238
+
239
+ ---
240
+
241
+ ## 📜 Citations
242
+
243
+ If you use this dataset in your research, please cite the original paper:
244
+
245
+ ```bibtex
246
+ @inproceedings{instap2025,
247
+ title = {INST-AP: Instance-Aware Vision-Language Pre-Train for Spatial-Temporal Understanding},
248
+ author = {Ashutosh Kumar, Quan Kong, Jingjing Pan, Rajat Saini, Mustafa_Erdogan, Betty Le Dem, Norimasa Kobori},
249
+ booktitle = {ArXiV},
250
+ year = {2025}
251
+ }
252
+ ```
media/instvl_teaser.png ADDED

Git LFS Details

  • SHA256: 9503424e197eb06f09ce6401055d87ca4d8877cee2fe65a835742e3ba96511a0
  • Pointer size: 132 Bytes
  • Size of remote file: 6.87 MB
test/instvl_img_10k.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:76f25a2e27870e9da76240999849ed8c11433a6ebce1c0152b225d33140002b7
3
+ size 37365141
test/instvl_img_1k.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50b69ba5483da182c22049d88bfedc40d5376b33681d997b118ac96ecea76451
3
+ size 3784264
test/instvl_img_zero_10k.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96c42e79ae909d66c3b567d40c755def8b102effc952cce8838af36789006952
3
+ size 65828071
test/instvl_img_zero_1k.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96fc34efcdcb6205e522e3894a9285c472864ae90d038218d9cb6d40e3a3702f
3
+ size 6335278
test/instvl_video_10k.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3db5f5a6ddac212511e5f3eb9ff450605ae47b58dbf38bdc39ef6ca428d4961
3
+ size 34600828
test/instvl_video_1k.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33f2f307acc0b8e216e721167d5b16443e4ccb0b3a90de2369c70dfa8b74089a
3
+ size 3479915
train/instvl_img_2m.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d49cdb8ba39ea40028e6d2fcc3816e5f8d29f8e61b1465f5e42c711861ede48
3
+ size 3698495195
train/instvl_video_50k.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e28b317531290fbd4c81e09b0f1915f2da977a54ee54dc92c5e0e403128d3e17
3
+ size 165381492