esha245 parquet-converter commited on
Commit
be7c23f
·
0 Parent(s):

Duplicate from AI-Lab-Makerere/beans

Browse files

Co-authored-by: Parquet-converter (BOT) <parquet-converter@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bin.* filter=lfs diff=lfs merge=lfs -text
5
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.model filter=lfs diff=lfs merge=lfs -text
12
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
13
+ *.onnx filter=lfs diff=lfs merge=lfs -text
14
+ *.ot filter=lfs diff=lfs merge=lfs -text
15
+ *.parquet filter=lfs diff=lfs merge=lfs -text
16
+ *.pb filter=lfs diff=lfs merge=lfs -text
17
+ *.pt filter=lfs diff=lfs merge=lfs -text
18
+ *.pth filter=lfs diff=lfs merge=lfs -text
19
+ *.rar filter=lfs diff=lfs merge=lfs -text
20
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
21
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
22
+ *.tflite filter=lfs diff=lfs merge=lfs -text
23
+ *.tgz filter=lfs diff=lfs merge=lfs -text
24
+ *.xz filter=lfs diff=lfs merge=lfs -text
25
+ *.zip filter=lfs diff=lfs merge=lfs -text
26
+ *.zstandard filter=lfs diff=lfs merge=lfs -text
27
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,211 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - expert-generated
4
+ language_creators:
5
+ - expert-generated
6
+ language:
7
+ - en
8
+ license:
9
+ - mit
10
+ multilinguality:
11
+ - monolingual
12
+ size_categories:
13
+ - 1K<n<10K
14
+ source_datasets:
15
+ - original
16
+ task_categories:
17
+ - image-classification
18
+ task_ids:
19
+ - multi-class-image-classification
20
+ pretty_name: Beans
21
+ dataset_info:
22
+ features:
23
+ - name: image_file_path
24
+ dtype: string
25
+ - name: image
26
+ dtype: image
27
+ - name: labels
28
+ dtype:
29
+ class_label:
30
+ names:
31
+ '0': angular_leaf_spot
32
+ '1': bean_rust
33
+ '2': healthy
34
+ splits:
35
+ - name: train
36
+ num_bytes: 143762054.662
37
+ num_examples: 1034
38
+ - name: validation
39
+ num_bytes: 18515527.0
40
+ num_examples: 133
41
+ - name: test
42
+ num_bytes: 17720308.0
43
+ num_examples: 128
44
+ download_size: 179978834
45
+ dataset_size: 179997889.662
46
+ configs:
47
+ - config_name: default
48
+ data_files:
49
+ - split: train
50
+ path: data/train-*
51
+ - split: validation
52
+ path: data/validation-*
53
+ - split: test
54
+ path: data/test-*
55
+ ---
56
+
57
+ # Dataset Card for Beans
58
+
59
+ ## Table of Contents
60
+ - [Table of Contents](#table-of-contents)
61
+ - [Dataset Description](#dataset-description)
62
+ - [Dataset Summary](#dataset-summary)
63
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
64
+ - [Languages](#languages)
65
+ - [Dataset Structure](#dataset-structure)
66
+ - [Data Instances](#data-instances)
67
+ - [Data Fields](#data-fields)
68
+ - [Data Splits](#data-splits)
69
+ - [Dataset Creation](#dataset-creation)
70
+ - [Curation Rationale](#curation-rationale)
71
+ - [Source Data](#source-data)
72
+ - [Annotations](#annotations)
73
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
74
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
75
+ - [Social Impact of Dataset](#social-impact-of-dataset)
76
+ - [Discussion of Biases](#discussion-of-biases)
77
+ - [Other Known Limitations](#other-known-limitations)
78
+ - [Additional Information](#additional-information)
79
+ - [Dataset Curators](#dataset-curators)
80
+ - [Licensing Information](#licensing-information)
81
+ - [Citation Information](#citation-information)
82
+ - [Contributions](#contributions)
83
+
84
+ ## Dataset Description
85
+
86
+ - **Homepage:** [Beans Homepage](https://github.com/AI-Lab-Makerere/ibean/)
87
+ - **Repository:** [AI-Lab-Makerere/ibean](https://github.com/AI-Lab-Makerere/ibean/)
88
+ - **Paper:** N/A
89
+ - **Leaderboard:** N/A
90
+ - **Point of Contact:** N/A
91
+
92
+ ### Dataset Summary
93
+
94
+ Beans leaf dataset with images of diseased and health leaves.
95
+
96
+ ### Supported Tasks and Leaderboards
97
+
98
+ - `image-classification`: Based on a leaf image, the goal of this task is to predict the disease type (Angular Leaf Spot and Bean Rust), if any.
99
+
100
+ ### Languages
101
+
102
+ English
103
+
104
+ ## Dataset Structure
105
+
106
+ ### Data Instances
107
+
108
+ A sample from the training set is provided below:
109
+
110
+ ```
111
+ {
112
+ 'image_file_path': '/root/.cache/huggingface/datasets/downloads/extracted/0aaa78294d4bf5114f58547e48d91b7826649919505379a167decb629aa92b0a/train/bean_rust/bean_rust_train.109.jpg',
113
+ 'image': <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=500x500 at 0x16BAA72A4A8>,
114
+ 'labels': 1
115
+ }
116
+ ```
117
+
118
+ ### Data Fields
119
+
120
+ The data instances have the following fields:
121
+
122
+ - `image_file_path`: a `string` filepath to an image.
123
+ - `image`: A `PIL.Image.Image` object containing the image. Note that when accessing the image column: `dataset[0]["image"]` the image file is automatically decoded. Decoding of a large number of image files might take a significant amount of time. Thus it is important to first query the sample index before the `"image"` column, *i.e.* `dataset[0]["image"]` should **always** be preferred over `dataset["image"][0]`.
124
+ - `labels`: an `int` classification label.
125
+
126
+ Class Label Mappings:
127
+
128
+ ```json
129
+ {
130
+ "angular_leaf_spot": 0,
131
+ "bean_rust": 1,
132
+ "healthy": 2,
133
+ }
134
+ ```
135
+
136
+ ### Data Splits
137
+
138
+
139
+ | |train|validation|test|
140
+ |-------------|----:|---------:|---:|
141
+ |# of examples|1034 |133 |128 |
142
+
143
+ ## Dataset Creation
144
+
145
+ ### Curation Rationale
146
+
147
+ [More Information Needed]
148
+
149
+ ### Source Data
150
+
151
+ #### Initial Data Collection and Normalization
152
+
153
+ [More Information Needed]
154
+
155
+ #### Who are the source language producers?
156
+
157
+ [More Information Needed]
158
+
159
+ ### Annotations
160
+
161
+ #### Annotation process
162
+
163
+ [More Information Needed]
164
+
165
+ #### Who are the annotators?
166
+
167
+ [More Information Needed]
168
+
169
+ ### Personal and Sensitive Information
170
+
171
+ [More Information Needed]
172
+
173
+ ## Considerations for Using the Data
174
+
175
+ ### Social Impact of Dataset
176
+
177
+ [More Information Needed]
178
+
179
+ ### Discussion of Biases
180
+
181
+ [More Information Needed]
182
+
183
+ ### Other Known Limitations
184
+
185
+ [More Information Needed]
186
+
187
+ ## Additional Information
188
+
189
+ ### Dataset Curators
190
+
191
+ [More Information Needed]
192
+
193
+ ### Licensing Information
194
+
195
+ [More Information Needed]
196
+
197
+ ### Citation Information
198
+
199
+ ```
200
+ @ONLINE {beansdata,
201
+ author="Makerere AI Lab",
202
+ title="Bean disease dataset",
203
+ month="January",
204
+ year="2020",
205
+ url="https://github.com/AI-Lab-Makerere/ibean/"
206
+ }
207
+ ```
208
+
209
+ ### Contributions
210
+
211
+ Thanks to [@nateraw](https://github.com/nateraw) for adding this dataset.
data/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:534a6b0648f585d69b7ec0ad7a7540720d60c8db8106dc6d0508296316f6cb27
3
+ size 17706070
data/test.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca67b15d960d1e2fd9d23fd8498ce86818ead90755c630a43baf19ec4af09312
3
+ size 17708541
data/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f905a7323966a58e89b8e839ed656bb869fc82d16a3fadc7dce40972a5f8b19
3
+ size 143773054
data/train.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:284fe8456ce20687f4367ae7ad94a64577e7f9fde2c2c6b1c74340ab5dc82715
3
+ size 143812152
data/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33f774593d8b31585457b70c224744e9409ffdee4e91a11822b1ebfe8242928f
3
+ size 18499710
data/validation.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90b7aa1c26d91d9afff07a30bbc67a5ea34f1f1397f068d8675be09d7d0c602d
3
+ size 18504213