Instructions to use lizardwine/DigitClassifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use lizardwine/DigitClassifier with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://lizardwine/DigitClassifier") - Notebooks
- Google Colab
- Kaggle
| license: apache-2.0 | |
| # ποΈβοΈ Handwritten Digit Recognition Model | |
| ## π Overview | |
| π€ **Model Name:** Handwritten Digit Recognition Model | |
| π§ **Model Type:** Convolutional Neural Network (CNN) | |
| π **Input:** 28x28 grayscale images of handwritten digits (0-9) | |
| π’ **Output:** A 10-dimensional vector representing the probabilities of each digit (0-9) | |
| π― **Purpose:** To classify handwritten digits from images with high accuracy | |
| --- | |
| ## π Description | |
| This model is designed to recognize handwritten digits from 0 to 9. It processes input images of size 28x28 pixels and outputs a vector of 10 probabilities, each corresponding to one of the digits. The digit with the highest probability is selected as the predicted class. | |
| --- | |
| ## π Use Cases | |
| 1. **Educational Tools:** π« Helping students learn and practice handwriting recognition. | |
| 2. **Digitization Projects:** π Converting handwritten documents into digital format. | |
| 3. **Assistive Technology:** π¦Ύ Assisting individuals with disabilities in digit writing. | |
| --- | |
| ## π Performance | |
| π **Accuracy:** ~99% on the MNIST dataset. | |
| π **Latency:** Fast inference time suitable for real-time applications. | |
| --- | |
| ## π οΈ Technical Details | |
| - **Architecture:** Convolutional Neural Network (CNN) | |
| - **Layers:** Convolutional layers, pooling layers, fully connected layers | |
| - **Activation Functions:** ReLU, Softmax | |
| --- | |
| ## π₯ Input Format | |
| - **Type:** Grayscale image | |
| - **Shape:** 28x28 pixels | |
| - **Range:** 0-1 (pixel intensity) | |
| --- | |
| ## π€ Output Format | |
| - **Type:** Probability vector | |
| - **Shape:** 10-dimensional | |
| - **Range:** 0-1 (sum of probabilities equals 1) | |
| --- | |
| ## π§© Model Training | |
| - **Dataset:** MNIST dataset π | |
| - **Training Epochs:** 10 | |
| - **Batch Size:** 32 | |
| - **Optimizer:** Adam | |
| - **Learning rate:** 1e-3 | |
| --- | |
| ## π‘ How to Use | |
| 1. **Preprocess the Image:** Resize and normalize the image to 28x28 pixels with values between 0 and 1. | |
| 2. **Feed the Image:** Input the preprocessed image into the model. | |
| 3. **Interpret the Output:** Analyze the 10-dimensional output vector to find the digit with the highest probability. | |
| --- | |
| ## β οΈ Limitations | |
| - **Handwriting Variability:** Performance may decrease with highly unconventional handwriting. | |
| - **Noise:** Model performance can be affected by noisy or poor-quality images. | |
| --- | |
| ## π₯ Contributors | |
| - **Developer:** Lizardwine (x@lizardwine.com) | |
| - **Organization:** lizardwine | |
| - **Date:** 06/06/2024 | |
| --- | |
| ## π References | |
| - MNIST Dataset: [Link](http://yann.lecun.com/exdb/mnist/) | |
| - CNN Architecture: [Link](https://en.wikipedia.org/wiki/Convolutional_neural_network) | |
| --- | |
| π **Thank you for using our Handwritten Digit Recognition Model!** π |