Life In 19x19
http://www.lifein19x19.com/

New android app "BadukAI"
http://www.lifein19x19.com/viewtopic.php?f=18&t=17784
Page 24 of 27

Author:  lovego [ Tue Jun 07, 2022 6:13 pm ]
Post subject:  Re: New android app "BadukAI"

When will the new version come out? I cannot wait to see. :)

Author:  akigo [ Thu Jun 09, 2022 10:43 am ]
Post subject:  Re: New android app "BadukAI"

I made a new version (1.16) available on play store https://play.google.com/store/apps/details?id=net.kir.baduk_ai and github https://github.com/aki65/aki65.github.io/releases/tag/v1.16.0 with the following changes:

1) Faster networks
The built-in Katago 20b network and the 40b network from https://github.com/aki65/aki65.github.io/releases/tag/v1.16.0 are about 30% faster on recent Snapdragon devices. I couldn't check the effect on other chipsets, but they should be at least as fast as before.

2) 27x27 and 29x29 boards

3) You can now choose the NPU accelerator, that BadukAI should use, in the "Edit Config" dialog. By default, BadukAI makes a reasonable choice, but that will not be optimal on all chipsets. So you can now try all available choices yourself and check which one is fastest.

4) Navigation into sgf variations
If the game tree contains several continuations from the current position, the button "next var" will be enabled. Tapping this button doesn't change the position, but switches to the next variation. As a result the circle, which indicates the next move, will change. If you then tap ">", you will advance into the chosen variation. If you are already on the last variation, "next var" will switch to the first one. The button "back to main" will always take you back to the main line (to the position where your chosen variation left off the main line).
When you are not at the end of the current game branch and you enter a move manually or let the AI generate a move, you create a new variation.
So you now have basic sgf editing functionality.

5) The kyu-rank bot now passes when appropriate.

Author:  And [ Thu Jun 09, 2022 10:49 am ]
Post subject:  Re: New android app "BadukAI"

@akigo

you're just a wizard!!! thank you very much, very much!!! all the best and good health!!! :D

Author:  And [ Thu Jun 09, 2022 1:46 pm ]
Post subject:  Re: New android app "BadukAI"

on an old tablet (MTK8735P) network 20B ~45 visits/min, version 1.15 network 20B ~35 visits/min

Author:  And [ Thu Jun 09, 2022 2:00 pm ]
Post subject:  Re: New android app "BadukAI"

