leonleyang commited on
Commit
c88c392
·
verified ·
1 Parent(s): 7acc74c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +301 -27
README.md CHANGED
@@ -11,11 +11,8 @@
11
  ### Dataset Description
12
 
13
  <!-- Provide a longer summary of what this dataset is. -->
14
- This dataset contains 18 variants, **PathMNIST**, **ChestMNIST**, **DermaMNIST**
15
 
16
- **Kuzushiji-MNIST** is a drop-in replacement for the MNIST dataset.
17
-
18
- **Kuzushiji-49**, as the name suggests, has 49 classes, is a much larger, but imbalanced dataset containing 48 Hiragana characters and one Hiragana iteration mark.
19
 
20
  - **License:** CC BY 4.0
21
 
@@ -23,41 +20,300 @@ This dataset contains 18 variants, **PathMNIST**, **ChestMNIST**, **DermaMNIST**
23
 
24
  <!-- Provide the basic links for the dataset. -->
25
 
26
- - **Homepage:** https://github.com/rois-codh/kmnist
27
- - **Paper:** Clanuwat, T., Bober-Irizar, M., Kitamoto, A., Lamb, A., Yamamoto, K., & Ha, D. (2018). Deep learning for classical japanese literature. arXiv preprint arXiv:1812.01718.
28
 
29
  ## Dataset Structure
30
 
31
  <!-- 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. -->
32
 
33
- #### Kuzushiji-MNIST:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
- Total images: 70,000
36
 
37
- Classes: 10 categories
38
 
39
  Splits:
40
 
41
- - **Train:** 60,000 images
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
 
43
- - **Test:** 10,000 images
44
 
45
- Image specs: 28×28 pixels, grayscale
46
 
47
- #### Kuzushiji-49:
48
 
49
- Total images: 270,912
50
 
51
- Classes: 49 categories
52
 
53
  Splits:
54
 
55
- - **Train:** 232,365 images
56
 
57
- - **Test:** 38,547 images
58
 
59
- Image specs: 28×28 pixels, grayscale
60
 
 
61
 
62
  ## Example Usage
63
  Below is a quick example of how to load this dataset via the Hugging Face Datasets library.
@@ -65,10 +321,24 @@ Below is a quick example of how to load this dataset via the Hugging Face Datase
65
  from datasets import load_dataset
66
 
67
  # Load the dataset
68
- dataset = load_dataset("randall-lab/kmnist", name="kmnist", split="train", trust_remote_code=True)
69
- # dataset = load_dataset("randall-lab/kmnist", name="kmnist", split="test", trust_remote_code=True)
70
- # dataset = load_dataset("randall-lab/kmnist", name="k49mnist", split="train", trust_remote_code=True)
71
- # dataset = load_dataset("randall-lab/kmnist", name="k49mnist", split="test", trust_remote_code=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
 
73
  # Access a sample from the dataset
74
  example = dataset[0]
@@ -85,9 +355,13 @@ print(f"Label: {label}")
85
 
86
  **BibTeX:**
87
 
88
- @article{clanuwat2018deep,
89
- title={Deep learning for classical japanese literature},
90
- author={Clanuwat, Tarin and Bober-Irizar, Mikel and Kitamoto, Asanobu and Lamb, Alex and Yamamoto, Kazuaki and Ha, David},
91
- journal={arXiv preprint arXiv:1812.01718},
92
- year={2018}
 
 
 
 
93
  }
 
11
  ### Dataset Description
12
 
13
  <!-- Provide a longer summary of what this dataset is. -->
 
14
 
15
+ MedMNIST is a large-scale MNIST-like collection of standardized biomedical images, including 12 datasets for 2D and 6 datasets for 3D. All images are pre-processed into 28x28 (2D) or 28x28x28 (3D) with the corresponding classification labels.
 
 
16
 
17
  - **License:** CC BY 4.0
18
 
 
20
 
21
  <!-- Provide the basic links for the dataset. -->
22
 
23
+ - **Homepage:** https://medmnist.com/
24
+ - **Paper:** Yang, J., Shi, R., Wei, D., Liu, Z., Zhao, L., Ke, B., ... & Ni, B. (2023). Medmnist v2-a large-scale lightweight benchmark for 2d and 3d biomedical image classification. Scientific Data, 10(1), 41.
25
 
26
  ## Dataset Structure
27
 
28
  <!-- 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. -->
29
 
