filmov
tv
Image Generator | Genetic Algorithms | Genetic Programming | #GeneticAlgorithms #GeneticProgramming

Показать описание
Here we have a small binary image, and we want to generate that using a genetic algorithm.
So we generated 1000 random images initially. We calculated fitness of all of them. Then we created a pool, in which we have a lot more images (copies from 1000 images) and we selected randomly 2 images and merged them randomly. New image is called baby image. We generated 1000 baby images the same way (but randomly). We removed initial 1000 images and placed newly generated baby images there.
Now baby images are more fit compared to initial ones, as we generated them from some of the fit images. And we mutated some of the genes of some of the baby images (for the sake of variety).
Then we calculated fitness again.
Best fit image was more fit then the previous best fit image.
We keep doing this until we found the perfect fit image (exact same as original image).
And this took a lot of generations and a lot of processing power.
Feel free to ask questions and don't forget to subscribe.
Some more genetic algorithms are coming soon!!!
#nirmites #ImageGenerator #GeneticAlgorithms #GeneticProgramming
Комментарии