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
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,106 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
---
|
| 4 |
+
# ποΈβοΈ Handwritten Digit Recognition Model
|
| 5 |
+
|
| 6 |
+
## π Overview
|
| 7 |
+
|
| 8 |
+
π€ **Model Name:** Handwritten Digit Recognition Model
|
| 9 |
+
|
| 10 |
+
π§ **Model Type:** Convolutional Neural Network (CNN)
|
| 11 |
+
|
| 12 |
+
π **Input:** 28x28 grayscale images of handwritten digits (0-9)
|
| 13 |
+
|
| 14 |
+
π’ **Output:** A 10-dimensional vector representing the probabilities of each digit (0-9)
|
| 15 |
+
|
| 16 |
+
π― **Purpose:** To classify handwritten digits from images with high accuracy
|
| 17 |
+
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
## π Description
|
| 21 |
+
|
| 22 |
+
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.
|
| 23 |
+
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
## π Use Cases
|
| 27 |
+
|
| 28 |
+
1. **Educational Tools:** π« Helping students learn and practice handwriting recognition.
|
| 29 |
+
2. **Digitization Projects:** π Converting handwritten documents into digital format.
|
| 30 |
+
3. **Assistive Technology:** π¦Ύ Assisting individuals with disabilities in digit writing.
|
| 31 |
+
|
| 32 |
+
---
|
| 33 |
+
|
| 34 |
+
## π Performance
|
| 35 |
+
|
| 36 |
+
π **Accuracy:** ~99% on the MNIST dataset.
|
| 37 |
+
|
| 38 |
+
π **Latency:** Fast inference time suitable for real-time applications.
|
| 39 |
+
|
| 40 |
+
---
|
| 41 |
+
|
| 42 |
+
## π οΈ Technical Details
|
| 43 |
+
|
| 44 |
+
- **Architecture:** Convolutional Neural Network (CNN)
|
| 45 |
+
- **Layers:** Convolutional layers, pooling layers, fully connected layers
|
| 46 |
+
- **Activation Functions:** ReLU, Softmax
|
| 47 |
+
|
| 48 |
+
---
|
| 49 |
+
|
| 50 |
+
## π₯ Input Format
|
| 51 |
+
|
| 52 |
+
- **Type:** Grayscale image
|
| 53 |
+
- **Shape:** 28x28 pixels
|
| 54 |
+
- **Range:** 0-1 (pixel intensity)
|
| 55 |
+
|
| 56 |
+
---
|
| 57 |
+
|
| 58 |
+
## π€ Output Format
|
| 59 |
+
|
| 60 |
+
- **Type:** Probability vector
|
| 61 |
+
- **Shape:** 10-dimensional
|
| 62 |
+
- **Range:** 0-1 (sum of probabilities equals 1)
|
| 63 |
+
|
| 64 |
+
---
|
| 65 |
+
|
| 66 |
+
## π§© Model Training
|
| 67 |
+
|
| 68 |
+
- **Dataset:** MNIST dataset π
|
| 69 |
+
- **Training Epochs:** 10
|
| 70 |
+
- **Batch Size:** 32
|
| 71 |
+
- **Optimizer:** Adam
|
| 72 |
+
- **Learning rate:** 1e-3
|
| 73 |
+
|
| 74 |
+
---
|
| 75 |
+
|
| 76 |
+
## π‘ How to Use
|
| 77 |
+
|
| 78 |
+
1. **Preprocess the Image:** Resize and normalize the image to 28x28 pixels with values between 0 and 1.
|
| 79 |
+
2. **Feed the Image:** Input the preprocessed image into the model.
|
| 80 |
+
3. **Interpret the Output:** Analyze the 10-dimensional output vector to find the digit with the highest probability.
|
| 81 |
+
|
| 82 |
+
---
|
| 83 |
+
|
| 84 |
+
## β οΈ Limitations
|
| 85 |
+
|
| 86 |
+
- **Handwriting Variability:** Performance may decrease with highly unconventional handwriting.
|
| 87 |
+
- **Noise:** Model performance can be affected by noisy or poor-quality images.
|
| 88 |
+
|
| 89 |
+
---
|
| 90 |
+
|
| 91 |
+
## π₯ Contributors
|
| 92 |
+
|
| 93 |
+
- **Developer:** Lizardwine (x@lizardwine.com)
|
| 94 |
+
- **Organization:** lizardwine
|
| 95 |
+
- **Date:** 2024
|
| 96 |
+
|
| 97 |
+
---
|
| 98 |
+
|
| 99 |
+
## π References
|
| 100 |
+
|
| 101 |
+
- MNIST Dataset: [Link](http://yann.lecun.com/exdb/mnist/)
|
| 102 |
+
- CNN Architecture: [Link](https://en.wikipedia.org/wiki/Convolutional_neural_network)
|
| 103 |
+
|
| 104 |
+
---
|
| 105 |
+
|
| 106 |
+
π **Thank you for using our Handwritten Digit Recognition Model!** π
|