30
+ #### PathMNIST:
31
+
32
+ Total images: 107,180
33
+
34
+ Classes: 9 categories
35
+
36
+ Splits:
37
+
38
+ - **Train:** 89,996 images
39
+
40
+ - **Validation:** 10,004 images
41
+
42
+ - **Test:** 7,180 images
43
+
44
+ Image specs: 28×28 pixels
45
+
46
+ #### ChestMNIST:
47
+
48
+ Total images: 112,120
49
+
50
+ Classes: 14 categories (multi-label)
51
+
52
+ Splits:
53
+
54
+ - **Train:** 78,468 images
55
+
56
+ - **Validation:** 11,219 images
57
+
58
+ - **Test:** 22,433 images
59
+
60
+ Image specs: 28×28 pixels
61
+
62
+ #### DermaMNIST:
63
+
64
+ Total images: 10,015
65
+
66
+ Classes: 7 categories
67
+
68
+ Splits:
69
+
70
+ - **Train:** 7,007 images
71
+
72
+ - **Validation:** 1,003 images
73
+
74
+ - **Test:** 2,005 images
75
+
76
+ Image specs: 28×28 pixels
77
+
78
+ #### OCTMNIST:
79
+
80
+ Total images: 109,309
81
+
82
+ Classes: 4 categories
83
+
84
+ Splits:
85
+
86
+ - **Train:** 97,477 images
87
+
88
+ - **Validation:** 10,832 images
89
+
90
+ - **Test:** 1,000 images
91
+
92
+ Image specs: 28×28 pixels
93
+
94
+ #### PneumoniaMNIST:
95
+
96
+ Total images: 5,856
97
+
98
+ Classes: 2 categories
99
+
100
+ Splits:
101
+
102
+ - **Train:** 4,708 images
103
+
104
+ - **Validation:** 524 images
105
+
106
+ - **Test:** 624 images
107
+
108
+ Image specs: 28×28 pixels
109
+
110
+ #### RetinaMNIST:
111
+
112
+ Total images: 1,600
113
+
114
+ Classes: 5 categories (ordinal regression)
115
+
116
+ Splits:
117
+
118
+ - **Train:** 1,080 images
119
+
120
+ - **Validation:** 120 images
121
+
122
+ - **Test:** 400 images
123
+
124
+ Image specs: 28×28 pixels
125
+
126
+ #### BreastMNIST:
127
+
128
+ Total images: 780
129
+
130
+ Classes: 2 categories
131
+
132
+ Splits:
133
+
134
+ - **Train:** 546 images
135
+
136
+ - **Validation:** 78 images
137
+
138
+ - **Test:** 156 images
139
+
140
+ Image specs: 28×28 pixels
141
+
142
+ #### BloodMNIST:
143
+
144
+ Total images: 17,092
145
+
146
+ Classes: 8 categories
147
+
148
+ Splits:
149
+
150
+ - **Train:** 11,959 images
151
+
152
+ - **Validation:** 1,712 images
153
+
154
+ - **Test:** 3,421 images
155
+
156
+ Image specs: 28×28 pixels
157
+
158
+ #### TissueMNIST:
159
 
160
+ Total images: 236,386
161
 
162
+ Classes: 8 categories
163
 
164
  Splits:
165
 
166
+ - **Train:** 165,466 images
167
+
168
+ - **Validation:** 23,640 images
169
+
170
+ - **Test:** 47,280 images
171
+
172
+ Image specs: 28×28 pixels
173
+
174
+ #### OrganAMNIST:
175
+
176
+ Total images: 58,830
177
+
178
+ Classes: 11 categories
179
+
180
+ Splits:
181
+
182
+ - **Train:** 34,561 images
183
+
184
+ - **Validation:** 6,491 images
185
+
186
+ - **Test:** 17,778 images
187
+
188
+ Image specs: 28×28 pixels
189
+
190
+ #### OrganCMNIST:
191
+
192
+ Total images: 23,583
193
+
194
+ Classes: 11 categories
195
+
196
+ Splits:
197
+
198
+ - **Train:** 12,975 images
199
+
200
+ - **Validation:** 2,392 images
201
+
202
+ - **Test:** 8,216 images
203
+
204
+ Image specs: 28×28 pixels
205
+
206
+ #### OrganSMNIST:
207
+
208
+ Total images: 25,211
209
+
210
+ Classes: 11 categories
211
+
212
+ Splits:
213
+
214
+ - **Train:** 13,932 images
215
+
216
+ - **Validation:** 2,452 images
217
+
218
+ - **Test:** 8,827 images
219
+
220
+ Image specs: 28×28 pixels
221
+
222
+ #### OrganMNIST3D:
223
+
224
+ Total images: 1,742
225
+
226
+ Classes: 11 categories
227
+
228
+ Splits:
229
+
230
+ - **Train:** 971 images
231
+
232
+ - **Validation:** 161 images
233
+
234
+ - **Test:** 610 images
235
+
236
+ Image specs: 28×28x28 pixels
237
+
238
+ #### NoduleMNIST3D:
239
+
240
+ Total images: 1,633
241
+
242
+ Classes: 2 categories
243
+
244
+ Splits:
245
+
246
+ - **Train:** 1,158 images
247
+
248
+ - **Validation:** 165 images
249
+
250
+ - **Test:** 310 images
251
+
252
+ Image specs: 28×28x28 pixels
253
+
254
+ #### AdrenalMNIST3D:
255
+
256
+ Total images: 1,584
257
+
258
+ Classes: 2 categories
259
+
260
+ Splits:
261
+
262
+ - **Train:** 1,188 images
263
+
264
+ - **Validation:** 98 images
265
+
266
+ - **Test:** 298 images
267
+
268
+ Image specs: 28×28x28 pixels
269
+
270
+ #### FractureMNIST3D:
271
+
272
+ Total images: 1,370
273
+
274
+ Classes: 3 categories
275
+
276
+ Splits:
277
+
278
+ - **Train:** 1,027 images
279
+
280
+ - **Validation:** 103 images
281
+
282
+ - **Test:** 240 images
283
+
284
+ Image specs: 28×28x28 pixels
285
+
286
+ #### VesselMNIST3D:
287
+
288
+ Total images: 1,908
289
+
290
+ Classes: 2 categories
291
+
292
+ Splits:
293
+
294
+ - **Train:** 1,335 images
295
+
296
+ - **Validation:** 191 images
297
 
