Giter Site home page Giter Site logo

emoji-art-generator's Introduction

Emoji Art Generator

Description Image
Target image Target image
RGB MSE fitness Evolved emoji image
LAB MSE fitness Evolved emoji image
LAB Delta E CIE 2000 fitness Evolved emoji image
LAB Delta E CIE 2000 combined with SSIM fitness Evolved emoji image
SSIM fitness Evolved emoji image

Setup

  • conda env create

Usage

Prepare a target image (store it in data/target_images/) and a set of emojies/tiles (store them in data/emoji/). Then run the following command:

python -m app.generator.generate

usage: generate.py [-h] [--starting-canvas STARTING_CANVAS] [--target TARGET]
                   [--fitness {RGBMSE,LABDeltaESSIM,LABMSE,LABDeltaE,SSIM}]
                   [-g NUM_GENERATIONS] [-p POPULATION_SIZE] [--width WIDTH]
                   [--height HEIGHT] [--emoji-size EMOJI_SIZE]

optional arguments:
  -h, --help            show this help message and exit
  --starting-canvas STARTING_CANVAS
                        Path to an image to start with. If not specified, a
                        white image will be used.
  --target TARGET       Filename of target image. Should reside in
                        data/target_images/
  --fitness {RGBMSE,LABDeltaESSIM,LABMSE,LABDeltaE,SSIM}
                        Choose fitness evaluator. See fitness.py for more
                        information.
  -g NUM_GENERATIONS, --num-generations NUM_GENERATIONS
  -p POPULATION_SIZE, --population-size POPULATION_SIZE
  --width WIDTH         If specified, resize the target image (and the
                        starting canvas) to this width. Otherwise, keep the
                        original width.
  --height HEIGHT       If specified, resize the target image (and the
                        starting canvas) to this height. Otherwise, keep the
                        original height.
  --emoji-size EMOJI_SIZE

emoji-art-generator's People

Contributors

iver56 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

emoji-art-generator's Issues

Culling

Iterate over the emojies and remove an emoji if that removal improves the fitness

requirements.txt?

Trying to run and having trouble with dependencies - is there any chance you can add a requirements file so I can troubleshoot?

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.