[Instruction] Run style2paints v3 offline
HynoR opened this issue · 39 comments
Here is the instruction about how to install the offline code on Windows(x64) devices.
中文教程:http://c7.gg/fEPeq
Instruction
Anaconda is a useful tool to contain python env. https://www.anaconda.com/
1.Download python 3.6.7 and install.
I.If you have installed other version,you need to uninstall it.
2.Open cmd and input
pip install -r requirement_xxx.txt
GPU(GTX 1060 6G or better):
https://raw.githubusercontent.com/SNSLogty/style2paints_v3_launcher/master/requirement_gpu.txt
CPU:(high compatibility)
https://raw.githubusercontent.com/SNSLogty/style2paints_v3_launcher/master/requirement_cpu.txt
3.Download the source code and models
Put the models into 'server' folder.
4.Run server.py
5.When you see "Listening to 0.0.0.0:port" , open "http://127.0.0.1:port/" in your web browser (use Chrome or Edge.Do NOT use firefox)
F&A
About error 403 Forbidden: #84
you can download server.py_corrected and replace the file.
**About V4 resources:**#87 (comment)
You can get the latest news from our social account
Twitter: https://twitter.com/IlIIlIIIllIllII
Sina Weibo: https://www.weibo.com/STYLE2PAINTS
Bilibili(not official):https://space.bilibili.com/4582779
Youtube:https://www.youtube.com/channel/UCFEVJIaqRneO2Y3VpdIFI3w
This Tutorial is not perfect at present.
If you have too many unknown problems.
Try non-install pack (CPU)
https://mega.nz/#!x8lhQa6Q!EZb75h9f1VoWrLDiQj79GK5UVC0LM3G785wiChfzeJ0
you can find the instruction here
#71
@onsoho I tried using 127.0.0.1:80* but it did not work either. I'll check back tomorrow. Thanks.
I'm getting a white blank page, any ideas why?
@CambaCambaCambaCambaCambaCamba
I'm getting a white blank page, any ideas why?
Use Chrome or Edge to open the page
@SNSLogty I've tried that as well. I keep getting "Access Denied". I think It's my proxy settings. Will try again. If it doesn't work, no problem. I'll wait for the server to come back online.
Windows 10, this worked for me:
In server.py change:
static_file("index.html", root='game/')
To:
static_file("index.html", root='./game')
@SNSLogty Had to change one other line as well after following your instructions. Or else I get white blank page. It works now. Thank you so much! Here's the two lines.
@route('/<filename:path>')
def send_static(filename):
return static_file(filename, root='./game')
@route('/')
def send_static():
return static_file("index.html", root='./game')
For me, the offline version is slow. Uploading an image takes 30 seconds and to render a painting takes about 50 seconds. I did the CPU install. Is this normal?
@SNSLogty, how can i integrate Danbooru2017 Dataset?
For me, the offline version is slow. Uploading an image takes 30 seconds and to render a painting takes about 50 seconds. I did the CPU install. Is this normal?
I believe it is normal. But, taking 30s to "upload" sounds strange for local sever. Maybe some works are done during the upload process.
@Luke-lujunxian Good to know. Thanks!
@SNSLogty
On my system, it always throws a 404 not found error (127.0.0.1 - - [02/Feb/2019:17:22:49 +0200] "GET /rooms/Feb02H17M22S39R151/sketch.colorization.jpg HTTP/1.1" 404 227890 "http://127.0.0.1/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
) after uploading a picture. I fixed it by adding the following:
# Because the other one apparently only searches in the ./game directory
@route('/rooms/<filename:path>')
def send_static(filename):
return static_file(filename, root='./gamerooms')
I added it before
@route('/<filename:path>')
def send_static(filename):
return static_file(filename, root='./game')
System Information:
Windows 10 - 64 bit
Python 3.6.7
@stefnotch i also had the same problem, i solved it by replacing server.py with server.py_corrected
@Ikar0s I replaced mine with the corrected server.py, however the issue persisted (1).
- Actually, I'm not sure if I had the issue before replacing the server.py. I just instantly replaced it with the corrected one, because that seemed like the correct thing to do.
@stefnotch Try non-install pack
https://mega.nz/#!x8lhQa6Q!EZb75h9f1VoWrLDiQj79GK5UVC0LM3G785wiChfzeJ0
you can find the instruction here
#71
@melocule
Try non-install pack
https://mega.nz/#!x8lhQa6Q!EZb75h9f1VoWrLDiQj79GK5UVC0LM3G785wiChfzeJ0
you can find the instruction here
#71
As written in the instructions, you'll need to download
https://raw.githubusercontent.com/SNSLogty/style2paints_v3_launcher/master/requirement_cpu.txt
and run
pip install -r requirement_cpu.txt
https://raw.githubusercontent.com/SNSLogty/style2paints_v3_launcher/master/requirement_cpu
I get this error.
ERROR: Could not find a version that satisfies the requirement tensorflow (from -r requirement_cpu.txt (line 1)) (from versions: none)
ERROR: No matching distribution found for tensorflow (from -r requirement_cpu.txt (line 1))
https://raw.githubusercontent.com/SNSLogty/style2paints_v3_launcher/master/requirement_cpu
I get this error.
ERROR: Could not find a version that satisfies the requirement tensorflow (from -r requirement_cpu.txt (line 1)) (from versions: none)
ERROR: No matching distribution found for tensorflow (from -r requirement_cpu.txt (line 1))
@Datguypotato
Try this command first
pip install tensorflow-1.10.0-cp36-cp36m-win_amd64.whl
then install requirement_cpu.txt
@852953573 try this version
@exi3t
It looks like it can't find baby.net
. Are you sure that you downloaded the tensorflow models and put them in the correct folder?
@exi3t
It looks like it can't findbaby.net
. Are you sure that you downloaded the tensorflow models and put them in the correct folder?
thanx,I have already used the noinstall version and it works.
StackOverflow yields a bunch of results when searching for the error message No module named '_pywrap_tensorflow_internal'
Some of the top results are
@Tomluk811 You may use 32-bit version python,Try to install the 64-bit version.
How can I stop the server?
I sucessfully installed s2p, but, although I closed the cmd, the page of 127.0.0.1
is still PaintsTranfer.
如何停止服务器?
我已成功安装了s2p,但是,尽管我关闭了cmd,但其页面127.0.0.1
仍然是PaintsTranfer。
那只是缓存
如何停止服务器?
我已成功安装了s2p,但是,尽管我关闭了cmd,但其页面127.0.0.1
仍然是PaintsTranfer。那只是缓存
kusa,谢谢orz
guys i
how do you make the actual resolution in this application?
i have photo with 2000px but
after I color it, the resolution is only at 1000 px how i can change the resolution ?
中文版已失效.
另:好像Xeon芯没有AVX,只能用Tensorflow<=1.5的....
报错如下:
Using TensorFlow backend. Traceback (most recent call last): File "server.py", line 16, in <module> from ai import * File "/home/ubuntu/MXtesting/style2paints/V3/server/ai.py", line 2, in <module> import keras File "/usr/local/lib/python3.6/dist-packages/keras/__init__.py", line 3, in <module> from . import utils File "/usr/local/lib/python3.6/dist-packages/keras/utils/__init__.py", line 6, in <module> from . import conv_utils File "/usr/local/lib/python3.6/dist-packages/keras/utils/conv_utils.py", line 9, in <module> from .. import backend as K File "/usr/local/lib/python3.6/dist-packages/keras/backend/__init__.py", line 1, in <module> from .load_backend import epsilon File "/usr/local/lib/python3.6/dist-packages/keras/backend/load_backend.py", line 90, in <module> from .tensorflow_backend import * File "/usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py", line 13, in <module> from tensorflow.python.keras.utils import tf_utils ImportError: cannot import name 'tf_utils'