Skip to content

Commit

Permalink
2
Browse files Browse the repository at this point in the history
  • Loading branch information
lllyasviel committed Jun 15, 2022
1 parent 82320c7 commit 6e64700
Show file tree
Hide file tree
Showing 580 changed files with 51,528 additions and 0 deletions.
40 changes: 40 additions & 0 deletions V4.5/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Style2Paints V4.5

This is the source code of the Style2Paints V4.5. In this forlder, the codes implements the functionality of what can be achieved in the compiled software "style2paints45beta1214B.zip".

# Install

You will need CUDA 10.0, CuDNN 7, Python 3.6

pip install opencv-contrib-python==4.1.0.25
pip install tensorflow_gpu==1.14.0
pip install bottle==0.12.10
pip install tqdm

Then download the software "style2paints45beta1214B.zip", put the model files like

s2p_v45_server/nets/inception.net
s2p_v45_server/nets/gau.npy
s2p_v45_server/nets/refs.net
...

# Run

Simply run the python file "Style2PaintsV45_source.py" like

cd s2p_v45_server
python Style2PaintsV45_source.py

Note that if you see something like

WARNING:tensorflow:No training configuration found in save file: the model was *not* compiled. Compile it manually.

Then just ignore it.

When the service is ready, you can use the software at

http://127.0.0.1:8233/index.html

# Client Source Code

The user interface is written in Cocos Creator. Although you do not need to touch the client UI code, if you want to do so, you may need [Cocos Creator](https://www.cocos.com/creator).
67 changes: 67 additions & 0 deletions V4.5/s2p_v45_client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#/////////////////////////////////////////////////////////////////////////////
# Fireball Projects
#/////////////////////////////////////////////////////////////////////////////

library/
temp/
local/
build/

#/////////////////////////////////////////////////////////////////////////////
# Logs and databases
#/////////////////////////////////////////////////////////////////////////////

*.log
*.sql
*.sqlite

#/////////////////////////////////////////////////////////////////////////////
# files for debugger
#/////////////////////////////////////////////////////////////////////////////

*.sln
*.csproj
*.pidb
*.unityproj
*.suo

#/////////////////////////////////////////////////////////////////////////////
# OS generated files
#/////////////////////////////////////////////////////////////////////////////

.DS_Store
ehthumbs.db
Thumbs.db

#/////////////////////////////////////////////////////////////////////////////
# exvim files
#/////////////////////////////////////////////////////////////////////////////

*UnityVS.meta
*.err
*.err.meta
*.exvim
*.exvim.meta
*.vimentry
*.vimentry.meta
*.vimproject
*.vimproject.meta
.vimfiles.*/
.exvim.*/
quick_gen_project_*_autogen.bat
quick_gen_project_*_autogen.bat.meta
quick_gen_project_*_autogen.sh
quick_gen_project_*_autogen.sh.meta
.exvim.app

#/////////////////////////////////////////////////////////////////////////////
# webstorm files
#/////////////////////////////////////////////////////////////////////////////

.idea/

#//////////////////////////
# VS Code
#//////////////////////////

.vscode/
2 changes: 2 additions & 0 deletions V4.5/s2p_v45_client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# hello-world
Hello world new project template.
6 changes: 6 additions & 0 deletions V4.5/s2p_v45_client/assets/Scene.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"ver": "1.0.1",
"uuid": "29f52784-2fca-467b-92e7-8fd9ef8c57b7",
"isGroup": false,
"subMetas": {}
}
Loading

0 comments on commit 6e64700

Please sign in to comment.