Datasets:
Add files using upload-large-folder tool
Browse files- .gitattributes +7 -0
- README.md +95 -0
- data/testdev.lance/_indices/3c82494c-58cd-4755-abc4-47451744606e/metadata.lance +0 -0
- data/testdev.lance/_indices/3c82494c-58cd-4755-abc4-47451744606e/part_0_docs.lance +0 -0
- data/testdev.lance/_indices/3c82494c-58cd-4755-abc4-47451744606e/part_0_invert.lance +3 -0
- data/testdev.lance/_indices/3c82494c-58cd-4755-abc4-47451744606e/part_0_tokens.lance +0 -0
- data/testdev.lance/_indices/3ec7caaf-ff4a-4ab4-a7c7-9b8113beecde/bitmap_page_lookup.lance +0 -0
- data/testdev.lance/_indices/42289279-e32b-4c17-9735-78bd8b6bb43e/page_data.lance +0 -0
- data/testdev.lance/_indices/42289279-e32b-4c17-9735-78bd8b6bb43e/page_lookup.lance +0 -0
- data/testdev.lance/_indices/4aba3b99-1d1c-4647-affc-8e1a13263ee9/auxiliary.idx +3 -0
- data/testdev.lance/_indices/4aba3b99-1d1c-4647-affc-8e1a13263ee9/index.idx +3 -0
- data/testdev.lance/_indices/9e2d3521-a377-4a0c-9ebc-d1d81d924a1f/metadata.lance +0 -0
- data/testdev.lance/_indices/9e2d3521-a377-4a0c-9ebc-d1d81d924a1f/part_0_docs.lance +0 -0
- data/testdev.lance/_indices/9e2d3521-a377-4a0c-9ebc-d1d81d924a1f/part_0_invert.lance +0 -0
- data/testdev.lance/_indices/9e2d3521-a377-4a0c-9ebc-d1d81d924a1f/part_0_tokens.lance +0 -0
- data/testdev.lance/_indices/a38be0ae-2fd7-4541-a16c-aba50241de8d/bitmap_page_lookup.lance +0 -0
- data/testdev.lance/_indices/c6957cc9-fb6a-402b-b95a-1f3c046be691/bitmap_page_lookup.lance +0 -0
- data/testdev.lance/_indices/d2c0bcdf-2633-4717-999b-59fe9f4270fb/auxiliary.idx +3 -0
- data/testdev.lance/_indices/d2c0bcdf-2633-4717-999b-59fe9f4270fb/index.idx +3 -0
- data/testdev.lance/_indices/d690bc05-087c-463e-b7ed-da518a0a9b39/page_data.lance +3 -0
- data/testdev.lance/_indices/d690bc05-087c-463e-b7ed-da518a0a9b39/page_lookup.lance +0 -0
- data/testdev.lance/_transactions/0-b7301aab-c47a-49e9-815e-41a5b7d608da.txn +0 -0
- data/testdev.lance/_transactions/1-391451b5-ff45-4390-92e3-f745312bcc0f.txn +0 -0
- data/testdev.lance/_transactions/2-0cf7636a-3195-4bee-b4a4-d7b354e570e3.txn +0 -0
- data/testdev.lance/_transactions/3-328ab75d-6092-46ea-b98b-b5a92ba13eed.txn +0 -0
- data/testdev.lance/_transactions/4-13cdef15-5f57-44e6-be93-cc8d670ae3c4.txn +0 -0
- data/testdev.lance/_transactions/5-aff59ade-739c-40a0-be24-d42f7402b555.txn +0 -0
- data/testdev.lance/_transactions/6-11b2c328-cc32-4b6d-b48e-5ac7a685df6a.txn +0 -0
- data/testdev.lance/_transactions/7-9c0499f2-b88b-4cb4-b457-f927989b46e6.txn +0 -0
- data/testdev.lance/_transactions/8-00a804d4-1f67-43e1-8838-afadfdb870e6.txn +0 -0
- data/testdev.lance/_transactions/9-f4124963-6db4-4db3-8824-a380e5c6a2cc.txn +0 -0
- data/testdev.lance/_versions/18446744073709551605.manifest +0 -0
- data/testdev.lance/_versions/18446744073709551606.manifest +0 -0
- data/testdev.lance/_versions/18446744073709551607.manifest +0 -0
- data/testdev.lance/_versions/18446744073709551608.manifest +0 -0
- data/testdev.lance/_versions/18446744073709551609.manifest +0 -0
- data/testdev.lance/_versions/18446744073709551610.manifest +0 -0
- data/testdev.lance/_versions/18446744073709551611.manifest +0 -0
- data/testdev.lance/_versions/18446744073709551612.manifest +0 -0
- data/testdev.lance/_versions/18446744073709551613.manifest +0 -0
- data/testdev.lance/_versions/18446744073709551614.manifest +0 -0
- data/testdev.lance/data/110110100100101010000111cf75664843a8d60115c79ab8d6.lance +3 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,10 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
data/testdev.lance/_indices/d2c0bcdf-2633-4717-999b-59fe9f4270fb/index.idx filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
data/testdev.lance/_indices/4aba3b99-1d1c-4647-affc-8e1a13263ee9/index.idx filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
data/testdev.lance/_indices/d690bc05-087c-463e-b7ed-da518a0a9b39/page_data.lance filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
data/testdev.lance/_indices/3c82494c-58cd-4755-abc4-47451744606e/part_0_invert.lance filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
data/testdev.lance/_indices/4aba3b99-1d1c-4647-affc-8e1a13263ee9/auxiliary.idx filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
data/testdev.lance/_indices/d2c0bcdf-2633-4717-999b-59fe9f4270fb/auxiliary.idx filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
data/testdev.lance/data/110110100100101010000111cf75664843a8d60115c79ab8d6.lance filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- visual-question-answering
|
| 5 |
+
- image-text-to-text
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- gqa
|
| 10 |
+
- compositional-vqa
|
| 11 |
+
- vqa
|
| 12 |
+
- vision-language
|
| 13 |
+
- lance
|
| 14 |
+
- clip-embeddings
|
| 15 |
+
pretty_name: gqa-testdev-balanced-lance
|
| 16 |
+
size_categories:
|
| 17 |
+
- 10K<n<100K
|
| 18 |
+
---
|
| 19 |
+
# GQA testdev-balanced (Lance Format)
|
| 20 |
+
|
| 21 |
+
Lance-formatted version of the canonical GQA `testdev_balanced` slice — 12,578 compositional VQA questions joined with the matching 398 images — sourced from [`lmms-lab/GQA`](https://huggingface.co/datasets/lmms-lab/GQA).
|
| 22 |
+
|
| 23 |
+
`lmms-lab/GQA` exposes instructions and images as **separate parquet configs**; this Lance dataset joins them on `imageId`, so each row has the question, the answer, the GQA reasoning-program tags, *and* the image bytes inline.
|
| 24 |
+
|
| 25 |
+
## Splits
|
| 26 |
+
|
| 27 |
+
| Split | Rows | Distinct images |
|
| 28 |
+
|-------|------|----------------|
|
| 29 |
+
| `testdev.lance` | 12,578 | 398 |
|
| 30 |
+
|
| 31 |
+
> Train (`train_balanced_instructions` × `train_balanced_images`, ~943k Q's × 72k images, ~10 GB images) and val splits are not bundled by default — pass `--instr-config`/`--images-config` to `gqa/dataprep.py` to extend.
|
| 32 |
+
|
| 33 |
+
## Schema
|
| 34 |
+
|
| 35 |
+
| Column | Type | Notes |
|
| 36 |
+
|---|---|---|
|
| 37 |
+
| `id` | `int64` | Row index |
|
| 38 |
+
| `image` | `large_binary` | Inline JPEG bytes (image is duplicated across rows that share an `image_id`) |
|
| 39 |
+
| `image_id` | `string` | GQA scene-graph image id |
|
| 40 |
+
| `question_id` | `string` | GQA question id |
|
| 41 |
+
| `question` | `string` | Compositional natural-language question |
|
| 42 |
+
| `answers` | `list<string>` | One-element list (the GQA short answer) |
|
| 43 |
+
| `answer` | `string` | Same short answer (canonical / FTS target) |
|
| 44 |
+
| `full_answer` | `string?` | Full sentence answer |
|
| 45 |
+
| `structural` | `string?` | One of `verify`, `query`, `compare`, `choose`, `logical` |
|
| 46 |
+
| `semantic` | `string?` | One of `attr`, `cat`, `global`, `obj`, `rel` |
|
| 47 |
+
| `detailed` | `string?` | Fine-grained type (e.g. `weatherVerifyC`) |
|
| 48 |
+
| `is_balanced` | `bool` | GQA balanced subset flag |
|
| 49 |
+
| `group_global` / `group_local` | `string?` | GQA reasoning-group ids |
|
| 50 |
+
| `semantic_str` | `string?` | Compact description of the reasoning program |
|
| 51 |
+
| `image_emb` | `fixed_size_list<float32, 512>` | CLIP image embedding (cosine-normalized) |
|
| 52 |
+
| `question_emb` | `fixed_size_list<float32, 512>` | CLIP text embedding of the question |
|
| 53 |
+
|
| 54 |
+
## Pre-built indices
|
| 55 |
+
|
| 56 |
+
- `IVF_PQ` on `image_emb` and `question_emb` — `metric=cosine`
|
| 57 |
+
- `INVERTED` (FTS) on `question` and `answer`
|
| 58 |
+
- `BITMAP` on `structural`, `semantic`, `detailed`
|
| 59 |
+
- `BTREE` on `image_id`, `question_id`
|
| 60 |
+
|
| 61 |
+
## Quick start
|
| 62 |
+
|
| 63 |
+
```python
|
| 64 |
+
import lance
|
| 65 |
+
ds = lance.dataset("hf://datasets/lance-format/gqa-testdev-balanced-lance/data/testdev.lance")
|
| 66 |
+
print(ds.count_rows(), ds.schema.names, ds.list_indices())
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
## Filter by reasoning type
|
| 70 |
+
|
| 71 |
+
```python
|
| 72 |
+
import lance
|
| 73 |
+
ds = lance.dataset("hf://datasets/lance-format/gqa-testdev-balanced-lance/data/testdev.lance")
|
| 74 |
+
verify_qs = ds.scanner(filter="structural = 'verify'", columns=["question", "answer"], limit=5).to_table()
|
| 75 |
+
```
|
| 76 |
+
|
| 77 |
+
## Why Lance?
|
| 78 |
+
|
| 79 |
+
- One dataset for the joined image + question + answer + reasoning-program metadata + dual embeddings + indices — no instructions/images parquet split to keep in sync.
|
| 80 |
+
- Schema evolution: add columns (alternate scene graphs, model predictions) without rewriting the data.
|
| 81 |
+
|
| 82 |
+
## Source & license
|
| 83 |
+
|
| 84 |
+
Converted from [`lmms-lab/GQA`](https://huggingface.co/datasets/lmms-lab/GQA). GQA is released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) by Hudson and Manning (Stanford NLP).
|
| 85 |
+
|
| 86 |
+
## Citation
|
| 87 |
+
|
| 88 |
+
```
|
| 89 |
+
@inproceedings{hudson2019gqa,
|
| 90 |
+
title={GQA: A New Dataset for Real-World Visual Reasoning and Compositional Question Answering},
|
| 91 |
+
author={Hudson, Drew A. and Manning, Christopher D.},
|
| 92 |
+
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
|
| 93 |
+
year={2019}
|
| 94 |
+
}
|
| 95 |
+
```
|
data/testdev.lance/_indices/3c82494c-58cd-4755-abc4-47451744606e/metadata.lance
ADDED
|
Binary file (733 Bytes). View file
|
|
|
data/testdev.lance/_indices/3c82494c-58cd-4755-abc4-47451744606e/part_0_docs.lance
ADDED
|
Binary file (30.7 kB). View file
|
|
|
data/testdev.lance/_indices/3c82494c-58cd-4755-abc4-47451744606e/part_0_invert.lance
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4f9b6d07d4a6a114e1cd52dd3ee4eb2f387a0fa7977adf99d5a05cda8bab4577
|
| 3 |
+
size 308245
|
data/testdev.lance/_indices/3c82494c-58cd-4755-abc4-47451744606e/part_0_tokens.lance
ADDED
|
Binary file (10.2 kB). View file
|
|
|
data/testdev.lance/_indices/3ec7caaf-ff4a-4ab4-a7c7-9b8113beecde/bitmap_page_lookup.lance
ADDED
|
Binary file (20.5 kB). View file
|
|
|
data/testdev.lance/_indices/42289279-e32b-4c17-9735-78bd8b6bb43e/page_data.lance
ADDED
|
Binary file (30.6 kB). View file
|
|
|
data/testdev.lance/_indices/42289279-e32b-4c17-9735-78bd8b6bb43e/page_lookup.lance
ADDED
|
Binary file (1.27 kB). View file
|
|
|
data/testdev.lance/_indices/4aba3b99-1d1c-4647-affc-8e1a13263ee9/auxiliary.idx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:667f06026d70a85d9f8f00aa462d34fd0fbb74e97553408f6bce67a2fcb230a2
|
| 3 |
+
size 1355909
|
data/testdev.lance/_indices/4aba3b99-1d1c-4647-affc-8e1a13263ee9/index.idx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:96f9dcf76a2718ad8639d053a79a622913065db05a72885c3bae1b291b93cbf1
|
| 3 |
+
size 131722
|
data/testdev.lance/_indices/9e2d3521-a377-4a0c-9ebc-d1d81d924a1f/metadata.lance
ADDED
|
Binary file (733 Bytes). View file
|
|
|
data/testdev.lance/_indices/9e2d3521-a377-4a0c-9ebc-d1d81d924a1f/part_0_docs.lance
ADDED
|
Binary file (25.7 kB). View file
|
|
|
data/testdev.lance/_indices/9e2d3521-a377-4a0c-9ebc-d1d81d924a1f/part_0_invert.lance
ADDED
|
Binary file (84.4 kB). View file
|
|
|
data/testdev.lance/_indices/9e2d3521-a377-4a0c-9ebc-d1d81d924a1f/part_0_tokens.lance
ADDED
|
Binary file (6.21 kB). View file
|
|
|
data/testdev.lance/_indices/a38be0ae-2fd7-4541-a16c-aba50241de8d/bitmap_page_lookup.lance
ADDED
|
Binary file (30.4 kB). View file
|
|
|
data/testdev.lance/_indices/c6957cc9-fb6a-402b-b95a-1f3c046be691/bitmap_page_lookup.lance
ADDED
|
Binary file (21.4 kB). View file
|
|
|
data/testdev.lance/_indices/d2c0bcdf-2633-4717-999b-59fe9f4270fb/auxiliary.idx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:03bbb9ea47ea2cf9c2fa3b0f82b9d4b16bde654bc06f5e2f630d5d1451b48f15
|
| 3 |
+
size 1355909
|
data/testdev.lance/_indices/d2c0bcdf-2633-4717-999b-59fe9f4270fb/index.idx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de1ec7f3be7e990b0860b232c7ceef292070dd95c1f3c772eb26566a5d0156f5
|
| 3 |
+
size 131722
|
data/testdev.lance/_indices/d690bc05-087c-463e-b7ed-da518a0a9b39/page_data.lance
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2ab6760055a5a697524335c4dcf917c8b30b594c5211eae26fe8f1b995d4538a
|
| 3 |
+
size 127518
|
data/testdev.lance/_indices/d690bc05-087c-463e-b7ed-da518a0a9b39/page_lookup.lance
ADDED
|
Binary file (1.27 kB). View file
|
|
|
data/testdev.lance/_transactions/0-b7301aab-c47a-49e9-815e-41a5b7d608da.txn
ADDED
|
Binary file (844 Bytes). View file
|
|
|
data/testdev.lance/_transactions/1-391451b5-ff45-4390-92e3-f745312bcc0f.txn
ADDED
|
Binary file (189 Bytes). View file
|
|
|
data/testdev.lance/_transactions/2-0cf7636a-3195-4bee-b4a4-d7b354e570e3.txn
ADDED
|
Binary file (192 Bytes). View file
|
|
|
data/testdev.lance/_transactions/3-328ab75d-6092-46ea-b98b-b5a92ba13eed.txn
ADDED
|
Binary file (284 Bytes). View file
|
|
|
data/testdev.lance/_transactions/4-13cdef15-5f57-44e6-be93-cc8d670ae3c4.txn
ADDED
|
Binary file (282 Bytes). View file
|
|
|
data/testdev.lance/_transactions/5-aff59ade-739c-40a0-be24-d42f7402b555.txn
ADDED
|
Binary file (196 Bytes). View file
|
|
|
data/testdev.lance/_transactions/6-11b2c328-cc32-4b6d-b48e-5ac7a685df6a.txn
ADDED
|
Binary file (199 Bytes). View file
|
|
|
data/testdev.lance/_transactions/7-9c0499f2-b88b-4cb4-b457-f927989b46e6.txn
ADDED
|
Binary file (184 Bytes). View file
|
|
|
data/testdev.lance/_transactions/8-00a804d4-1f67-43e1-8838-afadfdb870e6.txn
ADDED
|
Binary file (182 Bytes). View file
|
|
|
data/testdev.lance/_transactions/9-f4124963-6db4-4db3-8824-a380e5c6a2cc.txn
ADDED
|
Binary file (182 Bytes). View file
|
|
|
data/testdev.lance/_versions/18446744073709551605.manifest
ADDED
|
Binary file (2.61 kB). View file
|
|
|
data/testdev.lance/_versions/18446744073709551606.manifest
ADDED
|
Binary file (2.47 kB). View file
|
|
|
data/testdev.lance/_versions/18446744073709551607.manifest
ADDED
|
Binary file (2.34 kB). View file
|
|
|
data/testdev.lance/_versions/18446744073709551608.manifest
ADDED
|
Binary file (2.21 kB). View file
|
|
|
data/testdev.lance/_versions/18446744073709551609.manifest
ADDED
|
Binary file (2.06 kB). View file
|
|
|
data/testdev.lance/_versions/18446744073709551610.manifest
ADDED
|
Binary file (1.99 kB). View file
|
|
|
data/testdev.lance/_versions/18446744073709551611.manifest
ADDED
|
Binary file (1.75 kB). View file
|
|
|
data/testdev.lance/_versions/18446744073709551612.manifest
ADDED
|
Binary file (1.42 kB). View file
|
|
|
data/testdev.lance/_versions/18446744073709551613.manifest
ADDED
|
Binary file (1.27 kB). View file
|
|
|
data/testdev.lance/_versions/18446744073709551614.manifest
ADDED
|
Binary file (1.77 kB). View file
|
|
|
data/testdev.lance/data/110110100100101010000111cf75664843a8d60115c79ab8d6.lance
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bd977ef6a35156b99b64f970abf003cb990ed6d5032dc25b259ac53f9ca0dcba
|
| 3 |
+
size 1173404086
|