I implemented a simple CNN (Convolutional Neural Network) to recognize handwritten numbers!
The original CNN was implemented and trained in Tensorflow/Keras. The weights of the CNN are kept using sprites.
There are still some mistakes, but it will be fun to see how the CNN works (or not).
(The code is messed up, so I'll fix it someday...)
(Edit) Now the mouse input is available!
Left click: draw
Right click: delete
Left + Right click: delete all
Actually each color has no special meaning. The code for visualization looks like this:
Initially, I intended that pixels with output value 0 will be white and that the entire color palette roughly corresponds to the interval -1 to 1. I should have made it more like a gradation (for example), but I left it as it is due to my laziness...
Thank you very much!
[Please log in to post a comment]