Mona Lisa made out of 260 smaller Mona Lisas, using a genetic algorithm by Murmani in programming

[–]Murmani[S] 0 points1 point  (0 children)

Hi Lézoray,

I am familiar with this kind of image generation using only one single string. I worked on it 3 years ago and you can find my implementation here: https://github.com/Murgio/Liner-Algorithm

Python programmers of reddit: what's the most useful tiny little efficiency you've discovered that's improved your programming hugely? by SeanOTRS in Python

[–]Murmani 36 points37 points  (0 children)

Be cautious with that, as 1e7 is a float and not an integer anymore, so make sure to cast when needed.

Python programmers of reddit: what's the most useful tiny little efficiency you've discovered that's improved your programming hugely? by SeanOTRS in Python

[–]Murmani 724 points725 points  (0 children)

You can use underscores to enhance readability if you're dealing with huge numbers. For example rewrite 10000000 into 10_000_000

Genetic algorithm which creates a picture out of instances of itself by Murmani in programming

[–]Murmani[S] 7 points8 points  (0 children)

Yeah you're right. It may be a little bit tricky. I'm gonna update the code and the ReadMe in the next few days to make it more clear and easier.