Evolutionary algorithm written in Python using DEAP and Pillow to evaluate an image and mutate an array of polygons over generations to gradually increase fitness; the algorithm will generate a final image and graphed statistics after the set number of generations.
- Python3.6+
git clone git@github.com:James-02/image-evolution.git
cd image-evolution
python3.6 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python main.py 0- Add a 200x200px
.pngimage to themediadirectory - Update config.json's "Image" parameter:
"Image": {
"TARGET_IMAGE": "media/target-image-1.png"
}python main.py <code>
0 - Reference algorithm
1 - Solution Representation
2 - Offspring Generation
3 - Selection FunctionTimelapse was created externally using images generated by this algorithm
