It is currently Tue Apr 16, 2024 2:46 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 69 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
Offline
 Post subject: Re: Lizzie - the Leela Zero UI
Post #41 Posted: Mon May 14, 2018 4:41 am 
Beginner

Posts: 11
Liked others: 0
Was liked: 0
Rank: 1 kyu
GD Posts: 10
KGS: 1 dan
Tygem: 4 dan
IGS: 3 dan
Wbaduk: 1 kyu
DGS: 4 dan
OGS: 2 dan
Liziie.jar play fast,Is there any way for her to run slow like 10-15 seconds?

Top
 Profile  
 
Offline
 Post subject: Re: Lizzie - the Leela Zero UI
Post #42 Posted: Mon May 14, 2018 5:57 am 
Beginner

Posts: 16
Liked others: 1
Was liked: 5
Rank: KGS 1 kyu
KGS: headless
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.

Top
 Profile  
 
Offline
 Post subject: Re: Lizzie - the Leela Zero UI
Post #43 Posted: Mon May 14, 2018 8:45 am 
Lives with ko

Posts: 129
Liked others: 20
Was liked: 17
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

Top
 Profile  
 
Offline
 Post subject: Re: Lizzie - the Leela Zero UI
Post #44 Posted: Mon May 14, 2018 3:37 pm 
Oza
User avatar

Posts: 2401
Location: Tokyo, Japan
Liked others: 2338
Was liked: 1332
Rank: Jp 6 dan
KGS: ez4u
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.

_________________
Dave Sigaty
"Short-lived are both the praiser and the praised, and rememberer and the remembered..."
- Marcus Aurelius; Meditations, VIII 21

Top
 Profile  
 
Offline
 Post subject: Re: Lizzie - the Leela Zero UI
Post #45 Posted: Wed May 23, 2018 11:54 pm 
Dies in gote

Posts: 69
Liked others: 29
Was liked: 29
Rank: EGF 1d
KGS: CBlue
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 ;)).

Top
 Profile  
 
Offline
 Post subject: Re: Lizzie - the Leela Zero UI
Post #46 Posted: Thu May 24, 2018 1:48 am 
Judan

Posts: 6725
Location: Cambridge, UK
Liked others: 436
Was liked: 3719
Rank: UK 4 dan
KGS: Uberdude 4d
OGS: Uberdude 7d
Message from my wife this morning:

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

Top
 Profile  
 
Offline
 Post subject: Re: Lizzie - the Leela Zero UI
Post #47 Posted: Thu May 24, 2018 2:07 am 
Gosei

Posts: 1494
Liked others: 111
Was liked: 315
Uberdude wrote:
Message from my wife this morning:

Attachment:
sai lizzie.png


but do you not feel jealous? :)

_________________
North Lecale

Top
 Profile  
 
Offline
 Post subject: Re: Lizzie - the Leela Zero UI
Post #48 Posted: Thu May 24, 2018 4:45 am 
Gosei

Posts: 1590
Liked others: 886
Was liked: 528
Rank: AGA 3k Fox 3d
GD Posts: 61
KGS: dfan
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.)

Top
 Profile  
 
Offline
 Post subject: Re: Lizzie - the Leela Zero UI
Post #49 Posted: Sat May 26, 2018 4:00 am 
Oza
User avatar

Posts: 2508
Liked others: 1304
Was liked: 1128
What is the meaning of the numbers in the circles, and the colors of the circles? A link would be fine.

_________________
Patience, grasshopper.

Top
 Profile  
 
Offline
 Post subject: Re: Lizzie - the Leela Zero UI
Post #50 Posted: Sat May 26, 2018 4:20 am 
Gosei

Posts: 1494
Liked others: 111
Was liked: 315
This should be in the GitHub wiki

_________________
North Lecale

Top
 Profile  
 
Offline
 Post subject: Re: Lizzie - the Leela Zero UI
Post #51 Posted: Sat May 26, 2018 5:20 am 
Oza
User avatar

Posts: 2508
Liked others: 1304
Was liked: 1128
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.

_________________
Patience, grasshopper.

Top
 Profile  
 
Offline
 Post subject: Re: Lizzie - the Leela Zero UI
Post #52 Posted: Sat May 26, 2018 6:03 am 
Gosei

Posts: 1590
Liked others: 886
Was liked: 528
Rank: AGA 3k Fox 3d
GD Posts: 61
KGS: dfan
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.


This post by dfan was liked by: daal
Top
 Profile  
 
Offline
 Post subject: Re: Lizzie - the Leela Zero UI
Post #53 Posted: Sat May 26, 2018 1:02 pm 
Dies with sente

Posts: 101
Liked others: 2
Was liked: 16
Rank: KGS 2 D
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)

Top
 Profile  
 
Offline
 Post subject: Re: Lizzie - the Leela Zero UI
Post #54 Posted: Sat May 26, 2018 2:23 pm 
Lives in gote

Posts: 426
Liked others: 186
Was liked: 191
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?

Top
 Profile  
 
Offline
 Post subject: Re: Lizzie - the Leela Zero UI
Post #55 Posted: Sat May 26, 2018 3:50 pm 
Dies with sente

Posts: 101
Liked others: 2
Was liked: 16
Rank: KGS 2 D
Java version 10.0.1 amd64

Top
 Profile  
 
Offline
 Post subject: Re: Lizzie - the Leela Zero UI
Post #56 Posted: Sat May 26, 2018 7:38 pm 
Lives in gote

Posts: 426
Liked others: 186
Was liked: 191
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.

Top
 Profile  
 
Offline
 Post subject: Re: Lizzie - the Leela Zero UI
Post #57 Posted: Sat May 26, 2018 9:21 pm 
Dies with sente

Posts: 101
Liked others: 2
Was liked: 16
Rank: KGS 2 D
Interesting. It seems to be working now with that special command.

Top
 Profile  
 
Offline
 Post subject: Re: Lizzie - the Leela Zero UI
Post #58 Posted: Fri Jun 01, 2018 1:57 am 
Judan

Posts: 6725
Location: Cambridge, UK
Liked others: 436
Was liked: 3719
Rank: UK 4 dan
KGS: Uberdude 4d
OGS: Uberdude 7d
Version 0.5 is released:

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


This post by Uberdude was liked by 3 people: Gomoto, Javaness2, Waylon
Top
 Profile  
 
Offline
 Post subject: Re: Lizzie - the Leela Zero UI
Post #59 Posted: Fri Jun 01, 2018 5:11 am 
Gosei

Posts: 1733
Location: Earth
Liked others: 621
Was liked: 310
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 12845 times ]
Top
 Profile  
 
Offline
 Post subject: Re: Lizzie - the Leela Zero UI
Post #60 Posted: Fri Jun 01, 2018 7:29 am 
Judan

Posts: 6725
Location: Cambridge, UK
Liked others: 436
Was liked: 3719
Rank: UK 4 dan
KGS: Uberdude 4d
OGS: Uberdude 7d
Great point Gomoto, I'm looking forward to finally receiving some Elvish wisdom!

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 69 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group