Skip to content

Commit

Permalink
change all
Browse files Browse the repository at this point in the history
  • Loading branch information
lllyasviel committed Dec 27, 2017
1 parent ee7d11f commit 43feb86
Show file tree
Hide file tree
Showing 312 changed files with 128 additions and 28,720 deletions.
120 changes: 1 addition & 119 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,119 +1 @@
#Generated Files


#Editor settings
settings.json

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# dotenv
.env

# virtualenv
.venv
venv/
ENV/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/

server/.idea
server/record/*.jpg
server/record/*.png
server/game/results/*.jpg
server/game/results/*.png
web_code/library/imports
web_code/build
web_code/temp
local/*

*.net
*.net
31 changes: 0 additions & 31 deletions AnimeStyleTransfer.md

This file was deleted.

175 changes: 22 additions & 153 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,191 +1,60 @@
# Lastest News
# Welcome to STYLE2PAINTS 2.0 !

**We will release style2paints II at 2017.12.29~2017.12.31. We will present our results for you at reddit/twitter/zhihu/bilibili/youtube/facebook/tieba at same time.**
**First of all, why not spend 5 minutes to try it yourself!**

**Style2paints V2 is coming soon with better color!**

**Our new UI (Style2paints V1) is under construction now. You can try it directly!**

PaintsTransfer: [http://paintstransfer.com/](http://paintstransfer.com/)

![new_preview](https://raw.githubusercontent.com/lllyasviel/style2paints/master/new_preview/0.png)

![new_preview](https://raw.githubusercontent.com/lllyasviel/style2paints/master/new_preview/1.png)

![new_preview](https://raw.githubusercontent.com/lllyasviel/style2paints/master/new_preview/2.png)

![new_preview](https://raw.githubusercontent.com/lllyasviel/style2paints/master/new_preview/3.png)

# You have just found STYLE2PAINTS

:pushpin:[GithubPage](https://lllyasviel.github.io/) :pushpin:[GithubPageChinese](https://lllyasviel.github.io/chinese) :pushpin:[StyleTransfer](https://github.com/lllyasviel/style2paints/blob/master/AnimeStyleTransfer.md)

*The previous version is now at 52.80.94.56:8000*
[WebAPP: PaintsTransfer](https://paintstransfer.com)

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

The AI can transfer illustrations' style.

![web_preview](https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/screen_shot.png)

![web_preview2](https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/screen_shot2.png)

![web_preview3](https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/screen_shot3.png)

![web_preview4](https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/screen_shot4.png)

# Tuitions

[tuition 001](https://www.bilibili.com/video/av15014229/)

# Example 1 (Google Search results test)

![google](https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/google.png)

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

.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/demo1.jpg" height = "300"/>
.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/demo1_styles.png" height = "300"/>
.
[Tuition001(BiliBili)](https://www.bilibili.com/video/av17537429/)

Results:
# Screenshots

.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/untitled8.png" height = "300"/>
.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/untitled1.png" height = "300"/>
.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/untitled2.png" height = "300"/>
.
![web_preview](https://raw.githubusercontent.com/lllyasviel/style2paints/master/tempfile/001.png)

.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/untitled3.png" height = "300"/>
.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/untitled6.png" height = "300"/>
.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/untitled7.png" height = "300"/>
.
![web_preview](https://raw.githubusercontent.com/lllyasviel/style2paints/master/tempfile/002.png)

.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/untitled4.png" height = "300"/>
.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/untitled5.png" height = "300"/>
.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/untitled0.png" height = "300"/>
.
![web_preview](https://raw.githubusercontent.com/lllyasviel/style2paints/master/tempfile/003.png)

# Example 2 (western sketch)
![web_preview](https://raw.githubusercontent.com/lllyasviel/style2paints/master/tempfile/004.png)

A western content sketch and 2 style images:
![web_preview](https://raw.githubusercontent.com/lllyasviel/style2paints/master/tempfile/005.png)

.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/demo2.jpg" height = "300"/>
.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/style2_demo2.jpg" height = "300"/>
.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/style1_demo2.jpg" height = "150"/>
.
![web_preview](https://raw.githubusercontent.com/lllyasviel/style2paints/master/tempfile/006.png)

<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/result2_demo2.png"/>
![web_preview](https://raw.githubusercontent.com/lllyasviel/style2paints/master/tempfile/007.png)

<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/result1_demo2.png"/>
![web_preview](https://raw.githubusercontent.com/lllyasviel/style2paints/master/tempfile/008.png)

# Example 3 (messy sketch)
![web_preview](https://raw.githubusercontent.com/lllyasviel/style2paints/master/tempfile/009.png)

A messy content sketch and 2 style images:

.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/demo3.jpg" height = "300"/>
.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/style1_demo3.jpg" width = "200"/>
.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/style2_demo3.jpg" width = "200"/>
.

.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/result1_demo3.png" width = "350"/>
.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/result2_demo3.png" width = "350"/>
.

# Example 4 (detailed sketch)

A detailed content sketch and 2 style images:

.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/demo5.jpg" height = "300"/>
.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/style1_demo5.jpg" width = "200"/>
.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/style2_demo5.jpg" width = "200"/>
.

.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/result1_demo5.png" width = "350"/>
.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/result2_demo5.png" width = "350"/>
.

# Example 5 (simple sketch)

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

.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/demo4.jpg" height = "300"/>
.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/style1_demo4.jpg" width = "200"/>
.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/style2_demo4.jpg" width = "200"/>
.

.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/result1_demo4.png" width = "350"/>
.
<img src="https://raw.githubusercontent.com/lllyasviel/style2paints/master/page/result2_demo4.png" width = "350"/>
.

# 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
![web_preview](https://raw.githubusercontent.com/lllyasviel/style2paints/master/tempfile/010.png)

# GPU Server for Reseachers
# Launch Server

*you need a CUDA python 3.6 environment.*
*you need a python 3.5/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
pip install scikit-image
git clone https://github.com/lllyasviel/style2paints.git
(then download all pretrained models from 'release' page and then put them in 'style2paints/server')
(then download all pretrained models from 'release' page and then decompress them to 'style2paints/server')
cd style2paints/server
python server.py

# Model
# Models

Models are available in 'release' page.
Models are available in **releases** 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](https://nico-opendata.jp/en/demo/tag/index.html)
Currently, we reserve all rights about all these models.

# Training Datasets

Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file removed images/test (1).jpg
Binary file not shown.
Binary file removed images/test (1).png
Diff not rendered.
Binary file removed images/test (10).jpg
Diff not rendered.
Binary file removed images/test (11).jpg
Diff not rendered.
Binary file removed images/test (12).jpg
Diff not rendered.
Binary file removed images/test (13).jpg
Diff not rendered.
Binary file removed images/test (14).jpg
Diff not rendered.
Binary file removed images/test (15).jpg
Diff not rendered.
Binary file removed images/test (16).jpg
Diff not rendered.
Binary file removed images/test (17).jpg
Diff not rendered.
Binary file removed images/test (18).jpg
Diff not rendered.
Binary file removed images/test (19).jpg
Diff not rendered.
Binary file removed images/test (2).jpg
Diff not rendered.
Binary file removed images/test (20).jpg
Diff not rendered.
Binary file removed images/test (21).jpg
Diff not rendered.
Binary file removed images/test (22).jpg
Diff not rendered.
Binary file removed images/test (23).jpg
Diff not rendered.
Binary file removed images/test (24).jpg
Diff not rendered.
Binary file removed images/test (3).jpg
Diff not rendered.
Binary file removed images/test (4).jpg
Diff not rendered.
Binary file removed images/test (5).jpg
Diff not rendered.
Binary file removed images/test (6).jpg
Diff not rendered.
Binary file removed images/test (7).jpg
Diff not rendered.
Binary file removed images/test (8).jpg
Diff not rendered.
Binary file removed images/test (9).jpg
Diff not rendered.
Binary file removed images_in_style_transfer/contents/1-2.png
Diff not rendered.
Binary file removed images_in_style_transfer/contents/3-4.jpg
Diff not rendered.
Binary file removed images_in_style_transfer/contents/5-6.png
Diff not rendered.
Binary file removed images_in_style_transfer/contents/7.jpg
Diff not rendered.
Binary file removed images_in_style_transfer/contents/8.jpg
Diff not rendered.
Binary file removed images_in_style_transfer/results/1.png
Diff not rendered.
Binary file removed images_in_style_transfer/results/2.png
Diff not rendered.
Binary file removed images_in_style_transfer/results/3.png
Diff not rendered.
Binary file removed images_in_style_transfer/results/4.png
Diff not rendered.
Binary file removed images_in_style_transfer/results/5.png
Diff not rendered.
Binary file removed images_in_style_transfer/results/6.png
Diff not rendered.
Binary file removed images_in_style_transfer/results/7.png
Diff not rendered.
Binary file removed images_in_style_transfer/results/8.png
Diff not rendered.
Binary file removed images_in_style_transfer/styles/1.jpg
Diff not rendered.
Binary file removed images_in_style_transfer/styles/2.jpg
Diff not rendered.
Binary file removed images_in_style_transfer/styles/3.jpg
Diff not rendered.
Binary file removed images_in_style_transfer/styles/4.jpg
Diff not rendered.
Binary file removed images_in_style_transfer/styles/5.jpg
Diff not rendered.
Binary file removed images_in_style_transfer/styles/6.jpg
Diff not rendered.
Binary file removed images_in_style_transfer/styles/7.jpg
Diff not rendered.
Binary file removed images_in_style_transfer/styles/8.jpg
Diff not rendered.
Binary file removed new_preview/0.png
Diff not rendered.
Binary file removed new_preview/1.png
Diff not rendered.
Binary file removed new_preview/2.png
Diff not rendered.
Binary file removed new_preview/3.png
Diff not rendered.
Binary file removed page/demo1.jpg
Diff not rendered.
Binary file removed page/demo1_styles.png
Diff not rendered.
Binary file removed page/demo2.jpg
Diff not rendered.
Binary file removed page/demo3.jpg
Diff not rendered.
Binary file removed page/demo4.jpg
Diff not rendered.
Binary file removed page/demo5.jpg
Diff not rendered.
Binary file removed page/google.png
Diff not rendered.
Binary file removed page/result1_demo2.png
Diff not rendered.
Binary file removed page/result1_demo3.png
Diff not rendered.
Binary file removed page/result1_demo4.png
Diff not rendered.
Binary file removed page/result1_demo5.png
Diff not rendered.
Binary file removed page/result2_demo2.png
Diff not rendered.
Binary file removed page/result2_demo3.png
Diff not rendered.
Binary file removed page/result2_demo4.png
Diff not rendered.
Binary file removed page/result2_demo5.png
Diff not rendered.
Binary file removed page/screen_shot.png
Diff not rendered.
Binary file removed page/screen_shot2.png
Diff not rendered.
Binary file removed page/screen_shot3.png
Diff not rendered.
Binary file removed page/screen_shot4.png
Diff not rendered.
Binary file removed page/style1_demo2.jpg
Diff not rendered.
Binary file removed page/style1_demo3.jpg
Diff not rendered.
Binary file removed page/style1_demo4.jpg
Diff not rendered.
Binary file removed page/style1_demo5.jpg
Diff not rendered.
Binary file removed page/style2_demo2.jpg
Diff not rendered.
Binary file removed page/style2_demo3.jpg
Diff not rendered.
Binary file removed page/style2_demo4.jpg
Diff not rendered.
Binary file removed page/style2_demo5.jpg
Diff not rendered.
Binary file removed page/untitled0.png
Diff not rendered.
Binary file removed page/untitled1.png
Diff not rendered.
Binary file removed page/untitled2.png
Diff not rendered.
Binary file removed page/untitled3.png
Diff not rendered.
Binary file removed page/untitled4.png
Diff not rendered.
Binary file removed page/untitled5.png
Diff not rendered.
Binary file removed page/untitled6.png
Diff not rendered.
Binary file removed page/untitled7.png
Diff not rendered.
Binary file removed page/untitled8.png
Diff not rendered.
File renamed without changes.
File renamed without changes.
51 changes: 1 addition & 50 deletions server/game/cocos2d-js-min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion server/game/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">

<title>style2paint</title>
<title>PaintsTransfer</title>

<!--http://www.html5rocks.com/en/mobile/mobifying/-->
<meta name="viewport"
Expand Down Expand Up @@ -48,6 +48,7 @@
</div>
</div>
<script src="src/settings.js" charset="utf-8"></script>

<script src="main.js" charset="utf-8"></script>

</body>
Expand Down
Loading

0 comments on commit 43feb86

Please sign in to comment.