Git Product home page Git Product logo

Comments (2)

amj avatar amj commented on July 20, 2024

If you're trying to write a script, probably extending gtp.py is the place to do it.
serve.py is used for our front-end, minigui.

The gtp.py script is a straightforward way to load the model in the python engine.
If you need performance, you can build the gtp binary in cc/ and script inputs/outputs to that engine.

GTP is pretty strict about what it can output to stdout -- not much! Most of the useful output we put on stderr.

So you could:

  1. write a script to run inferences with the model directly (lots of examples in oneoffs/)
  2. write a script to interact with the engine via custom gtp command handlers (extending gtp.py)
  3. write a script to interact with the engine via stdin and scrape stderr/stdout for the outputs

let me know if this helps!

from minigo.

smolendawid avatar smolendawid commented on July 20, 2024

Yes, it looks ok. I don't know why I wasn't able to understand it. I think the documentation could be better, there's a lot of scripts without a single word about usage. Thanks for pointing out oneoffs directory

from minigo.

Related Issues (20)

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.