Git Product home page Git Product logo

Comments (5)

XiaoyuanYi avatar XiaoyuanYi commented on June 20, 2024

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

chajiuqqq avatar chajiuqqq commented on June 20, 2024

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

chajiuqqq avatar chajiuqqq commented on June 20, 2024

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

XiaoyuanYi avatar XiaoyuanYi commented on June 20, 2024

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

chajiuqqq avatar chajiuqqq commented on June 20, 2024

from wmpoetry.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.