61

Image-Mimic-Genetic-Algorithm

 5 years ago
source link: https://www.tuicool.com/articles/hit/ZfUNJbN
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Image-Mimic-Genetic-Algorithm

This unsupervised genetic algorithm i have created will try to mimic the target image (New random image will be generated at each time) || Demo in @liveDemo || You can also use my @multi-level-snake-game as a playground to practice Genetic Algorithm || Check my other works @MyRepos || To know more about Genetic algorithm @WiKi

I have used @sandpile algorithm to generate a random image at each time || GrainSize for sandpile will be taken random between 900 and 1150 (inclusive)

Configurations

Hyperparameter value Population Count 10000 Selection Count 2 Mutation Rate 0.001 Chromosome Length 900

Screenshots

fqy2m2b.png!webFitness reached 60% on 100th generation

UvuA3in.png!webFitness reached 100% on 291th generation

View in https://karthiknedunchezhiyan.github.io/Image-Mimic-Genetic-Algorithm

Components Used

@ChartJS for chart, @P5JS for canvas

Meta

Karthik Nedunchezhiyan – @Github[email protected]

Distributed under the MIT license. See LICENSE for more information.

Contributing

Suggestions are always welcome


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK