Releases: MAOmao000/LeelaGUI
v1.6.2
v1.6.1
v1.6.0
Notable Changes
- Adds engine-side abandonment judgment when using the KataGo engine with the analysis interface.
- When using the KataGo engine with the gtp interface, it exclusively controls GTP command transmission/reception processing.
- Other minor fixes.
- Note: When using the KataGo engine for the first time, it will take some time for the window to appear. This is because LeelaGUI waits for KataGo's GPU (OpenCL) to finish initial tuning before displaying the window.
Build example on Linux (Ubuntu)
Executable files are provided only for Windows. It bundles the KataGo executable (v1.11.0) and a 40-block network file.
Other platforms require a cmake build. You will also need to install KataGo and download the network files.
$ git clone https://github.com/MAOmao000/LeelaGUI.git
$ cd LeelaGUI
$ mkdir build
$ cd build
$ cmake .. -DUSE_GPU=1
$ cmake --build .
$ strip leelagui
$ cp -rf ../installer_win64/bin/catalogs ./
$ cp -p ../LeelaGUI_OpenCL.ini ./
$ cp -p ../installer_win64/bin/analysis_example.cfg ./
$ cp -p ../installer_win64/bin/default_gtp.cfg ./
$ vi LeelaGUI_OpenCL.ini
/xxx/katago analysis -config /xxx/LeelaGUI/build/analysis_example.cfg -model /xxx/kata1-b40c256-s11840935168-d2898845681.bin.gz -override-config "wideRootNoise=0.0"
or
/xxx/katago analysis -config /xxx/LeelaGUI/build/analysis_example.cfg -model /xxx/kata1-b40c256-s11840935168-d2898845681.bin.gz
{"wideRootNoise":0.0}
or
/xxx/katago gtp -config /xxx/LeelaGUI/build/default_gtp.cfg -model /xxx/kata1-b40c256-s11840935168-d2898845681.bin.gz
time_settings 0 5 1
v1.5.0
Notable Changes
- Support KataGo's analysis subcommand interface.
- Note: When using the KataGo engine for the first time, it will take some time for the window to appear. This is because LeelaGUI waits for KataGo's GPU (OpenCL) to finish initial tuning before displaying the window.
Build example on Linux (Ubuntu)
$ git clone https://github.com/MAOmao000/LeelaGUI.git
$ cd LeelaGUI
$ mkdir build
$ cd build
$ cmake .. -DUSE_GPU=1 -DUSE_WLCOPY=1
$ cmake --build .
$ strip leelagui
$ cp -rf ../installer_win64/bin/catalogs ./
$ cp -p ../LeelaGUI_OpenCL.ini ./
$ cp -p ../installer_win64/bin/analysis_example.cfg ./
$ cp -p ../installer_win64/bin/default_gtp.cfg ./
$ vi LeelaGUI_OpenCL.ini
/xxx/katago analysis -config /xxx/LeelaGUI/build/analysis_example.cfg -model /xxx/kata1-b40c256-s11840935168-d2898845681.bin.gz -override-config "wideRootNoise=0.0"
or
/xxx/katago analysis -config /xxx/LeelaGUI/build/analysis_example.cfg -model /xxx/kata1-b40c256-s11840935168-d2898845681.bin.gz
{"wideRootNoise":0.0}
or
/xxx/katago gtp -config /xxx/LeelaGUI/build/default_gtp.cfg -model /xxx/kata1-b40c256-s11840935168-d2898845681.bin.gz
time_settings 0 5 1
The first line of the .ini file is the KataGo startup command line; for the GTP subcommand, the second and subsequent lines are GTP commands (only kata-set-rules, kata-set-rule, kgs-rules, kata-set-param, time_settings, kgs-time_settings, kata-time_settings and time_left supported) sent immediately after KataGo startup; for the analysis subcommand, the second line is the overrideSettings information to be added to the outgoing query (in JSON format).
v1.4.0
Notable Changes
- Get KataGo information via GTP.
How to use the KataGo engine
The following files are in the folder with the LeelaGUI executable file (In windows it is in C:\Users\xxx\AppData\Local\Programs\LeelaI18N by default..)
- LeelaGUI.ini (Without GPU)
- LeelaGUI_OpenCL.ini (When using GPU)
The default definition is below.
For LeelaGUI.ini
katago.exe gtp -model kata1-b40c256-s11840935168-d2898845681.bin.gz
time_settings 0 5 1
For LeelaGUI_OpenCL.ini
katago_OpenCL.exe gtp -model kata1-b40c256-s11840935168-d2898845681.bin.gz
time_settings 0 5 1
Write the KataGo startup command on the first line.
After the second line, write the GTP command to send to KataGo after starting KataGo. (Unnecessary unless otherwise.)
If you add a # to the beginning of all lines to comment them out, LeelaGUI will search for moves with the Leela engine. (Existing process works.)
The definition of KataGo's operating environment is described in the default_gtp.cfg file.
For games with handicaps, it is necessary to follow the Chinese rules to make the komi calculation match the LeelaGUI process.
Everything else is freely configurable.
There may be some glitches due to lack of testing yet, but it is working fine for normal games against KataGo.
Build example on Linux (Ubuntu)
$ git clone https://github.com/MAOmao000/LeelaGUI.git
$ cd LeelaGUI
$ mkdir build
$ cd build
$ cmake .. -DUSE_GPU=1
$ cmake --build .
$ strip leelagui
$ cp -rf ../installer_win64/bin/catalogs ./
$ cp -p ../LeelaGUI_OpenCL.ini ./
Install KataGo.
Download the weights of KataGo.
Edit KataGo's default_gtp.cfg.
Edit Leelagui_opencl.ini or Leelagui.ini according to the installation location of KataGo.
v1.3.1
Notable Changes
- Fixed an issue where the Moyo display was not displayed correctly when using KataGo.
- Changes to KataGo's Probabilities and Territory Management.
- Update KataGo board information in MainFrame instance instead of TBoardPanel instance.
- Other minor fixes.
v1.3.0
Notable Changes
- In version 1.3.0, we have added functions to work with KataGo's engine, except for analysis and time setting.
Tuning the KataGo engine
KataGo configuration file (default_gtp.cfg) is in LeelaGUI installation folder.
The first lines of this file define:
modelFile = kata1-b40c256-s11840935168-d2898845681.bin.gz
Comment out this line if you don't use the KataGo engine. Also, if you use another KataGo model (for example, 20 blocks), rewrite it at that place.
All other definitions are the same as those of KataGo (V1.11.0).
At a minimum, the following adjustments may be required.
logDir = gtp_logs
# logFile = gtp.log
logAllGlogSearchInfo = false
logSearchInfo = false
logToStderr = false
startupPrintMessageToStderr = false
rules=chinese
# maxVisits = 500
# maxPlayouts = 300
# maxTime = 10
ponderingEnabled = false
numSearchThreads = 5
# numNNServerThreadsPerModel = 1
Note that rules = chinese is required to match Komi calculations with LeelaGUI in handicap games.
In other cases you can set arbitrary rules.
1.2.1
Notable Changes
- Use latest wxWidgets (wxWidgets-3.2.0).
- Deal with the following error when drawing a analysis window on Linux and wxWidgets-3.2.0.
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug - Address the issue that WSL2 cannot copy to the clipboard.
Workaround by installing wl-copy command and calling this command
$ sudo apt install wl-clipboard
wxExecute(wxString::Format("wl-copy '%s'", pvstring.utf8_str())); - Change ScoreDialog size from (392,255) to (392,270).
- Add winrate and MCOwnerTable score to best move in status bar
- Increase the font size of coordinate scales (1, 2, ..., 19 & a, b, ..., t) on the Go board screen and change lowercase letters to uppercase letters.
- Support building with cmake.
Example (when using GPU)
$ cd ~
$ rm -rf LeelaGUI
$ git clone https://github.com/MAOmao000/LeelaGUI.git
$ cd LeelaGUI
$ mkdir build
$ cd build
$ cmake .. -DUSE_GPU=1 ※(… Omit -DUSE_GPU=1 for CPU only)
$ make
$ strip leelagui
$ mkdir catalogs
$ mkdir catalogs/ja
$ mkdir catalogs/ja/LC_MESSAGES
$ cp ../i18n/messages.mo catalogs/ja/LC_MESSAGES/
$ ./leelagui
1.2.0
1.1.0
I18N version
Notable Changes
- Switch internationalization from the local method to the GNU gettext method.
- By changing the program name from Leela to Leela I18N, it is possible to coexist with the original Leela GUI.
- When displaying in Japanese, it is necessary to place "messages.mo" under the current directory (directory with the executable file) as shown below. If you install via the installer on Windows, it will be placed automatically.
Current directory -> catalogs -> ja -> LC_MESSAGES -> messages.mo - Stop using the aplay command in the Linux environment and use wxSound.
- Deal with "could not set current working directory".
- New deb files for ubuntu have been released.