An open API service indexing awesome lists of open source software.

https://github.com/efefurkankarakaya/reproducer

Image reproduction with genetic algorithm
https://github.com/efefurkankarakaya/reproducer

genetic-algorithm image-reproduction python3

Last synced: about 2 months ago
JSON representation

Image reproduction with genetic algorithm

Awesome Lists containing this project

README

        

# Reproducer

Reproducer is an image reproduction project with genetic algorithm. It's extended and improved implementation (more accurate and faster reproduction for all colors) of ahmetdfgad/GARI project.

## Installation

- Clone the repository.
- `$ cd reproducer && virtualenv venv`
- `$ source venv/bin/activate`
- `$ pip install -r requirements.txt`
- Specify an image path in the code (which is in main function).
- Specify width and height multiplier in main function if you want to resize picture or have faster iterations.
- Specify the iteration count, the default is `10m`.
- `$ python3 reproducer.py`
- You can find outputs in `points/` folder.

## Strategies

- If you lower your picture resolution, you'll have more accurate reproduced images. Also `reproducer` will work faster.
- If you want to have faster reproduction and also same resolution, you can use upscalers like image-super-resolution.
- You can reproduce your friends' photos and let them use their reproduced photos as profile photo! That's funny, strongly recommended.
- Mostly, below 400x400 images are over 90% percentage being reproduced well in `5m` iterations.

## Example (Thanks to Elon Musk)

Iterations: 0
Iterations: 5k
Iterations: 10k
Iterations: 50k




Iterations: 100k
Iterations: 250k
Iterations: 500k
Iterations: 1m