New android app "BadukAI"

For discussing go computing, software announcements, etc.
And
Gosei
Posts: 1464
Joined: Tue Sep 25, 2018 10:28 am
GD Posts: 0
Has thanked: 212 times
Been thanked: 215 times

Re: New android app "BadukAI"

Post by And »

after kyu-rank bot makes a pass, the engine turns off
And
Gosei
Posts: 1464
Joined: Tue Sep 25, 2018 10:28 am
GD Posts: 0
Has thanked: 212 times
Been thanked: 215 times

Re: New android app "BadukAI"

Post by And »

kyu-rank bot has become much better at playing. have there been any changes?
akigo
Lives with ko
Posts: 186
Joined: Sun Jun 28, 2020 11:20 am
GD Posts: 0
Has thanked: 13 times
Been thanked: 154 times

Re: New android app "BadukAI"

Post by akigo »

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.i ... -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.
And
Gosei
Posts: 1464
Joined: Tue Sep 25, 2018 10:28 am
GD Posts: 0
Has thanked: 212 times
Been thanked: 215 times

Re: New android app "BadukAI"

Post by And »

"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!
akigo
Lives with ko
Posts: 186
Joined: Sun Jun 28, 2020 11:20 am
GD Posts: 0
Has thanked: 13 times
Been thanked: 154 times

Re: New android app "BadukAI"

Post by akigo »

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 1135 times
And
Gosei
Posts: 1464
Joined: Tue Sep 25, 2018 10:28 am
GD Posts: 0
Has thanked: 212 times
Been thanked: 215 times

Re: New android app "BadukAI"

Post by And »

thank you very much! :D
lovego
Dies in gote
Posts: 61
Joined: Thu Jan 21, 2021 6:17 pm
Rank: KGS 1 dan
GD Posts: 0

Re: New android app "BadukAI"

Post by lovego »

Oh, you are the god of baduk! :clap:
akigo
Lives with ko
Posts: 186
Joined: Sun Jun 28, 2020 11:20 am
GD Posts: 0
Has thanked: 13 times
Been thanked: 154 times

Re: New android app "BadukAI"

Post by akigo »

I made a small update (1.17) 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.17.0 with some minor bugfixes.
Amigo
Dies in gote
Posts: 54
Joined: Sat Sep 28, 2019 12:06 pm
GD Posts: 0
Has thanked: 60 times
Been thanked: 10 times

Re: New android app "BadukAI"

Post by Amigo »

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:
And
Gosei
Posts: 1464
Joined: Tue Sep 25, 2018 10:28 am
GD Posts: 0
Has thanked: 212 times
Been thanked: 215 times

Re: New android app "BadukAI"

Post by And »

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 :)
akigo
Lives with ko
Posts: 186
Joined: Sun Jun 28, 2020 11:20 am
GD Posts: 0
Has thanked: 13 times
Been thanked: 154 times

Re: New android app "BadukAI"

Post by akigo »

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.
And
Gosei
Posts: 1464
Joined: Tue Sep 25, 2018 10:28 am
GD Posts: 0
Has thanked: 212 times
Been thanked: 215 times

Re: New android app "BadukAI"

Post by And »

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:
Amigo
Dies in gote
Posts: 54
Joined: Sat Sep 28, 2019 12:06 pm
GD Posts: 0
Has thanked: 60 times
Been thanked: 10 times

Re: New android app "BadukAI"

Post by Amigo »

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.
akigo
Lives with ko
Posts: 186
Joined: Sun Jun 28, 2020 11:20 am
GD Posts: 0
Has thanked: 13 times
Been thanked: 154 times

Re: New android app "BadukAI"

Post by akigo »

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
lovego
Dies in gote
Posts: 61
Joined: Thu Jan 21, 2021 6:17 pm
Rank: KGS 1 dan
GD Posts: 0

Re: New android app "BadukAI"

Post by lovego »

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:
Post Reply