I'm studying deep learning for some reason. So far, I have written about the touch of deep learning at Qiita.
Simple neural network implementation using Chainer Simple neural network implementation using Chainer-Data preparation- Simple neural network implementation using Chainer-Model description- Simple neural network implementation using Chainer-optimization algorithm setting-
My goal is to create an app that reads images and classifies what they are, so I'm studying convolutional neural networks. Not to mention studying theory, I decided to experience what it means to actually let a machine learn images.
I once found this article and found it interesting. Can Osomatsu-san's six children be identified by deep learning? -Implementation-
This classifier uses a modified model based on ImageNet called the NIN model of chainer. The blog I was referring to Hi-king's http://hi-king.hatenablog.com/entry/2015/06/11/021144 When shi3z's http://d.hatena.ne.jp/shi3z/20150709/1436397615 is.
I wanted to run the sample ImageNet, so I decided to refer to these blogs. (Especially, I always read shi3z's blog !!!)
However, since the specifications of chainer change every time the version changes, it was necessary to be careful when referring to these articles more than a year ago. The stumbling points are summarized in here.
After that, you can learn by referring to the above two articles.
I will write the execution environment for reference. OS:Ubuntu14.04 GPU:GeForce GTX 750 Ti memory:8GB
Learning ends when the error approaches 0.2. If the error is too low, it will be overfitting.
The epoch is the learning cycle. Learning progresses as the number of times increases. For example, here is the image I tried to recognize this time.
It is a pretty Dalmatian. Since there was Dalmatian in the image of ImageNet, I adopted Dalmatian this time.
ImageNet Dalmatian image
There are also images of soccer balls that have similar characteristics (black and white spots) to Dalmatian, such as yin and yang.
First of all, here is the result when learning only 1 epoch
The probability of being an airplane is 43.1%.
I'm still not smart.
But when this goes 28 epoch,
Dalmatian probability 99.9%
I've become smarter.
First of all, I was able to experience what it means to classify images into machines. As for future plans, -Learn your favorite images, not samples -Understanding the principles of convolutional neural networks I will study with the goal of.
Can Osomatsu-san's six children be identified by deep learning? http://bohemia.hatenablog.com/entry/2015/11/22/174603
Image classification with chainer, a deep learning framework from PFN (neural network 1 with chainer) http://hi-king.hatenablog.com/entry/2015/06/11/021144
Deep learn and recognize your image set with Chainer's NIN http://d.hatena.ne.jp/shi3z/20150709/1436397615
Recommended Posts