The network can color black and white images, here's an example of the first picture I found on Google searching the words "New Zealand" (Left - Original, Middle - After removing colors, Right - Restoring the colors):Įventually this is only a machine, and this is still a very new idea, so the results aren't always that good: I chose to use an already trained network from this site. This was a very simplified explanation about neural networks, but the fact is that amazing stuff can be done with these network, just look for the thousands of examples on Google (Many of Google features are based on deep neural networks as well by the way). The first layer perceiving the image and might react to lines in a image, the second could react to some curves, and so on, a deeper layer will already detect faces and objects and will makes us to react to these people/objects. Comparing it to our visual system, our brain is also built as a several layers network as much as we understand today. That way we can build much more complex systems which when it comes to photos, attempt to mimic the way the human brain works. The input to the first layer in our case is the RGB picture, but the input to the second layer is the output of the first layer, and our final result is the output of the last layer. Let's go much larger scale now - Deep neural network consist of million of neurons (These days) in several layers of neural networks. By doing so we are "training" the network where eventually this neuron will know to strongly react only to strong red color. We can do so for example by inputting a lot of strong red pictures and on the output let the network knows the answer is "red". Now to the interesting fact, in these kind of networks we do not define the reaction of a single neuron (say, to red pixels), instead we let it learn the facts by itself using a training process. An output of this kind of network can be an answer to a question "What is the strongest color in a given picture?". The first neuron reacts only to the red layer of an RGB picture, the second receives the green layer and so on. We can think about a very small network with several neurons for example, where each neuron sums the amount of a certain color in a picture. Not going too much into mathematics, neural networks are a set of a lot of "digital neurons" where each neuron reacts differently to a different combination of inputs. What are Deep Neural Networks and How to Use them? What? In this post I'll describe shortly the entire process, and share our code.Ĭheck the Imgur gallery to see some examples. Reply to the request on Reddit with the link.Upload the result to and gets the imgur link.Notamacuser joined me and we built a bot which respond to "colorizebot" requests as follows: So, since I'm a big fan of these photos and wanted to start sniffing around the issue of Deep Learning and wanted to build a Reddit bot, I decided to build a Reddit bot which will react to people requests to color their B&W images. I follow the sub-Reddit r/oldSchoolCool for a long time now, checking the old photos people are uploading, imagining the stories behind the photos and reading the comments. I was already really amazed by the deep learning latest developments and decided to go deeper into this subject.Īnother unrelated fact, is that I'm a big fan of old photos. Last weekend I bumped into this website and paper by Richard Zhang, which trained an AI program using deep neural network to receive as input a B&W photo and outputs a colored photo. I really love posts such as how many comments it takes in a discussion until someone reminds Hitler and others. Our first thought was to create a project in the data analysis field. What is a Reddit bot? It is a program which scans posts/comments on Reddit, and can react to the information it collects. One of the old projects on this list was creating a Reddit bot. There's always so little time for our hobbies and the list just getting bigger and bigger. Also, some videos examples, Check it out.ĮDIT 24/7/16: The bot works on r/all, which means it works almost anywhere on Reddit.Īlso, it works when it gets a private message.Īs writers on this blog and as the technology hobbyists we are, we always share a to-do list with many projects we want to do in the future. Menu Our First Reddit Bot - Coloring B&W Photos Using AI Deep Neural Network Machine 22 July 2016 on python, deep learning, deep neural network, neural network, reddit, color, black and white, algorithms, image, old photos, histogramĮDIT 9/8/16: The bot has been working for two weeks now and we've created some gallery and statistics.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |