lllyasviel / style2paints
- четверг, 28 сентября 2017 г. в 03:15:19
sketch + style = paints !
Temp demo: https://style2paints.github.io/
The AI can paint on a sketch accroding to a given specific color style.
A content sketch (the first google image search result of key word 'anime sketch') and some style images:
Results:
A western content sketch and 2 style images:
A messy content sketch and 2 style images:
A detailed content sketch and 2 style images:
A simple content sketch without shadow rendering and 2 style images:
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
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
Models are avaliable in 'release' page.
The recommended training dataset of illustrations is the 400k images from nico-opendata
The recommended training sketches is from sketchKeras
QQ Group ID: 184467946
Thanks a lot to TaiZan. This project could not be achived without his great help.