Tuesday, June 13, 2017

Teaching an AI to draw "Me".
Here is a gif  animation I created from just a few snapshots of an AI as it learns to paint a picture of  me. The first picture it outputs is just a grey square 200 by 200 pixels. Each attempt is compared to a picture of me and the AI is told how close it is to looking like me. I let the AI try 500,000 times. It took 3 hours. Considering that the AI only has 123 neurons, it did a pretty good job. It would need to have at least 4,000 neurons to paint an exact copy of the photo, but that is not the point. I just wanted to get a feel for how it learns.
I didn't use a massive super computer with billions of cores. I used my quad core Surface Book.
I didn't write any code. I used a Javas script AI that runs in a browser. The browser page lets you change a few lines of code to increase the depth and size of the neural networks and see how it relates to the speed and quality of the learning process,
If you want to watch AI's learning to play games, recognize characters, draw pictures and more, you can start here,   http://cs.stanford.edu/people/karpathy/convnetjs/index.html

No comments:

Post a Comment