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

Lizzie - the Leela Zero UI
http://lifein19x19.com/viewtopic.php?f=18&t=15549
Page 3 of 4

Author:  pandora [ Mon May 14, 2018 4:41 am ]
Post subject:  Re: Lizzie - the Leela Zero UI

Liziie.jar play fast,Is there any way for her to run slow like 10-15 seconds?

Author:  headless [ Mon May 14, 2018 5:57 am ]
Post subject:  Re: Lizzie - the Leela Zero UI

pandora wrote:
Liziie.jar play fast,Is there any way for her to run slow like 10-15 seconds?

You can use a text editor to edit the file "lizzie.properties". There's "max-game-thinking-time-seconds" for you.

Author:  Sneegurd [ Mon May 14, 2018 8:45 am ]
Post subject:  Re: Lizzie - the Leela Zero UI

pandora wrote:
Anyone know how to run LZ on sabaki?What's this mistake?

It says "Welcome to the world of computer program calls and arguments. Welcome to the real world, it's not all apples!"

Learn from my Sabaki setting. "bestnet" is my weights file. It resides in the same folder as leelaz.exe.

Image

Author:  ez4u [ Mon May 14, 2018 3:37 pm ]
Post subject:  Re: Lizzie - the Leela Zero UI

pandora wrote:
Anyone know how to run LZ on sabaki?What's this mistake?

It seems that you have not unzipped your weights file. The download is *.gz and you have to extract it before LZ can use it.

Author:  C. Blue [ Wed May 23, 2018 11:54 pm ]
Post subject:  Re: Lizzie - the Leela Zero UI

Lizzie hardcodes the "./leelaz" command. I wanted to run an SSH command though to connect remotely to a more powerful machine, using my notebook merely as a terminal. So I made a little patch to allow arbitrary commands in lizzie.properties file:

lizzie-master\src\main\java\wagner\stephanie\lizzie\analysis\Leelaz.java:
Replace
Code:
        commands.add("./leelaz"); // windows, linux, mac all understand this
        commands.add("-g");
        commands.add("-t");
        commands.add(""+config.getInt("threads"));
        commands.add("-w");
        commands.add(config.getString("weights"));
        commands.add("-b");
        commands.add("0");

by
Code:
      // C. Blue - Replacing hardcoded leelaz binary with arbitrary command (to enable easy remote connection via SSH)
      //  Additional unrelated notes:
      //   max-analyze-time-minutes is a timeout after which pondering is automatically turned off (presumably to freeze the % numbers)
      //   max-game-thinking-time-seconds has no effect.
      //   The default code (see further below) added "-b 0" aka 0s lag buffer.      
      if (!config.getString("command").isEmpty()) {
         String[] comms = config.getString("command").split(" ");
         for (int i = 0; i < comms.length; i++)
            commands.add(comms[i]);
      } else {
         commands.add("./leelaz"); // windows, linux, mac all understand this
         commands.add("-g");
         commands.add("-t");
         commands.add(""+config.getInt("threads"));
         commands.add("-w");
         commands.add(config.getString("weights"));
         commands.add("-b");
         commands.add("0"); //(C. Blue: hardcoded lagbuffer? hm)
      }

