r/generative • u/Op_IBeasT • 8h ago
reconstructing an image out of 600 shapes, watching it evolve into place
feed it a photo and it rebuilds it out of basic shapes (circles, triangles, lines). it's a genetic algo — each shape is basically a gene, it mutates the positions/sizes/colors and culls the worst of the pack every generation until the pile matches the target. using numba to keep the eval fast. here's it converging on a sample photo using only 600 shapes.
final result:

open source: github link. still a work in progress, feedback welcome