KaTrain: New Features and Easy Setup with Latest KataGo Models

I recently released a new version of KaTrain, a program which uses the full power of KataGo for reviewing and playing teaching games. It includes 10+ AI options of a wide range of strengths, and is aimed at showing you the moves where you actually lost the most points.

This release includes a new feature to download the very latest 20b/30b/40b KataGo models as well as Chinese and Spanish translations. Special thanks to the Spanish OGS community for helping with a last-minute help!

See an overview of the latest features in a video by my contributor Matthew here:

Check out the windows installers and instructions for installing on other OS here

Enjoy!

9 Likes

Hi - I’ve downloaded KaTrain to a W10 pc and when I fire it up I get the message “Engine died unexpectedly without sending output, possibly due to out of memory status 3221225501” I’ve tried both the simple exe file and the zipped version. When starting KaTrain Windows does present a 'this exe unknown and may damage computer" kind of message which I ignore, but could the twitchy PC be interfering with KaTrain’s operation. If it’s possible to get it working - that would be grand :grin:

Thank you very much for this great app! :clap:

is this 1.7.4? try the debug exe in the zip with debug level=1 in general settings, it gives me something more to go on. also download katago versions and try some different ones (opencl, eigen)

I had this situation. My laptop is not very powerful. I went to General & Engine Settings, found the Download KataGO Versions line and in the drop-down list selected …/Users/Username/.katrain/katago-v1.8.0-opencl-windows-x64. Then I pressed Update Settings, wait a little, and it’s working.

Maybe you will need to press Download KataGO Versions first and wait for download finish, and then select your version.

Sorry for my poor English.

It is 1.7.4

Here’s the readout from the debug
Thanks for checking this out. I’ll find other versions and try them as suggested

Using user config file C:\Users\kimki.katrain\config.json
[INFO ] [Logger ] Record log in C:\Users\kimki.kivy\logs\kivy_21-01-28_4.txt
[DEBUG ] [Resource ] add <C:\WINDOWS\Fonts> in path list
[DEBUG ] [Resource ] add <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\kivy_install\data\fonts> in path list
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\ai.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\play.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\analysis.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\Finish.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\Insert-Move.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\local.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\Alternative.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\Sweep.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\Equalize.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\Extra.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\hamburger.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\menu.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\menu.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\black_circle.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\black_circle.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\Next-Mistake.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\Next-End.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\Next-5.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\Next.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\white_circle.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\Previous.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\Previous-5.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\Previous-End.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\Previous-Mistake.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\Collapse.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\Branch.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\delete.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\Next-5.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\graph_bg.png>
[DEBUG ] [Atlas ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\kivy_install\data\images\defaulttheme.atlas>
[DEBUG ] [Atlas ] Need to load 1 images
[DEBUG ] [Atlas ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\kivy_install\data\images\defaulttheme-0.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\kivy_install\data\images\defaulttheme-0.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\flags\flag-jp.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\flags\flag-ko.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\flags\flag-tw.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\flags\flag-cn.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\flags\flag-ru.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\flags\flag-fr.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\flags\flag-de.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\flags\flag-uk.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\General-Settings.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\AI-Settings.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\Teaching-Settings.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\Time-Settings.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\Load-Game.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\Save-Game-As.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\Save-Game.png>
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\New-Game.png>
Starting KataGo with [‘C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\KataGo/katago.exe’, ‘analysis’, ‘-model’, ‘C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\models\g170e-b15c192-s1672170752-d466197061.bin.gz’, ‘-config’, ‘C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\KataGo/analysis_config.cfg’, ‘-analysis-threads’, ‘12’]
Sending query QUERY:1: {“rules”: “japanese”, “priority”: -999999, “analyzeTurns”: [0], “maxVisits”: 25, “komi”: 6.5, “boardXSize”: 19, “boardYSize”: 19, “includeOwnership”: true, “includeMovesOwnership”: true, “includePolicy”: true, “initialStones”: [], “initialPlayer”: “B”, “moves”: [], “overrideSettings”: {“reportAnalysisWinratesAs”: “BLACK”, “maxTime”: 8.0}, “reportDuringSearchEvery”: 0.25, “id”: “QUERY:1”}
[DEBUG ] [Base ] Create provider from mouse,multitouch_on_demand
[DEBUG ] [Base ] Create provider from wm_touch
[DEBUG ] [Base ] Create provider from wm_pen
[INFO ] [Base ] Start application main loop
2021-01-28 13:08:51+0000: Analysis Engine starting…
2021-01-28 13:08:51+0000: KataGo v1.8.0 (Minified for KaTrain v1.7.1)
2021-01-28 13:08:51+0000: nnRandSeed0 = 10768108021346706220
2021-01-28 13:08:51+0000: After dedups: nnModelFile0 = C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\models\g170e-b15c192-s1672170752-d466197061.bin.gz useFP16 auto useNHWC auto
[DEBUG ] [ImageSDL2 ] Load <C:\Users\kimki\Documents\GO\KaTrain\KaTrain\katrain\img\board.png>
ERROR: Engine died unexpectedly without sending output, possibly due to out of memory: status 3221225501
ERROR: Engine died unexpectedly without sending output, possibly due to out of memory: status 3221225501
Exception in reading stdout Engine died unexpectedly without sending output, possibly due to out of memory: status 3221225501
Exception in thread Thread-1:
Traceback (most recent call last):
File “threading.py”, line 932, in _bootstrap_inner
File “threading.py”, line 870, in run
File “katrain\core\engine.py”, line 204, in _analysis_read_thread
File “katrain\core\engine.py”, line 157, in check_alive
katrain.core.engine.EngineDiedException: Engine died unexpectedly without sending output, possibly due to out of memory: status 3221225501

Thanks for the reply - your English is great - as is your advice. The drop down list on my version simply said no versions available until a couple of minutes ago, when 5 suddenly appeared. I’ve downloaded the x64 version and it’s working fine.

1 Like

Hi - further to the last message I followed the advice of MindRanger - below and hit the download KataGo versions. It repeatably came up with no versions available, but whilst I’ve been replying to both your response and his, 5 versions were found and it appears to be working fine. Thanks very much for your help. :grin:

2 Likes