Then add a "command" key to lizzie.properties under "leelaz" so it looks like this for example:
Code:
{
  "leelaz": {
   "command": "C:\\Progra~1\\OpenSSH\\bin\\ssh.exe -p someport 'somename'@somehost",


Again, if "command" is non-empty, all the other parameters will be skipped. If it is empty, like this:
Code:
   "command": "",

then all the other keys are used instead, just as before.
I used Maven to build lizzie, as recommended on https://github.com/featurecat/lizzie .

Alternatively, instead of patching the lizzie code you could of course also just create a custom replacement [script] for leelaz, as described by 'dwt' here for example: https://github.com/featurecat/lizzie/issues/92

PS: In case you were wondering why my ssh command doesn't contain an actual leelaz-call, that's just because I predefined leelaz (plus its parameters) in the server's authorized_keys file as the default command to run for any ssh connection (along with the usual other safety measures ;)).

Author:  Uberdude [ Thu May 24, 2018 1:48 am ]
Post subject:  Re: Lizzie - the Leela Zero UI

Message from my wife this morning:

Attachment:
sai lizzie.png
sai lizzie.png [ 5.93 KiB | Viewed 13355 times ]

Author:  Javaness2 [ Thu May 24, 2018 2:07 am ]
Post subject:  Re: Lizzie - the Leela Zero UI

Uberdude wrote:
Message from my wife this morning:

Attachment:
sai lizzie.png


but do you not feel jealous? :)

Author:  dfan [ Thu May 24, 2018 4:45 am ]
Post subject:  Re: Lizzie - the Leela Zero UI

C. Blue wrote:
Lizzie hardcodes the "./leelaz" command. I wanted to run an SSH command though to connect remotely to a more powerful machine, using my notebook merely as a terminal. So I made a little patch to allow arbitrary commands in lizzie.properties file

You might consider submitting this as a pull request. I know that featurecat was planning on putting this feature in but I don't know if it's been implemented in the official copy yet. (I just use the "replace leelaz by a shell script" solution.)

Author:  daal [ Sat May 26, 2018 4:00 am ]
Post subject:  Re: Lizzie - the Leela Zero UI

What is the meaning of the numbers in the circles, and the colors of the circles? A link would be fine.

Author:  Javaness2 [ Sat May 26, 2018 4:20 am ]
Post subject:  Re: Lizzie - the Leela Zero UI

This should be in the GitHub wiki

Author:  daal [ Sat May 26, 2018 5:20 am ]
Post subject:  Re: Lizzie - the Leela Zero UI

Javaness2 wrote:
This should be in the GitHub wiki


Sorry to be dense, but where is that? I tried clicking on all the github links here in the thread and didn't see a wiki....

What I really want to know, is how to interpret the information that lizzie shows.

Author:  dfan [ Sat May 26, 2018 6:03 am ]
Post subject:  Re: Lizzie - the Leela Zero UI

daal wrote:
What is the meaning of the numbers in the circles, and the colors of the circles? A link would be fine.

The top number is Leela Zero's evaluation of the winning percentage. By default this is from the point of view of the side to play (e.g., if it says 57.2, then the player whose turn it is has a 57.2% chance to win if they play at that point).

The bottom number is the number of "visits", the times Leela Zero has considered the position that would result by playing on that point. It goes up as Leela Zero looks at more variations starting with that move. As you might expect, it will spend most of its time analyzing the most promising moves.

The color is a visualization of the bottom number. The point with the most visits is bright green and surrounded with a red circle; this is the move that Leela Zero would make if you asked it to choose a move right now. As points get less visits, the color becomes more red and more translucent.

Author:  splee99 [ Sat May 26, 2018 1:02 pm ]
Post subject:  Re: Lizzie - the Leela Zero UI

I just copied the 0.4 version. When I run it from the windows command prompt I got this error message:

java -jar lizzie.jar
Exception in thread "main" java.lang.IllegalStateException: Buffers have not been created
at java.desktop/sun.awt.windows.WComponentPeer.getBackBuffer(Unknown Source)
at java.desktop/java.awt.Component$FlipBufferStrategy.getBackBuffer(Unknown Source)
at java.desktop/java.awt.Component$FlipBufferStrategy.updateInternalBuffers(Unknown Source)
at java.desktop/java.awt.Component$FlipBufferStrategy.createBuffers(Unknown Source)
at java.desktop/java.awt.Component$FlipBufferStrategy.<init>(Unknown Source)
at java.desktop/java.awt.Component$FlipSubRegionBufferStrategy.<init>(Unknown Source)
at java.desktop/java.awt.Component.createBufferStrategy(Unknown Source)
at java.desktop/java.awt.Window.createBufferStrategy(Unknown Source)
at java.desktop/java.awt.Component.createBufferStrategy(Unknown Source)
at java.desktop/java.awt.Window.createBufferStrategy(Unknown Source)
at wagner.stephanie.lizzie.gui.LizzieFrame.<init>(LizzieFrame.java:111)
at wagner.stephanie.lizzie.Lizzie.main(Lizzie.java:43)

Author:  Calvin Clark [ Sat May 26, 2018 2:23 pm ]
Post subject:  Re: Lizzie - the Leela Zero UI

splee99 wrote:
I just copied the 0.4 version. When I run it from the windows command prompt I got this error message:


Java version?

Author:  splee99 [ Sat May 26, 2018 3:50 pm ]
Post subject:  Re: Lizzie - the Leela Zero UI

Java version 10.0.1 amd64

Author:  Calvin Clark [ Sat May 26, 2018 7:38 pm ]
Post subject:  Re: Lizzie - the Leela Zero UI

splee99 wrote:
Java version 10.0.1 amd64


I have only used Java 8 for this in the past, but I just tried Java 10 and it gets a bit further if you do this:

java -Dsun.java2d.d3d=false -jar Lizzie.jar

But there are still some other errors logged to the console, so I am not certain it will work properly. It is likely the author never tested it with Java 10.

Author:  splee99 [ Sat May 26, 2018 9:21 pm ]
Post subject:  Re: Lizzie - the Leela Zero UI

Interesting. It seems to be working now with that special command.

Author:  Uberdude [ Fri Jun 01, 2018 1:57 am ]
Post subject:  Re: Lizzie - the Leela Zero UI

Version 0.5 is released:

https://github.com/featurecat/lizzie/releases/tag/0.5

Author:  Gomoto [ Fri Jun 01, 2018 5:11 am ]
Post subject:  Re: Lizzie - the Leela Zero UI

And 0.5 is also friendly to Elf.

Attachments:
800px-Elf_by_William_Goscombe_John,_Kibble_Palace.jpg
800px-Elf_by_William_Goscombe_John,_Kibble_Palace.jpg [ 178.15 KiB | Viewed 12954 times ]

Author:  Uberdude [ Fri Jun 01, 2018 7:29 am ]
Post subject:  Re: Lizzie - the Leela Zero UI

Great point Gomoto, I'm looking forward to finally receiving some Elvish wisdom!

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