Lazy Baduk: Leela Zero analysis tool for Android

For discussing go computing, software announcements, etc.
Post Reply
afar
Beginner
Posts: 19
Joined: Sun Aug 13, 2017 6:10 am
GD Posts: 0
Has thanked: 3 times
Been thanked: 8 times

Lazy Baduk: Leela Zero analysis tool for Android

Post by afar »

I've just released Lazy Baduk, a Leela Zero analysis tool for Android. The app is available on Google Play, or a few versions with different weights can be downloaded directly from Github (see below). It requires Android version 6.0 (Marshmallow) or higher.

Image


The app focuses on making it as easy as possible to start entering and analysing moves with Leela Zero, with core support for pondering, variation display, AI play (including autoplay for black and/or white), and a winrate graph. I've kept the interface as simple as possible for that reason, although I may in the future add features such as SGF save/load.

The version on Google Play uses the last 15x192 network, from July last year, as a tradeoff between strength and analysis speed. Larger networks are both noticeably slower to load on a phone, and slower to generate playouts. I'm not sure what is the best choice to balance strength and speed, but the current version seems to perform fairly well.

I've also made available some other network versions for direct download. The apps have different names and can be installed simultaneously if you want:
Lazy Baduk's source is available on Github if anyone is interested. It works by including a version of Leela Zero compiled for arm. It runs only on the CPU, although GPU support might be possible in the future for some devices. Leela Zero does use as much CPU power as it can, which can drain the battery very fast - consider charging your phone while using the app!

Anyone interested in a more featureful SGF editor that includes Leela Zero (and other bot) analysis might like to look at Ah Q Go.
User avatar
Bonobo
Oza
Posts: 2223
Joined: Fri Dec 23, 2011 6:39 pm
Rank: OGS 9k
GD Posts: 0
OGS: trohde
Universal go server handle: trohde
Location: Germany
Has thanked: 8262 times
Been thanked: 924 times
Contact:

Re: Lazy Baduk: Leela Zero analysis tool for Android

Post by Bonobo »

Wow. Looks nice.

Sadly I don’t have an Android device. Any chance that we can get this for iOS also?

BTW I find it very cool of you to mention that other app also … respect!
“The only difference between me and a madman is that I’m not mad.” — Salvador Dali ★ Play a slooooow correspondence game with me on OGS? :)
afar
Beginner
Posts: 19
Joined: Sun Aug 13, 2017 6:10 am
GD Posts: 0
Has thanked: 3 times
Been thanked: 8 times

Re: Lazy Baduk: Leela Zero analysis tool for Android

Post by afar »

Bonobo wrote:Wow. Looks nice.

Sadly I don’t have an Android device. Any chance that we can get this for iOS also?
Thanks!

Unfortunately iOS development is impossible without macOS, which I don't have (plus the developer account fee is far higher).

The app is written using the cross-platform Kivy framework, which does support iOS, so it may not be that hard to port it if anyone gets into it. The missing bit would be compiling Leela Zero using the iOS developer tools, it's probably possible but might require a bit of thought.
uestccokey
Dies in gote
Posts: 24
Joined: Thu Nov 22, 2018 9:04 pm
Rank: KGS 1kyu
GD Posts: 0
Been thanked: 10 times

Re: Lazy Baduk: Leela Zero analysis tool for Android

Post by uestccokey »

Aha, nice job, Thank you for your recommendation. :tmbup:
afar
Beginner
Posts: 19
Joined: Sun Aug 13, 2017 6:10 am
GD Posts: 0
Has thanked: 3 times
Been thanked: 8 times

Re: Lazy Baduk: Leela Zero analysis tool for Android

Post by afar »

I just added a 13x13 version, using the procedure discussed here for convering 19x19 weights for different board sizes. The weights used come from LZ network #205. Apparently they are very strong, but I think the network is also quite large and so might be a bit slower than you'd hope on a phone.
User avatar
Drew
Lives in gote
Posts: 301
Joined: Thu Oct 17, 2013 12:59 am
Rank: infant
GD Posts: 0
Location: Illinois
Has thanked: 228 times
Been thanked: 84 times
Contact:

Re: Lazy Baduk: Leela Zero analysis tool for Android

Post by Drew »

This is a great little app. You've given the community a wonderful gift. Thank you.
Vargo
Lives in gote
Posts: 337
Joined: Sat Aug 17, 2013 5:28 am
GD Posts: 0
Has thanked: 22 times
Been thanked: 97 times

Re: Lazy Baduk: Leela Zero analysis tool for Android

Post by Vargo »

