Dataset Viewer
The dataset viewer is not available for this dataset.
Cannot get the config names for the dataset.
Error code:   ConfigNamesError
Exception:    RuntimeError
Message:      Dataset scripts are no longer supported, but found emnist.py
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 66, in compute_config_names_response
                  config_names = get_dataset_config_names(
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 161, in get_dataset_config_names
                  dataset_module = dataset_module_factory(
                                   ^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/load.py", line 1207, in dataset_module_factory
                  raise e1 from None
                File "/usr/local/lib/python3.12/site-packages/datasets/load.py", line 1167, in dataset_module_factory
                  raise RuntimeError(f"Dataset scripts are no longer supported, but found {filename}")
              RuntimeError: Dataset scripts are no longer supported, but found emnist.py

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Dataset Card for Extended MNIST (EMNIST)

Dataset Details

Dataset Description

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.

Dataset Sources

Dataset Structure

Total samples: Over 800,000 handwritten characters

Available dataset splits:

  • ByClass: 814,255 characters, 62 unbalanced classes (full NIST dataset).

  • ByMerge: 814,255 characters, 47 unbalanced classes (merged uppercase/lowercase).

  • Balanced: 131,600 characters, 47 balanced classes.

  • Letters: 145,600 characters, 26 balanced classes (merged uppercase/lowercase).

  • Digits: 280,000 characters, 10 balanced classes (0-9).

  • MNIST: 70,000 characters, 10 balanced classes (directly compatible with MNIST).

Image specs: PNG format, 28×28 pixels, Grayscale

Example Usage

Below is a quick example of how to load this dataset via the Hugging Face Datasets library.

from datasets import load_dataset  

# Load the dataset  
dataset = load_dataset("randall-lab/emnist", name="byclass", split="train", trust_remote_code=True)  
# dataset = load_dataset("randall-lab/emnist", name="byclass", split="test", trust_remote_code=True)
# dataset = load_dataset("randall-lab/emnist", name="bymerge", split="train", trust_remote_code=True)  
# dataset = load_dataset("randall-lab/emnist", name="balanced", split="train", trust_remote_code=True)  
# dataset = load_dataset("randall-lab/emnist", name="letters", split="train", trust_remote_code=True)  
# dataset = load_dataset("randall-lab/emnist", name="digits", split="train", trust_remote_code=True)  
# dataset = load_dataset("randall-lab/emnist", name="mnist", split="train", trust_remote_code=True)  

# Access a sample from the dataset  
example = dataset[0]  
image = example["image"]  
label = example["label"]  

image.show()  # Display the image  
print(f"Label: {label}")

Citation

BibTeX:

@inproceedings{cohen2017emnist, title={EMNIST: Extending MNIST to handwritten letters}, author={Cohen, Gregory and Afshar, Saeed and Tapson, Jonathan and Van Schaik, Andre}, booktitle={2017 international joint conference on neural networks (IJCNN)}, pages={2921--2926}, year={2017}, organization={IEEE} }

Downloads last month
5,060