--- pretty_name: LeafBenchV2 license: apache-2.0 task_categories: - image-text-to-text - visual-question-answering size_categories: - 10K}`. The path is the SHA256 of the image bytes and points into a zip shard through `images/path_to_shard.parquet`. - `id`: `leafbenchv2_train_`, for example `leafbenchv2_train_0`. - `messages`: one user turn (image, then question with options) and one assistant turn (answer). - `raw_metadata`: JSON string with `question_id`, `question_type`, `image_folder` and `raw_image_paths`. Example: ```json { "images": [{"bytes": null, "path": "412729ce8fb7275534901ca894eae6e3220af05b1f154343fe288f7d5ee10881"}], "id": "leafbenchv2_train_0", "messages": [ {"role": "user", "content": [ {"type": "image", "text": null}, {"type": "text", "text": "What disease is shown on the Apple leaf in this image?\nA. Black rot\nB. Powdery mildew\nC. Narrow Brown Spot\nD. leaf blight"} ]}, {"role": "assistant", "content": [{"type": "text", "text": "A. Black rot"}]} ], "raw_metadata": "{\"question_id\": \"DI:1\", \"question_type\": \"DI\", \"image_folder\": \"Apple___Black_rot\", \"raw_image_paths\": [\"Apple___Black_rot_0156.JPG\"]}" } ``` ### Changes from the original data - Built from the 7 parquet files in `data/`. All 54,580 rows are kept in the same order. The source has one `test` split, which is stored here as `train`. - Options come from the `A` to `D` columns and are added to the question as lines like `A. text`. Option text is kept exactly as written, including extra spaces and the literal `nan` options. - Answers combine the answer letter and its option text, for example `A. Black rot`. In 2,705 rows the correct option is `nan`, mostly pathogen and scientific name questions on healthy leaves. These rows are kept as they are, so their answer reads like `C. nan`. - `raw_metadata` keeps `question_id`, `question_type` and `image_folder`. The `image_name` column is kept in `raw_image_paths`. The question, options and answer are already in `messages`. - The images were stored inside the source parquet files, once per question. They are moved into a zip shard and stored once, deduplicated by SHA256. The rows name 6,305 different images, which hold 6,189 unique images. The paper reports 6,361 benchmark images. - The images here are encoded differently from the same pictures in LeafNet 2.0, for example PNG instead of JPEG, so only 25 of them share a hash with LeafNet 2.0 images. ## Usage ```python from agml import loadImageTextToTextDataset dataset = loadImageTextToTextDataset("Project-AgML/LeafBenchV2") sample = dataset["train"][0] sample["images"] # list of PIL images sample["messages"] ``` ## Citation ```bibtex @article{nguyen2026leafnet2, title={A multiregional image--text dataset and benchmark for vision-language modeling of plant diseases}, author={Nguyen, Trang V. and Quoc, Khang Nguyen and Harwath, David and Quach, Luyl-Da and Dao, Phuong D.}, journal={bioRxiv}, year={2026}, doi={10.64898/2026.07.01.735881} } @article{quoc2026leafnet, title={LeafNet: A Large-Scale Dataset and Comprehensive Benchmark for Foundational Vision-Language Understanding of Plant Diseases}, author={Quoc, Khang Nguyen and Dao, Phuong D and Quach, Luyl-Da}, journal={arXiv preprint arXiv:2602.13662}, year={2026} } ``` This dataset is indexed and structured on https://project-agml.github.io/ as part of Project AgML @ UC Davis. 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.