Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Instruction] Run style2paints v3 offline #100

Open
SNSLogty opened this issue Jan 21, 2019 · 25 comments

Comments

Projects
None yet
@SNSLogty
Copy link

commented Jan 21, 2019

Here is the instruction about how to install the offline code on Windows(x64) devices.

Instruction

1.Download python 3.6.7 and install.
I.If you have installed other version,you need to uninstall it.
pic
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:
https://raw.githubusercontent.com/SNSLogty/style2paints_v3_launcher/master/requirement_cpu.txt
pic
3.Download the source code and models
Put the models into 'server' folder.
4.Run server.py
pic
5.When you see "Listening to 127.0.0.1:8080" , open "http://127.0.0.1:80/" in your web browser (use Chrome or Edge.Do NOT use firefox)
pic
pic
pic

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 lastest news from our social account
Twitter: https://twitter.com/IlIIlIIIllIllII
Sina Weibo: https://www.weibo.com/STYLE2PAINTS

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

@Ben76904

This comment has been minimized.

Copy link

commented Jan 22, 2019

I followed the instructions and they were great. But I keep getting "unable to connect". Here's a screenshot.
server unable to con

@onsoho

This comment has been minimized.

Copy link

commented Jan 22, 2019

I followed the instructions and they were great. But I keep getting "unable to connect". Here's a screenshot.
server unable to con

127.0.0.1:80*

@Ben76904

This comment has been minimized.

Copy link

commented Jan 22, 2019

@onsoho I tried using 127.0.0.1:80* but it did not work either. I'll check back tomorrow. Thanks.

@SNSLogty

This comment has been minimized.

Copy link
Author

commented Jan 22, 2019

@Ben76904 @onsoho Try 127.0.0.1:80

@Ben76904

This comment has been minimized.

Copy link

commented Jan 22, 2019

@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.
server error

@CambaCambaCambaCambaCambaCamba

This comment has been minimized.

Copy link

commented Jan 23, 2019

I'm getting a white blank page, any ideas why?

@abdellbobo

This comment has been minimized.

Copy link

commented Jan 23, 2019

@Ben76904 try 0.0.0.0:80 and use Google Chrome.

@SNSLogty

This comment has been minimized.

Copy link
Author

commented Jan 23, 2019

@CambaCambaCambaCambaCambaCamba

I'm getting a white blank page, any ideas why?

Use Chrome or Edge to open the page

@SNSLogty

This comment has been minimized.

Copy link
Author

commented Jan 23, 2019

@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.
server error

@Ben76904
From issue #84

Windows 10, this worked for me:
In server.py change:
static_file("index.html", root='game/')
To:
static_file("index.html", root='./game')

@SNSLogty SNSLogty changed the title [Tutorial] Run style2paints v3 offline [Instruction] Run style2paints v3 offline Jan 23, 2019

@Ben76904

This comment has been minimized.

Copy link

commented Jan 23, 2019

@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')
@LapoRighini

This comment has been minimized.

Copy link

commented Jan 27, 2019

problem
After i "upload" the image the server crash, Can anyone help me? :c

@Ben76904

This comment has been minimized.

Copy link

commented Jan 27, 2019

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?

@IKAR0S

This comment has been minimized.

Copy link

commented Jan 28, 2019

@SNSLogty, how can i integrate Danbooru2017 Dataset?

@Luke-lujunxian

This comment has been minimized.

Copy link

commented Jan 29, 2019

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.

@Ben76904

This comment has been minimized.

Copy link

commented Jan 29, 2019

@Luke-lujunxian Good to know. Thanks!

@stefnotch

This comment has been minimized.

Copy link

commented Feb 2, 2019

@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

@IKAR0S

This comment has been minimized.

Copy link

commented Feb 2, 2019

@stefnotch i also had the same problem, i solved it by replacing server.py with server.py_corrected

@stefnotch

This comment has been minimized.

Copy link

commented Feb 2, 2019

@IKAR0S I replaced mine with the corrected server.py, however the issue persisted (1).

  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.
@SNSLogty

This comment has been minimized.

Copy link
Author

commented Feb 3, 2019

@stefnotch Try non-install pack
https://mega.nz/#!x8lhQa6Q!EZb75h9f1VoWrLDiQj79GK5UVC0LM3G785wiChfzeJ0
you can find the instruction here
#71

@melocule

This comment has been minimized.

Copy link

commented Feb 7, 2019

It doesn't work for me.
image

@SNSLogty

This comment has been minimized.

Copy link
Author

commented Feb 7, 2019

@melocule
Try non-install pack
https://mega.nz/#!x8lhQa6Q!EZb75h9f1VoWrLDiQj79GK5UVC0LM3G785wiChfzeJ0
you can find the instruction here
#71

@Datguypotato

This comment has been minimized.

Copy link

commented Apr 28, 2019

image

I am new to python it seems that I am missing a module
I can't find anything useful on google can somebody help me out?

@stefnotch

This comment has been minimized.

Copy link

commented Apr 28, 2019

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

@Datguypotato

This comment has been minimized.

Copy link

commented Apr 28, 2019

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))

@SNSLogty

This comment has been minimized.

Copy link
Author

commented May 4, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.