Superb program :tmbup: very easy to use, especially on a tablet.

Is there a way to play handicap go ? (with the 15b networks, LZ plays good H games)

Maybe a "pass" button would do the job ?

Anyway, thank you :clap:
afar
Beginner
Posts: 19
Joined: Sun Aug 13, 2017 6:10 am
GD Posts: 0
Has thanked: 3 times
Been thanked: 8 times

Re: Lazy Baduk: Leela Zero analysis tool for Android

Post by afar »

Vargo wrote:Superb program :tmbup: very easy to use, especially on a tablet.
Thanks!

Is there a way to play handicap go ? (with the 15b networks, LZ plays good H games)

Maybe a "pass" button would do the job ?
Right now there isn't, but at least adding a pass button would be easy enough (if I can find somewhere to put it!). I'll try to get around to that in a future update.
afar
Beginner
Posts: 19
Joined: Sun Aug 13, 2017 6:10 am
GD Posts: 0
Has thanked: 3 times
Been thanked: 8 times

Re: Lazy Baduk: Leela Zero analysis tool for Android

Post by afar »

Just released version 0.7 to Google Play, it should be available for download or upgrade very shortly. Major new features include:
  • Leela Zero updated to version 0.17, should be a bit faster.
  • Added region select buttons. When pondering, Leela Zero will only suggest sequences that start within the selected region.
  • Updated the Google Play version to the 192x15 block network from here, this network is trained on 40b games and is stronger than the normal 15b network without incurring the slowdown of the increased network size.
  • Added pass button and coordinates toggle.
Region select screenshot:

Image
Vargo
Lives in gote
Posts: 337
Joined: Sat Aug 17, 2013 5:28 am
GD Posts: 0
Has thanked: 22 times
Been thanked: 97 times

Re: Lazy Baduk: Leela Zero analysis tool for Android

Post by Vargo »

Works very well... :clap:

Four handicap games against Crazy Stone Deep Learning :
First game : C.S. set at 2Dan, H3 (komi 7.5) LazyB won easily.
Second and third games : H2 against CS set at 5Dan. LazyB won both convincingly, with its winrate increasing steadily during the games (white histograms at the bottom of the 2 pictures)
at 5D, CS takes 9 sec/move on an Ipad, and I let L.B. think for ~ 2-6 sec / move
1.jpg
1.jpg (217.55 KiB) Viewed 12798 times
2.jpg
2.jpg (245.67 KiB) Viewed 12798 times
Fourth game : H3 against CS 5D. This time, LB lost, but the game could have gone both ways, LB failed to kill a big black group.

LB is around 50% quicker on my (average) tablet than on my S8 phone
afar
Beginner
Posts: 19
Joined: Sun Aug 13, 2017 6:10 am
GD Posts: 0
Has thanked: 3 times
Been thanked: 8 times

Re: Lazy Baduk: Leela Zero analysis tool for Android

Post by afar »

Vargo wrote:Works very well... :clap:

Four handicap games against Crazy Stone Deep Learning :
First game : C.S. set at 2Dan, H3 (komi 7.5) LazyB won easily.
Second and third games : H2 against CS set at 5Dan. LazyB won both convincingly, with its winrate increasing steadily during the games (white histograms at the bottom of the 2 pictures)
at 5D, CS takes 9 sec/move on an Ipad, and I let L.B. think for ~ 2-6 sec / move
Fourth game : H3 against CS 5D. This time, LB lost, but the game could have gone both ways, LB failed to kill a big black group.

LB is around 50% quicker on my (average) tablet than on my S8 phone
Wow, very nice. Leela Zero is performing better than I'd expected there, given the combination of being a handicap game and running on a slow device, but it's an excellent demonstration of LZ's effortless strength.

I never really messed with the adjustable komi networks, this is tempting me to try and integrate them for handicap play!
Gomoto
Gosei
Posts: 1733
Joined: Sun Nov 06, 2016 6:56 am
GD Posts: 0
Location: Earth
Has thanked: 621 times
Been thanked: 310 times

Re: Lazy Baduk: Leela Zero analysis tool for Android

Post by Gomoto »

Very nice, needs load & save sgf.
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: Lazy Baduk: Leela Zero analysis tool for Android

Post by Amigo »

afar wrote:I just added a 13x13 version, using the procedure discussed here for convering 19x19 weights for different board sizes. The weights used come from LZ network #205. Apparently they are very strong, but I think the network is also quite large and so might be a bit slower than you'd hope on a phone.
13x13 version does not work, checked on multiple devices. What could be the reason? and how to replace the network?
Post Reply