This commit is contained in:
Sander Land committed 2020-05-06 18:23:55 +02:00
1 parent b33b7b33e3
commit 5ed38554ec
3 files changed
+15 -5

No files matched your search

+11 -3
View File
@@ -39,14 +39,22 @@ but has since grown to include a wide range of features, including:
* Execute the command `pip install kivy_deps.glew kivy_deps.sdl2 kivy_deps.gstreamer kivy` * Execute the command `pip install kivy_deps.glew kivy_deps.sdl2 kivy_deps.gstreamer kivy`
* Start the app by running `python katrain.py` in the directory where you downloaded the scripts. Note that the program can be slow to initialize the first time, due to kata's gpu tuning. * Start the app by running `python katrain.py` in the directory where you downloaded the scripts. Note that the program can be slow to initialize the first time, due to kata's gpu tuning.
### Installation for Linux/Mac users ### Installation for Linux users
* This assumed you have a working Python 3.6/3.7 installation as a default. If your default is python 2, use pip3/python3. Kivy currently does not have a release for Python 3.8. * This assumed you have a working Python 3.6/3.7 installation as a default. If your default is python 2, use pip3/python3. Kivy currently does not have a release for Python 3.8.
* Git clone or download the repository. * Git clone or download the repository.
* `pip install kivy` * Run the command `pip install kivy` in the terminal.
* A binary for KataGo is included, but if you have compiled your own, point the 'engine/katago' setting to the relevant KataGo v1.3.5+ binary. * A binary for KataGo is included, but if you have compiled your own, point the 'engine/katago' setting to the relevant KataGo v1.3.5+ binary.
* Start the app by running `python katrain.py`. Note that the program can be slow to initialize the first time, due to KataGo's GPU tuning. * Start the app by running `python katrain.py`. Note that the program can be slow to initialize the first time, due to KataGo's GPU tuning.
### Installation for MacOS users
* Git clone or download the repository.
* Run the command `pip install kivy` in the terminal.
* Follow instructions [here](https://github.com/lightvector/KataGo) to install KataGo using brew, or compile it yourself.
* Start the app by running `python katrain.py`, change the path of the 'katago' setting to `/usr/local/bin/katago` when using Brew, or the path
where you compiled it, and click 'Apply and Save'.
## Manual ## Manual
### Play ### Play
+1 -1
View File
@@ -98,7 +98,7 @@
"_help_right": "Lower `stddev` makes it prefer closer moves." "_help_right": "Lower `stddev` makes it prefer closer moves."
}, },
"P:Tenuki": { "P:Tenuki": {
"pick_override": 0.9, "pick_override": 0.85,
"stddev": 7.5, "stddev": 7.5,
"pick_n": 5, "pick_n": 5,
"pick_frac": 0.7, "pick_frac": 0.7,
+3 -1
View File
@@ -18,8 +18,10 @@ with open("config.json") as f:
game_settings = settings["game"] game_settings = settings["game"]
trainer_settings = settings["trainer"] trainer_settings = settings["trainer"]
#engine_settings['threads'] = 32 engine_settings['threads'] = 16
#engine_settings['katago'] = 'KataGo/katago-bs'
engine_settings["max_time"] = 1000 engine_settings["max_time"] = 1000
engine_settings["max_visits"] = 50
class Logger: class Logger:
def log(self, msg, level): def log(self, msg, level):