Comments (5)
@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.
from wmpoetry.
@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.
THANK YOU!
from wmpoetry.
@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.
from wmpoetry.
@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.
from wmpoetry.
from wmpoetry.
Related Issues (7)
- 分词工具可以一并开源吗 HOT 1
- 请教预处理部分的几个问题 HOT 1
- 关于generate_base.py的问题 HOT 1
- aaabbbccc HOT 1
- 这个模型真的超级复杂代码逻辑看不懂^*_*^我都想写个pytorch版本 HOT 2
- 关于tfidf.txt HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wmpoetry.