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
I have tried many different ways of fooling the system. As long as it's a big picture, it gets the correct answer every time.
Magnificently done, @muse_energy. Gold star work !
@luchak
Thanks for your suggestion! I haven't noticed that I can use mouse input.
It will be very useful and I'd like to implement it!
@dw817
Thank you very much, I'm glad to hear that! It is quite fun to try to fool it.
Wow, this is really neat. I have no idea how you did it, but it works so well
@luchak
Actually each color has no special meaning. The code for visualization looks like this:
pset(i+k*30,j+30,7+7*output1[j][i][k])
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...
@taxicomics
Thank you very much!
[Please log in to post a comment]




uhhh ok