Skip to content

efefurkankarakaya/reproducer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Image reproduction with genetic algorithm

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages