--- configs: - config_name: default data_files: - split: train path: data/train-* license: cc-by-nc-4.0 task_categories: - image-text-to-text size_categories: - 10K"} ] }, { "role": "assistant", "content": [{"type": "text", "text": ""}] } ] ``` ### `raw_metadata` structure `raw_metadata` is a JSON string (not a native struct) — this is intentional, as it allows `concatenate_datasets()` to work across subsets whose original source fields differ in type. Restore fields with `json.loads(row["raw_metadata"])`. It always contains `file_names` for image path traceability: ```python { "file_names": ["images/Agriculture/filename.jpg"], # ...original source fields preserved verbatim } ``` --- ## Usage ```python from datasets import load_dataset # Load the full dataset ds = load_dataset("Project-AgML/AgroMind") # Stream without downloading ds = load_dataset("Project-AgML/AgroMind", streaming=True) # Filter by subset using origin_dataset agriculture = ds["train"].filter(lambda x: x["origin_dataset"] == "Agriculture") # Or filter using the id field (format: agromind_{subset}_{index}) crop_harvest = ds["train"].filter(lambda x: x["id"].split("_")[1] == "CropHarvest") ``` ### Accessing images Images are stored as embedded bytes and decoded to PIL automatically: ```python row = ds["train"][0] image = row["images"][0] # PIL Image, ready to use print(image.size) # (width, height) print(image.mode) # RGB ``` ### Restoring raw metadata ```python import json meta = json.loads(row["raw_metadata"]) print(meta["file_names"]) # ['images/Agriculture/filename.jpg'] ``` --- ## Citation ```bibtex @misc{li2025largemultimodalmodelsunderstand, title={Can Large Multimodal Models Understand Agricultural Scenes? Benchmarking with AgroMind}, author={Li, Qingmei and Zhang, Yang and Mai, Zurong and Chen, Yuhang and Lou, Shuohong and Huang, Henglian and Zhang, Jiarui and Zhang, Zhiwei and Wen, Yibin and Li, Weijia and Fu, Haohuan and Huang, Jianxi and Zheng, Juepeng}, year={2025}, eprint={2505.12207}, archivePrefix={arXiv}, primaryClass={cs.CV}, url={https://arxiv.org/abs/2505.12207} } ```