Add dataset card (raw arrow, load_from_disk)
Browse files
README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
task_categories:
|
| 4 |
+
- visual-question-answering
|
| 5 |
+
- image-to-text
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- vision-flan
|
| 10 |
+
- multimodal
|
| 11 |
+
- instruction-tuning
|
| 12 |
+
- vision-language
|
| 13 |
+
size_categories:
|
| 14 |
+
- 100K<n<1M
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# Vision-FLAN (191-task) — Arrow (images embedded)
|
| 18 |
+
|
| 19 |
+
The [Vision-FLAN](https://vision-flan.github.io/) `vision-flan_191-task_1k` visual instruction-tuning
|
| 20 |
+
set converted to a 🤗 `datasets` **Arrow** dataset with **image bytes embedded**. 186,103 examples
|
| 21 |
+
spanning ~191 human-labeled vision tasks.
|
| 22 |
+
|
| 23 |
+
> ⚠️ This repo is a raw `save_to_disk` Arrow snapshot. The **dataset viewer** and
|
| 24 |
+
> **`load_dataset()` do not work** here — load it with **`load_from_disk`** as shown below.
|
| 25 |
+
|
| 26 |
+
## Loading
|
| 27 |
+
|
| 28 |
+
```python
|
| 29 |
+
from huggingface_hub import snapshot_download
|
| 30 |
+
from datasets import load_from_disk
|
| 31 |
+
|
| 32 |
+
path = snapshot_download("Ethlake/vision-flan", repo_type="dataset")
|
| 33 |
+
ds = load_from_disk(path)
|
| 34 |
+
print(ds) # 186103 rows
|
| 35 |
+
print(ds[0])
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
## Schema
|
| 39 |
+
|
| 40 |
+
| column | type | notes |
|
| 41 |
+
|-----------------|-------------------------|-------------------------------------------------------------|
|
| 42 |
+
| `images` | list[Image] | embedded bytes, decode to `PIL.Image` (typically 1 per row) |
|
| 43 |
+
| `texts` | list[{user, assistant}] | paired conversation turns (mostly single-turn) |
|
| 44 |
+
| `source_subset` | string | source task, e.g. `VQA_counting`, `HICO+human_activity_detection` |
|
| 45 |
+
|
| 46 |
+
Example row:
|
| 47 |
+
|
| 48 |
+
```python
|
| 49 |
+
{
|
| 50 |
+
'images': [<PIL.Image RGB 427x640>],
|
| 51 |
+
'texts': [
|
| 52 |
+
{'user': 'This task tests your ability to count number of objects. '
|
| 53 |
+
'Here is the question "How many chairs are in the photo?".',
|
| 54 |
+
'assistant': 'two'},
|
| 55 |
+
],
|
| 56 |
+
'source_subset': 'VQA_counting',
|
| 57 |
+
}
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
## Notes
|
| 61 |
+
|
| 62 |
+
- ~191 distinct `source_subset` task types; filter on this column to slice by task.
|
| 63 |
+
- Image bytes are embedded directly in the Arrow shards — self-contained, no separate image folders.
|
| 64 |
+
- `images` is a list (multi-image capable) even though most examples contain a single image.
|
| 65 |
+
|
| 66 |
+
## Source
|
| 67 |
+
|
| 68 |
+
Derived from [Vision-Flan/vision-flan_191-task_1k](https://huggingface.co/datasets/Vision-Flan/vision-flan_191-task_1k)
|
| 69 |
+
("Vision-Flan: Scaling Human-Labeled Tasks in Visual Instruction Tuning"). Please respect the
|
| 70 |
+
original dataset's license and the licenses of its upstream image sources.
|