GithubHelp home page GithubHelp logo

hhy5277 / style2paints Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lllyasviel/style2paints

0.0 2.0 0.0 66.11 MB

sketch + style = paints !

License: Apache License 2.0

HTML 2.87% JavaScript 64.07% CSS 7.38% Python 25.68%

style2paints's Introduction

STYLE2PAINTS

ZhiHu BiliBili GithubPage TempDemo

The AI can paint on a sketch accroding to a given specific color style.

web_preview

web_preview2

Example 1 (Google Search results test)

google

A content sketch (the first google image search result of key word 'anime sketch') and some style images:

. . .

Results:

. . . .

. . . .

. . . .

Example 2 (western sketch)

A western content sketch and 2 style images:

. . . .

Example 3 (messy sketch)

A messy content sketch and 2 style images:

. . . .

. . .

Example 4 (detailed sketch)

A detailed content sketch and 2 style images:

. . . .

. . .

Example 5 (simple sketch)

A simple content sketch without shadow rendering and 2 style images:

. . . .

. . .

CPU Server for Beginner

you need a python 3 environment.

pip install tensorflow
pip install keras
pip install chainer
pip install bottle
pip install gevent
pip install h5py
pip install opencv-python
git clone https://github.com/lllyasviel/style2paints.git
(then download all pretrained models from 'release' page and then put them in 'style2paints/server')
cd style2paints/server
python server.py cpu

GPU Server for Reseachers

you need a CUDA python 3.6 environment.

pip install tensorflow_gpu
pip install keras
pip install chainer
pip install cupy
pip install bottle
pip install gevent
pip install h5py
pip install opencv-python
git clone https://github.com/lllyasviel/style2paints.git
(then download all pretrained models from 'release' page and then put them in 'style2paints/server')
cd style2paints/server
python server.py

Model

Models are avaliable in 'release' page.

  1. base_generator.net -> all rights reserved 2017 style2paints
  2. style2paints.net -> all rights reserved 2017 style2paints
  3. google_net.net -> from nico-opendata

Training Datasets

  1. The recommended training dataset of illustrations is the 400k images from nico-opendata

  2. The recommended training sketches is from sketchKeras

Community

QQ Group ID: 184467946

Acknowledgements

Thanks a lot to TaiZan. This project could not be achived without his great help.

style2paints's People

Contributors

abbychau avatar dexhunter avatar

Watchers

 avatar  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.