Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -74,6 +74,19 @@ The original images were collected by the [Makerere AI Lab](https://github.com/A
|
|
| 74 |
- Each split contains subfolders for the three classes
|
| 75 |
- Images are in JPEG format, 500x500 pixels
|
| 76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
## License
|
| 78 |
|
| 79 |
MIT License (inherited from the original [ibean GitHub repository](https://github.com/AI-Lab-Makerere/ibean))
|
|
|
|
| 74 |
- Each split contains subfolders for the three classes
|
| 75 |
- Images are in JPEG format, 500x500 pixels
|
| 76 |
|
| 77 |
+
## Usage
|
| 78 |
+
|
| 79 |
+
```python
|
| 80 |
+
from datasets import load_dataset
|
| 81 |
+
|
| 82 |
+
# Set drop_labels=False to retain the label column
|
| 83 |
+
dataset = load_dataset("darcieg/bean-disease-uganda", split="train", drop_labels=False)
|
| 84 |
+
|
| 85 |
+
image = dataset[0]["image"]
|
| 86 |
+
label = dataset[0]["label"]
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
_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._
|
| 90 |
## License
|
| 91 |
|
| 92 |
MIT License (inherited from the original [ibean GitHub repository](https://github.com/AI-Lab-Makerere/ibean))
|