Image-Text-to-Text
sam2
English
agriculture
multimodal
vision-language
visual-grounding
image-segmentation
grounded-caption-generation
referring-expression-segmentation
bioclip
dinov3
Run this model with HF Jobs
Run boudiafA/AgriScope on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/boudiafA/AgriScope. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/boudiafA/AgriScope on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/boudiafA/AgriScope. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/boudiafA/AgriScope. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use boudiafA/AgriScope with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sam2
How to use boudiafA/AgriScope with sam2:
# Use SAM2 with images import torch from sam2.sam2_image_predictor import SAM2ImagePredictor predictor = SAM2ImagePredictor.from_pretrained("boudiafA/AgriScope") with torch.inference_mode(), torch.autocast("cuda", dtype=torch.bfloat16): predictor.set_image(<your_image>) masks, _, _ = predictor.predict(<input_prompts>)# Use SAM2 with videos import torch from sam2.sam2_video_predictor import SAM2VideoPredictor predictor = SAM2VideoPredictor.from_pretrained("boudiafA/AgriScope") with torch.inference_mode(), torch.autocast("cuda", dtype=torch.bfloat16): state = predictor.init_state(<your_video>) # add new prompts and instantly get the output on the same frame frame_idx, object_ids, masks = predictor.add_new_points(state, <your_prompts>) # propagate the prompts to get masklets throughout the video for frame_idx, object_ids, masks in predictor.propagate_in_video(state): ... - Notebooks
- Google Colab
- Kaggle
Add AgriScope model card and project assets
Browse filesFiles changed (13)
- .gitattributes+7
- .gitignoreAdded+20
- CITATION.cffAdded+20
- LICENSEAdded+201
- README.md+274
- docs/TASKS.mdAdded+65
- images/annotation_pipeline.pngAdded
- images/architecture.pngAdded
- images/overview.pngAdded
- images/qualitative_gcg.pngAdded
- images/qualitative_tasks.pngAdded
- images/referring_segmentation_comparison.pngAdded
- images/task_examples_v3.pngAdded
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353637383940414232 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textimages/annotation_pipeline.png filter=lfs diff=lfs merge=lfs -textimages/architecture.png filter=lfs diff=lfs merge=lfs -textimages/overview.png filter=lfs diff=lfs merge=lfs -textimages/qualitative_gcg.png filter=lfs diff=lfs merge=lfs -textimages/qualitative_tasks.png filter=lfs diff=lfs merge=lfs -textimages/referring_segmentation_comparison.png filter=lfs diff=lfs merge=lfs -textimages/task_examples_v3.png filter=lfs diff=lfs merge=lfs -text
1234567891011121314151617181920__pycache__/*.py[cod]*.so
.DS_StoreThumbs.db
.venv/venv/env/.env
checkpoints/weights/outputs/results/wandb/
*.log*.tmp1234567891011121314151617181920cff-version: 1.2.0message: "If you use AgriScope in your research, please cite the accompanying paper."title: "AgriScope: Pixel-Grounded Multimodal Understanding for Agriculture Images"type: softwareauthors: - family-names: Boudiaf given-names: Abderrahmene - family-names: Alanssari given-names: Mohamad - family-names: Hussain given-names: Irfan - family-names: Javed given-names: Sajidrepository-code: "https://github.com/boudiafA/AgriScope"url: "https://github.com/boudiafA/AgriScope"license: Apache-2.0date-released: 2026-07-17abstract: >- AgriScope is a unified pixel-grounded multimodal framework for image-level, region-level, and pixel-level understanding of agricultural imagery.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201Apache LicenseVersion 2.0, January 2004http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets.) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.123---license: apache-2.0---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277---license: apache-2.0language:- enpipeline_tag: image-text-to-texttags:- agriculture- multimodal- vision-language- visual-grounding- image-segmentation- grounded-caption-generation- referring-expression-segmentation- sam2- bioclip- dinov3inference: false---# AgriScope<p align="center"><strong>Pixel-Grounded Multimodal Understanding for Agriculture Images</strong></p><p align="center"><strong>Abderrahmene Boudiaf, Mohamad Alanssari, Irfan Hussain, Sajid Javed</strong><br>Khalifa University of Science and Technology, Abu Dhabi, UAE</p><p align="center"><a href="https://github.com/boudiafA/AgriScope"><img src="https://img.shields.io/badge/GitHub-Repository-181717" alt="GitHub repository"></a><img src="https://img.shields.io/badge/Paper-Coming%20soon-lightgrey" alt="Paper coming soon"><img src="https://img.shields.io/badge/Weights-Coming%20soon-lightgrey" alt="Weights coming soon"><img src="https://img.shields.io/badge/Dataset-Coming%20soon-lightgrey" alt="Dataset coming soon"></p>> **Release status:** This repository currently provides the AgriScope model card, project figures, task definitions, and reported manuscript results. Model weights, configuration files, processors, training code, and AgriGround annotations are coming soon.## Model Description<p align="center"><img src="images/overview.png" alt="AgriScope and AgriGround overview" width="100%"></p>**AgriScope** is a pixel-grounded multimodal model for agricultural image understanding. It supports image-level, region-level, and pixel-level interaction within one framework, connecting generated agricultural concepts to segmentation masks and spatial annotations.The model is designed to identify, describe, localize, and segment agricultural entities including plant diseases, lesions, pests, crops, weeds, botanical species, plant organs, and structural features. It supports both text-only responses and responses grounded in masks or normalized bounding boxes.AgriScope is trained with **AgriGround**, a large-scale pixel-grounded agricultural instruction-tuning dataset containing **503,919 images** and **11,421,148 samples** across **14 tasks**.### Model Details| Property | Description ||---|---|| Model type | Pixel-grounded multimodal language model || Domain | Agriculture and plant imagery || Languages | English || Parameter count | 2B total parameters, as reported in the manuscript || Visual representation | Biological semantic and dense spatial encoders || Grounding | Language-conditioned `[SEG]` states with a SAM2-driven decoder || Adaptation | Projection alignment followed by LoRA instruction tuning || License | Apache-2.0 for repository materials and future code release || Model weights | **Coming soon** |## Architecture<p align="center"><img src="images/architecture.png" alt="AgriScope architecture" width="100%"></p>AgriScope combines complementary semantic and spatial pathways:1. A biological contextual encoder extracts agricultural and biological semantics.2. A global contextual encoder preserves texture, morphology, boundaries, and dense spatial information.3. Projection layers map visual representations into the multimodal language space.4. The language model generates text and special `[SEG]` tokens for grounded concepts.5. Each `[SEG]` hidden state conditions the SAM2-driven mask decoder to produce a corresponding pixel-level mask.The manuscript implementation initializes its visual and grounding components from BioCLIP, DINOv3, and SAM2. The large pretrained encoders remain frozen while alignment modules and LoRA parameters are optimized.### Inputs- An agricultural RGB image- A natural-language instruction or question- An optional region for region-conditioned tasks- Optional conversation history for multi-turn interaction### Outputs- Natural-language captions and answers- Interleaved grounded captions with phrase-mask correspondence- Referring-expression, semantic, and part segmentation masks- Region-conditioned descriptions and conversations- Counts and normalized bounding boxes- Multi-turn grounded responses## Intended Uses### Primary Research Uses- Agricultural image captioning and visual question answering- Plant disease, pest, weed, crop, and species understanding- Referring expression and semantic segmentation- Grounded caption generation- Region-level and multi-turn grounded interaction- Agricultural object counting, detection, and localization- Research on interpretable and evidence-grounded agricultural AI### Out-of-Scope Uses- Autonomous pesticide, treatment, or crop-management decisions without expert review- Safety-critical agricultural robotics without independent perception safeguards- Regulatory, insurance, or legal determinations- Identification of entities outside the supported visual and agricultural domains## AgriGround Training Data<p align="center"><img src="images/annotation_pipeline.png" alt="AgriGround annotation pipeline" width="100%"></p>AgriGround is produced using a four-stage annotation and task-generation pipeline:1. Generate detailed image captions, class descriptions, counts, and bounding-box metadata.2. Correct captions, identify grounded object phrases, and prepare segmentation prompts.3. Generate and align segmentation masks with grounded phrases.4. Synthesize instruction-following records for the 14 supported tasks.### Dataset Statistics| Split | Images | Samples | Average samples/image ||---|---:|---:|---:|| Train | 401,234 | 9,095,320 | 22.66 || Test | 102,685 | 2,325,828 | 22.66 || **Total** | **503,919** | **11,421,148** | **22.66** || Source group | Images | Share ||---|---:|---:|| Classification datasets | 232,923 | 46.22% || Detection datasets | 27,938 | 5.54% || iNatAg subset | 169,324 | 33.60% || Insects (IP102) | 73,734 | 14.63% |### Supported Tasks| Family | Tasks ||---|---|| Captioning | Image-level captioning, region-level captioning, grounded caption generation || Segmentation | Referring expression segmentation, semantic segmentation, part segmentation || Detection and localization | Phrase grounding, grounded counting, grounded detection, reasoning detection || Conversation and QA | Region-level conversation, multi-turn grounded conversation, classification QA, negative absence QA |<p align="center"><img src="images/task_examples_v3.png" alt="Task-specific AgriGround examples" width="62%"></p>See [docs/TASKS.md](docs/TASKS.md) for definitions and per-task sample counts.The source agricultural images are not distributed in this repository. Their original licenses and terms remain applicable. Annotation download instructions and dataset-specific licensing details will accompany the public dataset release.## Training ProcedureTraining follows two stages described in the manuscript:1. **Visual-language and grounding alignment:** optimize projection layers, grounding modules, and the segmentation decoder while keeping the pretrained backbones frozen.2. **Instruction tuning:** apply parameter-efficient LoRA adaptation using the 14 AgriGround tasks while retaining frozen visual encoders.The joint objective combines autoregressive language modeling with binary cross-entropy and Dice losses for segmentation supervision. Full hyperparameters, preprocessing, and reproducibility scripts will be released with the code.## EvaluationThe following results are reported in the current manuscript draft.| Task | Metrics | AgriScope ||---|---|---:|| Image-level captioning | CIDEr / ASF | **146.4 / 86.7** || Region-level captioning | CIDEr / ASF | **132.5 / 84.8** || Classification QA | Accuracy / F1 | **82.4 / 80.7** || Grounded counting | Accuracy | **74.8** || Semantic segmentation | mIoU / Dice | **66.1 / 78.4** || Referring expression segmentation | J&F / cIoU | **67.30 / 72.65** || Grounded caption generation | METEOR / CIDEr | **27.9 / 118.6** || Grounded caption generation | AP50 / mIoU / Recall | **63.9 / 59.4 / 74.2** |### Efficiency| Parameters | GFLOPs | GPU memory | Inference time ||---:|---:|---:|---:|| **2B** | **177** | **6 GB** | **480 ms/image** |Complete baseline comparisons, cross-dataset evaluation, ablations, and experimental settings will accompany the paper release.## Qualitative Results### Grounded Caption Generation<p align="center"><img src="images/qualitative_gcg.png" alt="AgriScope grounded caption generation examples" width="100%"></p>### Representative Tasks<p align="center"><img src="images/qualitative_tasks.png" alt="AgriScope representative task results" width="100%"></p>### Referring Expression Segmentation<p align="center"><img src="images/referring_segmentation_comparison.png" alt="Referring expression segmentation comparison" width="100%"></p>## Limitations and Risks- AgriScope can produce plausible but incorrect descriptions, classifications, counts, or masks.- Performance may degrade under poor illumination, blur, occlusion, unusual viewpoints, severe domain shift, or very small targets.- Fine-grained diseases, species, and pests with similar visual characteristics may be confused.- Segmentation quality depends on the visual coverage and annotation quality of the training data.- Dataset composition may encode geographic, crop, acquisition, and class-frequency biases from its source datasets.- Outputs require review by qualified agricultural experts before being used for diagnosis or management decisions.## Repository Contents```text.|-- README.md|-- CITATION.cff|-- LICENSE|-- docs/| `-- TASKS.md`-- images/|-- overview.png|-- architecture.png|-- annotation_pipeline.png|-- task_examples_v3.png|-- qualitative_gcg.png|-- qualitative_tasks.png`-- referring_segmentation_comparison.png```## Release Roadmap| Resource | Status ||---|---|| Model weights and configuration | **Coming soon** || Processor and inference example | **Coming soon** || Training and evaluation code | **Coming soon** || AgriGround train/test annotations | **Coming soon** || Paper and final citation | **Coming soon** |Development updates and future code releases are tracked in the [AgriScope GitHub repository](https://github.com/boudiafA/AgriScope).## CitationThe final paper link and citation will be added upon release. Until then, please use:```bibtex@misc{boudiaf2026agriscope,title = {AgriScope: Pixel-Grounded Multimodal Understanding for Agriculture Images},author = {Boudiaf, Abderrahmene and Alanssari, Mohamad and Hussain, Irfan and Javed, Sajid},year = {2026},note = {Manuscript under review}}```## LicenseRepository documentation and the future code release are provided under the [Apache License 2.0](LICENSE). AgriGround annotations and source images may be subject to separate terms, which will be documented with the dataset release.## AcknowledgmentsThis work was conducted at Khalifa University of Science and Technology, Abu Dhabi, UAE. We acknowledge the creators and maintainers of the agricultural datasets and open-source foundation models that support this research.## ContactFor questions and collaborations, use the [AgriScope GitHub issue tracker](https://github.com/boudiafA/AgriScope/issues) or the Hugging Face Community tab.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465# AgriGround Task Reference
AgriGround contains 14 instruction-tuning tasks spanning captioning, segmentation, localization, counting, conversation, and agricultural question answering. Counts below follow the current manuscript statistics and include both train and test samples.
## Task Distribution
| Task | Output supervision | Train | Test | Total | Share ||---|---|---:|---:|---:|---:|| Semantic segmentation | Text + masks | 1,651,229 | 422,187 | 2,073,416 | 18.15% || Phrase grounding | Bounding boxes | 1,638,327 | 418,948 | 2,057,275 | 18.01% || Referring expression segmentation | Text + masks | 1,638,327 | 418,948 | 2,057,275 | 18.01% || Part segmentation | Text + masks | 820,240 | 209,124 | 1,029,364 | 9.01% || Region-level conversation | Region + multi-turn text | 749,141 | 191,757 | 940,898 | 8.24% || Region-level captioning | Region + text | 722,833 | 185,023 | 907,856 | 7.95% || Classification QA | Text | 639,962 | 163,786 | 803,748 | 7.04% || Image-level captioning | Text | 400,872 | 102,587 | 503,459 | 4.41% || Grounded caption generation | Interleaved text + masks | 379,023 | 97,007 | 476,030 | 4.17% || Multi-turn grounded conversation | Multi-turn text + masks | 379,023 | 97,007 | 476,030 | 4.17% || Grounded counting | Count | 21,865 | 5,596 | 27,461 | 0.24% || Grounded detection | Count + bounding boxes | 21,637 | 5,535 | 27,172 | 0.24% || Reasoning detection | Count + bounding boxes | 21,637 | 5,535 | 27,172 | 0.24% || Negative absence QA | Text | 11,204 | 2,788 | 13,992 | 0.12% || **Total** | | **9,095,320** | **2,325,828** | **11,421,148** | **100%** |
## Task Definitions
### Captioning
**Image-level captioning** generates a holistic agricultural description without requiring spatial output.
**Region-level captioning** receives a specified image region and describes the localized agricultural content.
**Grounded caption generation** produces a detailed caption with grounded phrases interleaved with `[SEG]` tokens. Every grounded phrase is paired with a corresponding mask.
### Segmentation
**Referring expression segmentation** segments the object or region described by a natural-language expression.
**Semantic segmentation** segments one or more instances of a requested semantic category.
**Part segmentation** targets a specific plant or object component, such as a stem, branch, leaf, flower structure, or lesion.
### Detection and Localization
**Phrase grounding** maps a phrase to a normalized bounding box.
**Grounded counting** reports the number of requested agricultural objects in an image.
**Grounded detection** reports the count and normalized bounding boxes for all requested instances.
**Reasoning detection** uses an agricultural-context prompt to infer and localize the target instances.
### Conversation and QA
**Region-level conversation** supports follow-up questions about a selected image region.
**Multi-turn grounded conversation** combines image-level discussion with later phrase localization or segmentation.
**Classification QA** answers questions about species, diseases, pests, weeds, conditions, and other agricultural classes.
**Negative absence QA** teaches the model to state when a requested entity is not visible instead of producing an unsupported mask.
## Annotation Representation
The public schema will be documented with the annotation release. Records are expected to include an image reference, task identifier, user instruction, target response, and task-dependent spatial supervision such as masks, regions, or normalized bounding boxes..gitattributes+7
.gitignoreAdded+20
CITATION.cffAdded+20
LICENSEAdded+201
README.md+274
docs/TASKS.mdAdded+65
images/annotation_pipeline.pngAdded

Large File Pointer Details
- SHA256: 18cd325258e6a68bf9547e32854eb1ff4267b7ca12cfdd93dfe3fbbf0622fe4f
- Pointer size: 132 Bytes
- Size of remote file: 1.4 MB
images/architecture.pngAdded

Large File Pointer Details
- SHA256: 2fdc313527e9bbf04c24277d67f6d801986c46b4a35a1a55c1c305a9d6aa048c
- Pointer size: 131 Bytes
- Size of remote file: 780 kB
images/overview.pngAdded

Large File Pointer Details
- SHA256: 9c8cda711cfd79afdd97ec3e3671155e6e768a290924e53af4ed6797ffa990f8
- Pointer size: 132 Bytes
- Size of remote file: 1.64 MB
images/qualitative_gcg.pngAdded

Large File Pointer Details
- SHA256: 617a87684e9af9a3bf97df0e732aabb38b5b46033de52b5f68eb3cd5e91dc122
- Pointer size: 132 Bytes
- Size of remote file: 1.67 MB
images/qualitative_tasks.pngAdded

Large File Pointer Details
- SHA256: d0d6f409229289c53f36d86f2f37b9b2bbf65e64fa41fc21683e259fe2603671
- Pointer size: 132 Bytes
- Size of remote file: 1.82 MB
images/referring_segmentation_comparison.pngAdded

Large File Pointer Details
- SHA256: d2d30b1aa3b8923878c54e0393fda9c3040844fdb5e9d812817a0c7996ef922b
- Pointer size: 132 Bytes
- Size of remote file: 1.39 MB
images/task_examples_v3.pngAdded

Large File Pointer Details
- SHA256: 5907e8f5c78b06db9e1f6ca64e13aee87888f8de22e695435e56cf5e0a54a609
- Pointer size: 132 Bytes
- Size of remote file: 2.89 MB