uchandar29 commited on
Commit
4c2506f
·
verified ·
1 Parent(s): 7376e6c

Uploading AgriBench dataset with image shards and metadata files

Browse files
README.md ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - visual-question-answering
5
+ - image-text-to-text
6
+ tags:
7
+ - agriculture
8
+ - land-cover
9
+ - land-use
10
+ - remote-sensing
11
+ - vqa
12
+ pretty_name: MM-LUCAS
13
+ configs:
14
+ - config_name: train
15
+ data_files:
16
+ - split: train
17
+ path: train-0000-of-0001.parquet
18
+ dataset_info:
19
+ config_name: train
20
+ splits:
21
+ - name: train
22
+ num_examples: 7136
23
+ ---
24
+
25
+ # MM-LUCAS
26
+
27
+ MM-LUCAS is a multimodal benchmark built on top of the EU's LUCAS (Land Use/Cover Area frame Survey) land-cover survey, pairing 1,784 landscape photos (1600×1200, taken across 27 EU countries) with microdata the survey already recorded: GPS location, country, capture date, land-cover and land-use taxonomy codes, and quality/aesthetic ratings. It's the dataset behind AgriBench, the first benchmark built to evaluate multimodal LLMs on agriculture tasks.
28
+
29
+ Paper: [AgriBench: A Hierarchical Agriculture Benchmark for Multimodal Large Language Models](https://doi.org/10.1007/978-3-031-91835-3_14) (arXiv:2412.00465, ECCV 2024 Workshops)
30
+ Authors: Yutong Zhou, Masahiro Ryo
31
+ Original repository: [github.com/Yutong-Zhou-cv/AgriBench](https://github.com/Yutong-Zhou-cv/AgriBench)
32
+
33
+ Underlying LUCAS survey data:
34
+ - [Semantic segmentation dataset of Land Use/Cover Area frame Survey (LUCAS) rural landscape Street View Images](https://doi.org/10.1016/j.dib.2024.110394) — Martinez-Sanchez, Hufkens, Kearsley, Naydenov, Czucz, van de Velde (Data in Brief, 2024)
35
+ - [Harmonised LUCAS in-situ land cover and use database for field surveys from 2006 to 2018 in the European Union](https://doi.org/10.1038/s41597-020-00675-z) — d'Andrimont et al. (Scientific Data, 2020)
36
+
37
+ ## About the paper
38
+
39
+ AgriBench turns the LUCAS microdata into four VQA tasks over the same 1,784 images:
40
+
41
+ - **Land cover** — 4-option multiple choice over LUCAS's land-cover classes (e.g. "Shrubland with sparse tree cover", "Broadleaved woodland").
42
+ - **Land use** — 4-option multiple choice over LUCAS's socio-economic land-use classes (e.g. "Kitchen garden", "Semi-natural and natural areas not in use").
43
+ - **Aesthetic score** — a 5-point qualitative rating of the photo itself (Bad / Poor / Fair / Good / Excellent).
44
+ - **Quality score** — a 5-point qualitative rating of image/capture quality (Bad / Poor / Fair / Good / Excellent).
45
+
46
+ License: CC BY 4.0.
47
+
48
+ ## Dataset Size
49
+
50
+ | Config | Rows | Unique Images | Image Data |
51
+ |---|---|---|---|
52
+ | train | 7,136 | 1,784 | 0.92GB (1 shard) |
53
+
54
+ All four tasks share the exact same 1,784 images, so every image contributes 4 rows (one per task) rather than being split into separate configs.
55
+
56
+ ## Task Breakdown
57
+
58
+ | Task | Mechanism | Rows |
59
+ |---|---|---|
60
+ | aesthetics_score | open-ended rating (Bad/Poor/Fair/Good/Excellent) | 1,784 |
61
+ | quality_score | open-ended rating (Bad/Poor/Fair/Good/Excellent) | 1,784 |
62
+ | land_cover | multiple-choice (4 options) | 1,784 |
63
+ | land_use | multiple-choice (4 options) | 1,784 |
64
+
65
+ For the multiple-choice tasks, the assistant turn combines the answer key with its option text, e.g. `"D. Broadleaved woodland"`, rather than the bare letter the source JSON gives. For the rating tasks, the source answer is already a plain-text label (e.g. `"Poor"`), used as-is.
66
+
67
+ ## Layout
68
+
69
+ ```
70
+ train-0000-of-0001.parquet # 7,136 rows
71
+ images/
72
+ image-shared-000-of-001.zip # image shard (ZIP_STORED, uncompressed)
73
+ path_to_shard.parquet # maps image SHA256 hash -> shard_file
74
+ ```
75
+
76
+ Images are content-addressed by SHA256 hash and stored uncompressed in zip shards for random access via `zipfile`, capped at 5GB per shard (this dataset only needed one).
77
+
78
+ ## Schema
79
+
80
+ | Column | Type | Description |
81
+ |---|---|---|
82
+ | `images` | `list<struct<bytes, path>>` | `bytes` is `null`; `path` is the SHA256 hash, looked up in `images/path_to_shard.parquet` |
83
+ | `id` | `string` | `mmlucas_<task>_<n>` |
84
+ | `messages` | chat-style list | user turn: image + question (multiple-choice questions include lettered options inline); assistant turn: the answer, letter-prefixed for multiple-choice questions |
85
+ | `raw_metadata` | JSON string | `task`, `image_path` (original source path), `gps_long`, `gps_lat`, `date`, `nuts0` (EU country code), `Classes` (free-text scene description); plus the task-specific field: `Aesthetic Score`, `Quality Score`, `lc1`/`lc1_label`, or `lu1`/`lu1_label` |
86
+
87
+ Each row is one (image, task) pair, so every image appears across 4 rows.
88
+
89
+ ## Usage
90
+
91
+ Recommended, via the AgML python library:
92
+
93
+ ```python
94
+ from agml import loadImageTextToTextDataset
95
+
96
+ ds = loadImageTextToTextDataset("MM-LUCAS")
97
+ ```
98
+
99
+ ## Citations
100
+
101
+ ```bibtex
102
+ @article{zhou2024agribench,
103
+ title={AgriBench: A Hierarchical Agriculture Benchmark for Multimodal Large Language Models},
104
+ author={Zhou, Yutong and Ryo, Masahiro},
105
+ journal={arXiv preprint arXiv:2412.00465},
106
+ year={2024}
107
+ }
108
+
109
+ @article{martinez2024semantic,
110
+ title={Semantic segmentation dataset of Land Use/Cover Area frame Survey (LUCAS) rural landscape Street View Images},
111
+ author={Martinez-Sanchez, Laura and Hufkens, Koen and Kearsley, Elizabeth and Naydenov, Dimitar and Cz{\'u}cz, B{\'a}lint and van de Velde, Marijn},
112
+ journal={Data in Brief},
113
+ volume={54},
114
+ pages={110394},
115
+ year={2024},
116
+ publisher={Elsevier}
117
+ }
118
+
119
+ @article{d2020harmonised,
120
+ title={Harmonised LUCAS in-situ land cover and use database for field surveys from 2006 to 2018 in the European Union},
121
+ author={d’Andrimont, Rapha{\"e}l and Yordanov, Momchil and Martinez-Sanchez, Laura and Eiselt, Beatrice and Palmieri, Alessandra and Dominici, Paolo and Gallego, Javier and Reuter, Hannes Isaak and Joebges, Christian and Lemoine, Guido and others},
122
+ journal={Scientific data},
123
+ volume={7},
124
+ number={1},
125
+ pages={352},
126
+ year={2020},
127
+ publisher={Nature Publishing Group UK London}
128
+ }
129
+ ```
130
+
131
+ ---
132
+
133
+ This dataset is indexed and structured on https://project-agml.github.io/ as part of the AgML python library. This dataset was reformatted from its original format to match HuggingFace's Imagefolder standards but requires an external module (agml) that processes and returns a HF Dataset object faster than HF module functions.
images/image-shared-000-of-001.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:53b0b268b36ad52b6dc2e02cf85a4fe67c62b90b8bdaf42c1cd236c4b71453d5
3
+ size 917045188
images/path_to_shard.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a086d6f9e2cddc0b37177001f56f0f2332e5125f0ac7bb29f50890d46dee4b7
3
+ size 114586
train-0000-of-0001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ec47038a8424797d658c8746d539d747fe5d085e15a28a44e6a7506b5850842
3
+ size 667561