File size: 2,417 Bytes
71cb82a 9b9e667 71cb82a a103da9 71cb82a a103da9 71cb82a a103da9 71cb82a bb9c07e 71cb82a bb9c07e 71cb82a bb9c07e 71cb82a bb9c07e 71cb82a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
---
# For reference on dataset card metadata, see the spec: https://github.com/huggingface/hub-docs/blob/main/datasetcard.md?plain=1
# Doc / guide: https://huggingface.co/docs/hub/datasets-cards
{}
---
# Dataset Card for Beans
<!-- Provide a quick summary of the dataset. -->
## Dataset Details
### Dataset Description
<!-- Provide a longer summary of what this dataset is. -->
The Beans dataset contains 1,296 images of bean plant leaves, categorized into three classes:
- **Healthy**
- **Angular Leaf Spot (disease)**
- **Bean Rust (disease)**
The images were collected in Ugandan fields by the Makerere AI Lab in collaboration with the National Crops Resources Research Institute (NaCRRI). Each image was annotated during data collection by agricultural experts. The dataset is intended for plant disease classification and can be used to develop machine learning models for mobile-based agricultural diagnostics.
- **License:** MIT
### Dataset Sources
<!-- Provide the basic links for the dataset. -->
- **Homepage:** https://github.com/AI-Lab-Makerere/ibean/
## Dataset Structure
<!-- This section provides a description of the dataset fields, and additional information about the dataset structure such as criteria used to create the splits, relationships between data points, etc. -->
Total images: 1,296
Classes: 3 categories
Splits:
- **Train:** 1,034 images
- **Validation:** 133 images
- **Test:** 128 images
Image specs: JPEG format, RGB images
## Example Usage
Below is a quick example of how to load this dataset via the Hugging Face Datasets library.
```
from datasets import load_dataset
# Load the dataset
dataset = load_dataset("randall-lab/beans", split="train", trust_remote_code=True)
# dataset = load_dataset("randall-lab/beans", split="test", trust_remote_code=True)
# dataset = load_dataset("randall-lab/beans", split="validation", trust_remote_code=True)
# Access a sample from the dataset
example = dataset[0]
image = example["image"]
label = example["label"]
image.show() # Display the image
print(f"Label: {label}")
```
## Citation
<!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. -->
**BibTeX:**
@misc{makerere2020beans,
author = "{Makerere AI Lab}",
title = "{Bean Disease Dataset}",
year = "2020",
month = "January",
url = "https://github.com/AI-Lab-Makerere/ibean/"
} |