Skip to content

Was a little foray into evolutionary AI. I wanted to emulate a painted image style so gave this a go. It creates a generation of shapes and adds them to the canvas if they make the image closer to the target one. I like the results, they're very abstract but you can still see what the image is vaguely. Can definitely be improved

Notifications You must be signed in to change notification settings

JacobInwald/generative-image-making

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Evolutionary Image Painter

Implemented a cute image reproducer, it works by creating a generation of random quadrilaterals and then breeding them to get the "best" one. In this implementation there are a few different metrics, from the Normalised Cross-Coefficient to Manhattan Distance. I like the Manhattan distance the most but you can change it by just changing the diff_type=IMAGE_DIFF_METHOD.euc bit to a different metric.

Enjoy!!

About

Was a little foray into evolutionary AI. I wanted to emulate a painted image style so gave this a go. It creates a generation of shapes and adds them to the canvas if they make the image closer to the target one. I like the results, they're very abstract but you can still see what the image is vaguely. Can definitely be improved

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages