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. That's the best I could come up with, without complicating things.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. Nevertheless, the program will not only scan for the target under the width of the health bar but will scan slightly to the left and also right of it's bounds (specifically 1/3 the width). The only problem is when there is only 1 health bar in that case I assume that the width is 150 by default. Anyway, if you want to have some more fun, implement RawInput, here is a good example cnvcl/CnRawInput.pas at master * cnpack/cnvcl * GitHubIt's not super-accurate but accurate enough imo. Really nice from you to post source code, I wish more were like you. so you get for example pixelwidth 3 instead of 4 if you are farer away and you multiply wrong then. Problem: The width of one pack varies based on distance. For example: You determine the number of health bar "packs" by measuring one packs width and multiply it then. yeah you did it like i did in my first bot In my opinion it is not accurate enough though. I am too lazy to look into code, but how did you measure the width of the healthbar when target is not full hp?Įdit:// Okay I looked into code.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |