Image Processing & Recognition Individual project
Accuracy on my test digits in the original run
- Model 1
- 15%
- Model 2
- 65%
- Model 3
- 80%
Handwritten Digit Recognition
Draw a digit, or pick one of my test digits, and compare what three ResNet18 models make of it. They run here in your browser.
The three models are a 39 MB download.
Your drawing from the notebook is waiting. Load the models and it will be classified straight away.
Draw a digit
Keyboard users: choose one of the test digits further down instead of drawing.
What the models see: a 28 × 28 grayscale image, given the average paper and pencil tone of my photos.
Drawings are much harder than my photos. With only 80 training images, the models partly learned the lighting of each digit (my 9s are on bright paper, my 7s and 8s in shadow) instead of its shape. Every drawing gets the same paper tone, which removes that shortcut, so expect plenty of misses. That overfitting is part of what this project shows.
Model 1
Last layer trained on MNIST only
Model 2
Last layer trained on my handwriting
Model 3
Last residual block (layer4) and last layer trained on my handwriting
Or try my real test digits
These 20 photographed digits were never used for training. Tap or click one to classify it, or score the whole test set. The models here were retrained with the original assignment's functions and settings; they score 10%, 75% and 85% (the original run scored 15%, 65% and 80%).