-
Notifications
You must be signed in to change notification settings - Fork 21
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
Python3 didn't work at the end of pre-training And pre-model didn't save successfully #5
Comments
@chajiuqqq Hi, there should be two directories, model/ and premodel/ in WMPoetry/wm/, which are used to save checkpoints of the wm model and the pre-trained model respectively, as shown in WMPoetry/wm/config.py. Have you created these directories? Since we run our model in Linux instead of windows, there may be some unexpected problems. Please check that if you correctly create model/ and premodel/. For any further questions, just reply in this issue. |
@XiaoyuanYi Thank you for your reply, I haven't created these two directories before. And it succeeded to save model when I have done this operation. I have supposed these two directories will be created automatically. |
@XiaoyuanYi I have another question when attempting to integrate WMPoetry with Flask, a framework of Python Web. If you have such experience in Python Web, hope you take a few time to view my question. Flask receives http request and returns response after having done the designed service. It's natural to run gen_ui.py when receiving the request and finally return the output as response. But it takes time to do some same preparative work every time running gen_ui.py. So, I'm curious if there is any way to keep gen_ui.py running and block it when hasn't request instead of restarting gen_ui.py every time. One possible way is multi-thread. Is it possible? I'm a green hand in Python. Hope for your reply. |
@chajiuqqq I would be glad to help but I'm in charge of model and algorithm design, not familiar with Flask. Sorry, I can't provide advice about this problem. |
Never mind it. Thank you for contributing such a good open-source project. Hope you have a nice day!
获取 Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
发件人: XiaoyuanYi <notifications@github.com>
发送时间: Thursday, May 21, 2020 8:18:34 AM
收件人: XiaoyuanYi/WMPoetry <WMPoetry@noreply.github.com>
抄送: chajiuqqq <chajiuqqq@outlook.com>; Mention <mention@noreply.github.com>
主题: Re: [XiaoyuanYi/WMPoetry] Python3 didn't work at the end of pre-training And pre-model didn't save successfully (#5)
@chajiuqqq<https://github.com/chajiuqqq> I would be glad to help but I'm in charge of model and algorithm design, not familiar with Flask. Sorry, I can't provide advice about this problem.
―
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#5 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AL5SEDXXEDYHOVE4IG3XUSTRSRXNVANCNFSM4ND325ZA>.
|
System information
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): win10 x86
TensorFlow installed from (source or binary): anaconda
TensorFlow version: 1.14.0
Python version: 3.7.4
My problem
I downloaded the data files supported by you, when I began step4.2(Keywords Extraction and Genre Pattern Building), it always showed that 'gbk' can't decode \xxx in line xx. So I tried to change the read-file way in the source. Like this:
Before:
After:
It works, errors have gone when I changed all the places where it gave a decoding error.
But at the end of pre-training, it showed that "Python3 didn't work" with a dialogue box. And the code showed at last are following, And there hasn't a fold named 'premodel' in WMPoetry\wm, can you help me?
The text was updated successfully, but these errors were encountered: