Git Product home page Git Product logo

evolisa's Introduction

evolisa

This is an attempt at generating an output image from a source picture by mutating a group of semi-transparent polygons.

I wanted to do something similar to this: http://rogeralsing.com/2008/12/07/genetic-programming-evolution-of-mona-lisa/

animated gif of generated image generated image

The code is still very thrown together but it produces some acceptable results. Generating the image above took a couple of hours though so there's room for improvements.

I'd be happy to hear about ideas on how to improve the algorithm/code.

Install requirements

  • Create virtualenv

    virtualenv .
  • Install requirements

    bin/pip install -r requirements
  • (optional) PIL might have to be installed like this

    bin/pip install PIL --allow-external PIL --allow-unverified PIL --upgrade

Usage

  • Running the script

    bin/python src/generate.py <path_to_img>

Use a small source image (e.g. with a maximum size of 512x512 pixels). The generated image files will be created in your system's temp directory.

Notes

evolisa's People

Stargazers

 avatar  avatar  avatar  avatar Petros G. Sideris avatar  avatar WJ avatar Vyacheslav Yastrebov avatar Marc Fuster Rullan avatar shimo8810 avatar Daniil Kruchinin avatar Vagisha Nidhi avatar  avatar Vishal Khanna avatar zhiyue avatar Todor Balabanov avatar Giri Bhatnagar avatar

Watchers

Mux avatar Todor Balabanov avatar Huanjie Sheng avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.