The dataset viewer is not available for this dataset.
Error code: ConfigNamesError
Exception: RuntimeError
Message: Dataset scripts are no longer supported, but found beans.py
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 66, in compute_config_names_response
config_names = get_dataset_config_names(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 161, in get_dataset_config_names
dataset_module = dataset_module_factory(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/load.py", line 1207, in dataset_module_factory
raise e1 from None
File "/usr/local/lib/python3.12/site-packages/datasets/load.py", line 1167, in dataset_module_factory
raise RuntimeError(f"Dataset scripts are no longer supported, but found {filename}")
RuntimeError: Dataset scripts are no longer supported, but found beans.pyNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Dataset Card for Beans
Dataset Details
Dataset Description
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
Dataset Structure
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
BibTeX:
@misc{makerere2020beans, author = "{Makerere AI Lab}", title = "{Bean Disease Dataset}", year = "2020", month = "January", url = "https://github.com/AI-Lab-Makerere/ibean/" }
- Downloads last month
- 12