Giter VIP home page Giter VIP logo

deepart's Introduction

DeepArt

When you cant create a masterpiece yourself, let a machine do it for you. Create self portraits in the style of the masters.

Give me a paintbrush and I'll create something not worth noting, or even showing. My painting skills are not very good. But being creative with data is right up my alley. And learn an algorithm to become creative, well that's would amazing. Algorithms find patterns, patterns that exist in data. So the data you provide can be intepreted as the context the algorithm uses. That's what we're doing here as well, we're letting an algorithm learn a certain kind of pattern (based on a masterpiece of a painting) and then we're changing the context.

See: https://cmotions.nl/deep-art-cmotions-leert-schilderen/

Installation

The script is stand alone, however you do need to install some dependencies:

When you don't have a computer with GPU, i suggest using an only notebook like Colab or Paperspace for example.

Usage

To make your own painting, take the following steps.

  1. Clone this repository:
git clone https://github.com/kromme/DeepArt.git
  1. Find a photo you would like to be painted.
  2. Find a style-photo, there are some suggestions in the folder input_styles.
  3. Open CMD in the folder (TIP: just type CMD in the location-path in File Explorer)
  4. Type python deepart.py <photo> <style_photo>
  5. Wait.. If it takes too long you can reduce max_pix_length (outputs smaller pictures), or n_checkpoints (stop earlier, so results gets worse)

Examples

See a holiday photo below (an eruption of the El Fuego volcano in Guatemala) in the style of Van Gogh, Mondrian, Munch and Warhol.

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.