new katago
This commit is contained in:
1 parent
bbb9648839
commit
c297daf508
10 files changed
+3
-3
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"engine": {
|
||||
"katago": "KataGo/katago-bs",
|
||||
"katago": "KataGo/katago",
|
||||
"model": "KataGo/models/b15-1.3.2.txt.gz",
|
||||
"config": "KataGo/analysis_config.cfg",
|
||||
"threads": 16,
|
||||
|
||||
+2
-2
@@ -239,10 +239,10 @@ class SGF:
|
||||
if not encoding:
|
||||
match = re.search(rb"CA\[(.*?)\]", bin_contents)
|
||||
if match:
|
||||
encoding = match[1].decode("ascii")
|
||||
encoding = match[1].decode("ascii", errors="ignore")
|
||||
else:
|
||||
encoding = "ISO-8859-1" # default
|
||||
decoded = bin_contents.decode(encoding=encoding)
|
||||
decoded = bin_contents.decode(encoding=encoding, errors="ignore")
|
||||
return cls.parse(decoded)
|
||||
|
||||
def __init__(self, contents):
|
||||
|
||||
Reference in new issue
Block a user