-
Install python requirements:
pip install -r minigui/requirements.txt -
Download a model from our public bucket.
-
Make sure the command at the top of
serve.pyactually runs and printsGTP engine ready; if not, something is wrong with the rest of the minigo setup, like virtualenv or similar. -
Compile the typescript. (Requires typescript compiler). Running
cd minigui; tscshould find and compile the relevant files. -
Set your current working directory to minigo root and start the flask server. Replace
$MODEL_PATHwith the path to your downloaded model. Replace$BOARD_SIZEwith either9or19depending on the size of the model you downloaded. Replace$PORTwith a port number, e.g. 5001.
python minigui/serve.py --model=$MODEL_PATH --board_size=$BOARD_SIZE --port=$PORT
-
open localhost:5001 (or whatever value you used for $PORT).
-
The buttons in the upper right that say 'Human' can be toggled to set which color Minigo will play.
-
By default, Minigui will use the Python Minigo engine. You can use the C++ engine by first compiling it (see the README), then passing
--engine=ccwhen startingminigui/serve.py. You will need to pass a frozen GraphDef proto as the--modelcommand line argument instead of the saved parameter data that the Python backend requires.Here's an example, note that we specify the board size when compiling the C++ engine binary, not when running the Minigui server:
bazel build --define=board_size=19 cc:main
python minigui/serve.py --port=8888 --model=saved_models/000483-indus-upgrade.pb --engine=cc