📜 ⬆️ ⬇️

Genetic algorithm for generating faces

What happens if a random shape generator is connected to a face detector? Is an evolutionary algorithm capable of generating a human face by random mutations? The developer of the program Pareidoloop answers this question in the affirmative (the generator was tested only in Chrome 21).


(c) spiritedflow




Before starting the generator, you can change three parameters: the size of the final image (output size), the accuracy of the result (target fitness, maximum 35), the number of iterations before the generator stops, if the specified accuracy is not reached (max generation).
')
Note: for the most realistic result, that is, to achieve target fitness = 35, it may take several hours of generator operation, so the number of iterations makes sense to increase to the limit. In Chrome, you can enable the automatic saving of intermediate results to disk (in high resolution).

Github code

Source: https://habr.com/ru/post/148283/


All Articles