298
+ - **Test:** 382 images
299
 
300
+ Image specs: 28×28x28 pixels
301
 
302
+ #### SynapseMNIST3D:
303
 
304
+ Total images: 1,759
305
 
306
+ Classes: 2 categories
307
 
308
  Splits:
309
 
310
+ - **Train:** 1,230 images
311
 
312
+ - **Validation:** 177 images
313
 
314
+ - **Test:** 352 images
315
 
316
+ Image specs: 28×28x28 pixels
317
 
318
  ## Example Usage
319
  Below is a quick example of how to load this dataset via the Hugging Face Datasets library.
 
321
  from datasets import load_dataset
322
 
323
  # Load the dataset
324
+ dataset = load_dataset("randall-lab/medmnist", name="pathmnist", split="train", trust_remote_code=True)
325
+ # dataset = load_dataset("randall-lab/medmnist", name="chestmnist", split="train", trust_remote_code=True)
326
+ # dataset = load_dataset("randall-lab/medmnist", name="dermamnist", split="train", trust_remote_code=True)
327
+ # dataset = load_dataset("randall-lab/medmnist", name="octmnist", split="train", trust_remote_code=True)
328
+ # dataset = load_dataset("randall-lab/medmnist", name="pneumoniamnist", split="train", trust_remote_code=True)
329
+ # dataset = load_dataset("randall-lab/medmnist", name="retinamnist", split="train", trust_remote_code=True)
330
+ # dataset = load_dataset("randall-lab/medmnist", name="breastmnist", split="train", trust_remote_code=True)
331
+ # dataset = load_dataset("randall-lab/medmnist", name="bloodmnist", split="train", trust_remote_code=True)
332
+ # dataset = load_dataset("randall-lab/medmnist", name="tissuemnist", split="train", trust_remote_code=True)
333
+ # dataset = load_dataset("randall-lab/medmnist", name="organamnist", split="train", trust_remote_code=True)
334
+ # dataset = load_dataset("randall-lab/medmnist", name="organcmnist", split="train", trust_remote_code=True)
335
+ # dataset = load_dataset("randall-lab/medmnist", name="organsmnist", split="train", trust_remote_code=True)
336
+ # dataset = load_dataset("randall-lab/medmnist", name="organmnist3d", split="train", trust_remote_code=True)
337
+ # dataset = load_dataset("randall-lab/medmnist", name="nodulemnist3d", split="train", trust_remote_code=True)
338
+ # dataset = load_dataset("randall-lab/medmnist", name="adrenalmnist3d", split="train", trust_remote_code=True)
339
+ # dataset = load_dataset("randall-lab/medmnist", name="fracturemnist3d", split="train", trust_remote_code=True)
340
+ # dataset = load_dataset("randall-lab/medmnist", name="vesselmnist3d", split="train", trust_remote_code=True)
341
+ # dataset = load_dataset("randall-lab/medmnist", name="synapsemnist3d", split="train", trust_remote_code=True)
342
 
343
  # Access a sample from the dataset
344
  example = dataset[0]
 
355
 
356
  **BibTeX:**
357
 
358
+ @article{yang2023medmnist,
359
+ title={Medmnist v2-a large-scale lightweight benchmark for 2d and 3d biomedical image classification},
360
+ author={Yang, Jiancheng and Shi, Rui and Wei, Donglai and Liu, Zequan and Zhao, Lin and Ke, Bilian and Pfister, Hanspeter and Ni, Bingbing},
361
+ journal={Scientific Data},
362
+ volume={10},
363
+ number={1},
364
+ pages={41},
365
+ year={2023},
366
+ publisher={Nature Publishing Group UK London}
367
  }