when I want to download the network, via Choose *.txt.gz/*.bin.gz, I can't select any file. any networks are loaded through Choose *.tflite (bin and txt, and not optimized)! network g170small-b4c32-s709658624-d275852492 does not load in any way :sad:

Author:  And [ Fri Jun 10, 2022 8:55 am ]
Post subject:  Re: New android app "BadukAI"

after kyu-rank bot makes a pass, the engine turns off

Author:  And [ Fri Jun 10, 2022 8:57 am ]
Post subject:  Re: New android app "BadukAI"

kyu-rank bot has become much better at playing. have there been any changes?

Author:  akigo [ Fri Jun 10, 2022 12:32 pm ]
Post subject:  Re: New android app "BadukAI"

And wrote:
when I want to download the network, via Choose *.txt.gz/*.bin.gz, I can't select any file. any networks are loaded through Choose *.tflite (bin and txt, and not optimized)!


Yes, this can happen on older devices (and can't be avoided). I have explained the reason here: https://github.com/aki65/aki65.github.io/issues/51#issuecomment-984968944


And wrote:
network g170small-b4c32-s709658624-d275852492 does not load in any way :sad:


Do you mean "It can't be selected in the file picker" or do you mean "Katago crashes when loading it" ?

And wrote:
after kyu-rank bot makes a pass, the engine turns off


Yes, after a pass by black (for example) the mode "play B" is switched off. If you want the bot to continue playing as black, you can simply tap "play B" again (but why should you, it has already passed).
I did this for the following reason:
On a fast device, the kyu-rank bot takes only some milliseconds to play. So, if you let two kyu-rank bots play against each other (for fun or for testing purposes), then at some point they will both pass forever. Without the precaution above this would mean that they will throw hundreds of "KG passes" popups per second at the UI. So the UI would be completely blocked and you wouldn't be able to get at the buttons to stop this. So the app would become unusable.

And wrote:
kyu-rank bot has become much better at playing. have there been any changes?


No, but keep in mind that:
a) The strength of the kyu-rank bot depends on the network used.
b) The choice of move by the kyu-rank bot involves a lot of randomness. So its quality of play may vary a lot from game to game.

Author:  And [ Fri Jun 10, 2022 12:34 pm ]
Post subject:  Re: New android app "BadukAI"

"It can't be selected in the file picker"
EDIT sorry, it is selected, but the "load" is not active

for other questions, everything is clear, thank you!

Author:  akigo [ Fri Jun 10, 2022 1:27 pm ]
Post subject:  Re: New android app "BadukAI"

And wrote:
"It can't be selected in the file picker"


I found the model in your KG thread and could check the issue.

I can select default_model.bin.gz in the file picker, but you are right: it can't be loaded because "Load" remains disabled. The reason is as follows:

I want to let the inexperienced user know, that he must load two files (.bin.gz and .tflite) for an optimized model, but only one for an original model. So if the user first loads a .bin.gz, the UI tries to guess if it is part of an optimized model (then "Load" should remain disabled until the .tflite is selected) or if it is an original model (then "Load" should be enabled). How does the UI "guess" this (after all, it doesn't know the internal structure of the files) ? Well, it looks at the size: The .bin.gz, which are part of an optimized model are very small (because most is in the .tflite), the original .bin.gz are much bigger (because they contain the whole model). And now comes the problem: The 4 blocks default_model.bin.gz is so small, that the UI thinks, it must be part of an optimized model, so "Load" remains disabled.

To make a long story short: The file must be bigger to load it. So I added some junk at the end (which KG doesn't read because it knows when the model is complete) and arrived at the attached file. I can load it and it runs well. Please try if it works for you.

Attachments:
big_default_model.bin.gz [1.02 MiB]
Downloaded 381 times

Author:  And [ Fri Jun 10, 2022 1:30 pm ]
Post subject:  Re: New android app "BadukAI"

thank you very much! :D

Author:  lovego [ Sat Jun 11, 2022 6:26 pm ]
Post subject:  Re: New android app "BadukAI"

Oh, you are the god of baduk! :clap:

Author:  akigo [ Fri Jun 17, 2022 12:22 pm ]
Post subject:  Re: New android app "BadukAI"

I made a small update (1.17) available on play store https://play.google.com/store/apps/details?id=net.kir.baduk_ai and github https://github.com/aki65/aki65.github.io/releases/tag/v1.17.0 with some minor bugfixes.

Author:  Amigo [ Wed Jun 22, 2022 1:09 pm ]
Post subject:  Re: New android app "BadukAI"

kyu-rank does not show the winrate. when a beginner plays, he does not understand how he plays. is it possible to add such an option? and thank you for the wonderful program! :clap:

Author:  And [ Wed Jun 22, 2022 1:22 pm ]
Post subject:  Re: New android app "BadukAI"

Amigo wrote:
kyu-rank does not show the winrate. when a beginner plays, he does not understand how he plays. is it possible to add such an option? and thank you for the wonderful program! :clap:

what the bot thinks is interesting not only for beginners :)

Author:  akigo [ Fri Jun 24, 2022 2:23 pm ]
Post subject:  Re: New android app "BadukAI"

The kyu-rank bot doesn't calculate winrates for his moves, that's why nothing is displayed. But I could show the winrate for the current position from KataGo's network (without any playouts). That should be enough to know how the game is going.

Author:  And [ Fri Jun 24, 2022 2:49 pm ]
Post subject:  Re: New android app "BadukAI"

akigo wrote:
The kyu-rank bot doesn't calculate winrates for his moves, that's why nothing is displayed. But I could show the winrate for the current position from KataGo's network (without any playouts). That should be enough to know how the game is going.

it's interesting! :)

please make the board size selection buttons bigger in the next version, they are difficult to get into. and if you miss, the engine starts loading... :sad:

Author:  Amigo [ Sat Jun 25, 2022 1:32 am ]
Post subject:  Re: New android app "BadukAI"

akigo wrote:
The kyu-rank bot doesn't calculate winrates for his moves, that's why nothing is displayed. But I could show the winrate for the current position from KataGo's network (without any playouts). That should be enough to know how the game is going.

probably this is a good solution.

Author:  akigo [ Sun Sep 11, 2022 7:54 am ]
Post subject:  Re: New android app "BadukAI"

I made a new version (1.18) available on play store https://play.google.com/store/apps/deta ... r.baduk_ai and github https://github.com/aki65/aki65.github.i ... ag/v1.18.0 with the following new features:

1) pan/zoom for board
As usual: If you put two fingers on the board and move them apart, the board will be increased (and vice versa). If you move both fingers in parallel (i.e. without changing their distance) the visible part of the board will be moved.

2) display winrate for kyu-rank bot
as discussed in the previous posts

3) more tolerant sgf reading

4) speed of jumping through game tree is optimized

5) ready for android 13

Author:  lovego [ Thu Dec 01, 2022 4:38 am ]
Post subject:  Re: New android app "BadukAI"

Katago recently release a weight of 18b and won the second place in UEC competition. It is said that the same playout amount is stronger than the weight of 60b. Can you support it :salute:

Page 24 of 27 All times are UTC - 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/