leonleyang commited on
Commit
7f6ff4b
·
verified ·
1 Parent(s): b1e8cb5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +79 -3
README.md CHANGED
@@ -1,3 +1,79 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ {}
3
+ ---
4
+
5
+ # Dataset Card for CIFAR-10
6
+
7
+ <!-- Provide a quick summary of the dataset. -->
8
+
9
+ ## Dataset Details
10
+
11
+ ### Dataset Description
12
+
13
+ <!-- Provide a longer summary of what this dataset is. -->
14
+ The EMNIST (Extended MNIST) dataset is a set of handwritten character and digit samples derived from the NIST Special Database 19. It has been preprocessed to match the structure and format of the original MNIST dataset, with all images resized to 28×28 pixels. EMNIST provides multiple dataset splits designed for different classification tasks, including digits, letters, and a combination of both.
15
+
16
+ ### Dataset Sources
17
+
18
+ <!-- Provide the basic links for the dataset. -->
19
+
20
+ - **Homepage:** https://www.nist.gov/itl/products-and-services/emnist-dataset
21
+ - **Paper:** Cohen, G., Afshar, S., Tapson, J., & Van Schaik, A. (2017, May). EMNIST: Extending MNIST to handwritten letters. In 2017 international joint conference on neural networks (IJCNN) (pp. 2921-2926). IEEE.
22
+
23
+ ## Dataset Structure
24
+
25
+ Total samples: Over 800,000 handwritten characters
26
+
27
+ Available dataset splits:
28
+
29
+ - **ByClass**: 814,255 characters, 62 unbalanced classes (full NIST dataset).
30
+
31
+ - **ByMerge**: 814,255 characters, 47 unbalanced classes (merged uppercase/lowercase).
32
+
33
+ - **Balanced**: 131,600 characters, 47 balanced classes.
34
+
35
+ - **Letters**: 145,600 characters, 26 balanced classes (merged uppercase/lowercase).
36
+
37
+ - **Digits**: 280,000 characters, 10 balanced classes (0-9).
38
+
39
+ - **MNIST**: 70,000 characters, 10 balanced classes (directly compatible with MNIST).
40
+
41
+ Image specs: PNG format, 28×28 pixels, Grayscale
42
+
43
+ ## Example Usage
44
+ Below is a quick example of how to load this dataset via the Hugging Face Datasets library.
45
+ ```
46
+ from datasets import load_dataset
47
+
48
+ # Load the dataset
49
+ dataset = load_dataset("digits/emnist", name="byclass", split="train", trust_remote_code=True)
50
+ # dataset = load_dataset("digits/emnist", name="byclass", split="test", trust_remote_code=True)
51
+ # dataset = load_dataset("digits/emnist", name="bymerge", split="train", trust_remote_code=True)
52
+ # dataset = load_dataset("digits/emnist", name="balanced", split="train", trust_remote_code=True)
53
+ # dataset = load_dataset("digits/emnist", name="letters", split="train", trust_remote_code=True)
54
+ # dataset = load_dataset("digits/emnist", name="digits", split="train", trust_remote_code=True)
55
+ # dataset = load_dataset("digits/emnist", name="mnist", split="train", trust_remote_code=True)
56
+
57
+ # Access a sample from the dataset
58
+ example = dataset[0]
59
+ image = example["image"]
60
+ label = example["label"]
61
+
62
+ image.show() # Display the image
63
+ print(f"Label: {label}")
64
+ ```
65
+
66
+ ## Citation
67
+
68
+ <!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. -->
69
+
70
+ **BibTeX:**
71
+
72
+ @inproceedings{cohen2017emnist,
73
+ title={EMNIST: Extending MNIST to handwritten letters},
74
+ author={Cohen, Gregory and Afshar, Saeed and Tapson, Jonathan and Van Schaik, Andre},
75
+ booktitle={2017 international joint conference on neural networks (IJCNN)},
76
+ pages={2921--2926},
77
+ year={2017},
78
+ organization={IEEE}
79
+ }