Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 30 Sep 2012
Offline Last Active Oct 15 2012 11:36 PM

Topics I've Started

Speedy Image Likeness Comparison

10 October 2012 - 11:53 AM

Hello all,

I am writing a program that uses a genetic algorithm to 'evolve' a randomly generated image in to a template image that I provide. Here is what it looks like:

Posted Image

Every generation it creates (by default) 150 copies with random mutations (ellipse color/shape), and then compares them all to the template picture to see which is most similar, and that one moves on to the next generation. The current method I use to compare them is a pixel by pixel Euclidean Distance measurement. This takes about 8-9 seconds to evaluate the 150 children. Which might not seem like much, but to get a decently evolved image it can take at least 40,000 generations (about 4 days at given speed). This is too slow to test the results of different mutation rate / children / etc combinations.

What faster methods of comparing the two images are there? Or what other ideas do you have to make this more efficient?
My only thought so far is to reduce the dimensions of the images but that takes the fun out of creating a high quality replica ;)

Quantifying Difference Between Two Images

03 October 2012 - 05:56 AM


I am learning about genetic algorithms and my goal is to make a replica (similar at any rate) to the one shown in this YouTube video:


I need to be able to rate the "fitness" of my generated images. To do this, I need to compare them to a supplied picture, and was wondering what algorithm I should use to quantify the similarity (distance?) between the two images. I'm not familiar with algorithms in this category, so any insight would be very helpful! One that is simple to implement would be best, considering the goal of my project is the genetic algorithm and not comparing images, although a little learning never hurts Posted Image

Thanks in advance!

Evolutionary Algorithms + Neural Net

30 September 2012 - 09:23 PM

I am trying to create a program that models simple artificial life similar to what the guy made in this video:

So far my program has some critters that scurry around my screen looking for food but with no "brain". I've never messed with neural networks before but have been reading up on them in books and online for the past few days. This particular case seems a bit different from your basic neural network in some aspects though.

It seems that his NN doesn't use any type of learning or error measuring, but rather it does this from the evolution of the creatures? I'm thinking that the weights are randomly initialized and that the creatures that are best fit / survive in general have their weights copied over to the next generation (with crossover and random mutation)? He says the brain consists of a directed graph where the edges are weights, and I'm guessing this is what he means?