File size: 2,731 Bytes
164020a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37157e3
164020a
 
37157e3
164020a
 
 
 
 
 
 
 
 
 
 
 
37157e3
 
164020a
09afb71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3edb07d
 
 
 
 
 
 
 
 
 
 
 
 
09afb71
 
 
 
 
 
 
 
 
 
 
 
 
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
---
dataset_info:
  features:
  - name: image
    dtype: image
  - name: label
    dtype:
      class_label:
        names:
          '0': angular_leaf_spot
          '1': bean_rust
          '2': healthy
          '3': win32rcparser
  splits:
  - name: train
    num_bytes: 143583487.662
    num_examples: 1034
  - name: validation
    num_bytes: 18492287
    num_examples: 133
  - name: test
    num_bytes: 17700139
    num_examples: 130
  download_size: 179940892
  dataset_size: 179775913.662
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
  - split: validation
    path: data/validation-*
  - split: test
    path: data/test-*
task_categories:
- image-classification
---


---
dataset_name: bean-disease-uganda
annotations_creators:
  - expert-generated
language_creators:
  - found
task_categories:
  - image-classification
  - computer-vision
task_ids:
  - image-classification
language:
  - en
license: mit
pretty_name: Bean Disease Uganda
tags:
  - agriculture
  - plant-disease
  - imagefolder
  - beans
  - field-data
  - smartphone-images
  - open-access
---

# Bean Disease Uganda Dataset

This dataset contains images of bean leaves categorized into three classes: `angular_leaf_spot`, `bean_rust`, and `healthy`. It is intended for training and evaluating image classification models for plant disease detection.

## Source

The original images were collected by the [Makerere AI Lab](https://github.com/AI-Lab-Makerere/ibean) in collaboration with the [National Crops Resources Research Institute (NaCRRI)](https://www.nacrri.go.ug/). Images were taken in the field using smartphones and annotated by agricultural experts during collection.

## Structure

- `train/`, `validation/`, and `test/` splits
- Each split contains subfolders for the three classes
- Images are in JPEG format, 500x500 pixels

## Usage

```python
from datasets import load_dataset

# Set drop_labels=False to retain the label column
dataset = load_dataset("darcieg/bean-disease-uganda", split="train", drop_labels=False)

image = dataset[0]["image"]
label = dataset[0]["label"]
```

_Note: The `drop_labels=False` flag ensures that the `label` column is retained when loading the dataset. Without it, only the image column will be returned._
## License

MIT License (inherited from the original [ibean GitHub repository](https://github.com/AI-Lab-Makerere/ibean))

## Acknowledgments

This dataset builds on the foundational work of the Makerere AI Lab and NaCRRI. It is intended to make the data more accessible and usable via the Hugging Face Hub.

## Citation

If you use this dataset, please cite:

> Makerere AI Lab. "Bean disease dataset." January 2020. https://github.com/AI-Lab-Makerere/ibean/