vs2015 编译 leela zero
来源:互联网 发布:ipad pro 10.5淘宝 编辑:程序博客网 时间:2024/05/23 14:05
AlphaGo 让人工智能火了,AlphaGo Zero 更是“火上浇油”。
Leela Zero几乎就是一个开源版的AlphaGo Zero。(Leela Zero是AlphaGo Zero论文Mastering the Game of Go without Human Knowledge的实现,据gcp在GitHub上介绍,这个实现非常忠于原文,目标就是搞一个开源的AlphaGo Zero。) 到底Leela Zero 能不能达到AlphaGo Zero的水平?就看训练了,内心还是很期待的。也许我们也能帮点忙: 下载 leela-zero-0.9-windows.zip 解压后,运行autogtp.exe ,在你电脑上的分布式训练就开始了。
AutoGTP v8
Using 1 thread(s).
Best network hash: 3ba928049be90a694f700996dee5db69b39da847e9a6ca9aacd8cfcd338a7
5a5
Required client version: 8 (OK)
curl.exe -s -O -J -w %{filename_effective} http://zero.sjeng.org/best-network
Curl filename: 3ba928049be90a694f700996dee5db69b39da847e9a6ca9aacd8cfcd338a75a5.
gz
Net filename: 3ba928049be90a694f700996dee5db69b39da847e9a6ca9aacd8cfcd338a75a5
./leelaz.exe -r 1 -g -t 1 -q -d -n -m 30 -w 3ba928049be90a694f700996dee5db69b39d
a847e9a6ca9aacd8cfcd338a75a5 -p 1600 –noponder
Engine has started.
Infinite thinking time set.
1 (B19) 2 (D18) 3 (D19) 4 (S6) 5 (Q9) 6 (B4) 7 (R15) 8 (D16) 9 (Q10) 10 (L11) 11
(M4) 12 (F4) 13 (G13) 14 (O4) 15 (R4) 16 (O18) 17 (L16) 18 (D12) 19 (L8) 20 (E8
) 21 (A15) 22 (P3)
Leela zero 下载地址:https://github.com/gcp/leela-zero/releases
今天为止Leela zero已经训练接近110万盘了,感觉水平提升很快。
想学习一下,看看源码不过瘾,想自己编译一下,调试调试,看看数据。
下载 Leela Zero 0.9 + AutoGTP v8 Source code (zip)
或是参照readme,用GIT 下载源码。
WINDOWS下用VS2105编译不是很难,但有些坑还是折腾了半天。
参照readme.md
引用块内容
Requirements
- GCC, Clang or MSVC, any C++14 compiler
- boost 1.58.x or later (libboost-all-dev on Debian/Ubuntu)
- BLAS Library: OpenBLAS (libopenblas-dev) or (optionally) Intel MKL
- zlib library (zlib1g & zlib1g-dev on Debian/Ubuntu)
- Standard OpenCL C headers (opencl-headers on Debian/Ubuntu, or at
https://github.com/KhronosGroup/OpenCL-Headers/tree/master/opencl22/) - OpenCL ICD loader (ocl-icd-libopencl1 on Debian/Ubuntu, or reference implementation at https://github.com/KhronosGroup/OpenCL-ICD-Loader)
- An OpenCL capable device, preferably a very, very fast GPU, with drivers
(OpenCL 1.2 support should be enough, even OpenCL 1.1 might work)
…
Example of compiling and running - Windows
# Clone github repogit clone https://github.com/gcp/leela-zerocd leela-zerocd msvcDouble-click the leela-zero2015.sln or leela-zero2017.sln correspondingto the Visual Studio version you have.# Build from Visual Studio 2015 or 2017# Download and extract <https://sjeng.org/zero/best_v1.txt.zip> to msvc/x64/Release# msvc/x64/Release/leela-zero --weights weights.txt
编译环境:
1.VS2015 安装 VS2015 时,需安装C++。
2.qt5
readme中提到的需求在加载leela-zero2015.sln时,会提示并自动下载安装包,反而是未提到的QT5,是需要事先安装的。因为这个原因折腾了很久,autogtp编译总是通不过:
1.未安装VS QT插件:
下载安装VS2015 QT: https://havendv.gallerycdn.vsassets.io/extensions/havendv/qtpackage/1.3.11/1512387015094/162291/23/QtPackage.vsix
2.QT 安装的与VS2015不匹配。原来安装的QT5.5 msvc2013_64
unresolved external symbol “_declspec(dllimport) public: class QString __cdecl QString::simplified(void)const & ” (__imp?simplified@QString@@QEGBA?AV1@XZ) referenced in function
下载安装:http://mirrors.ustc.edu.cn/qtproject/archive/qt/5.7/5.7.1/qt-opensource-windows-x86-msvc2015_64-5.7.1.exe
配置好QT5,编译通过。
运行时,会提示缺少一些DLL文件,从QT5的bin目录和其他目录拷贝到执行文件所在目录就行了。
- vs2015 编译 leela zero
- MaNGOS-Zero编译注意事项
- Mangos Zero 编译安装
- VS2015编译Libpng1618
- vs2015编译libjpeg9a
- vs2015编译zlib1.2.8
- 使用VS2015编译FreeGLUT
- VS2015编译opencv
- VS2015编译libjpeg库
- protobuf vs2015编译
- vs2015 编译obs-studio
- vs2015编译CEF
- VS2015编译lua源文件
- 编译wxSQLite3(vs2015)
- Win10+VS2015编译libcurl
- 用VS2015编译FFMPEG
- VS2015编译Live555
- VS2015编译FFMPEG
- KEYCODE
- Linux下.ko, .o, .so, .a, .la,.lo文件
- SlidingMenu属性详解
- StrictMode 使用
- 我的一些总结
- vs2015 编译 leela zero
- 利用Sqoop将MySQL海量测试数据导入HDFS和HBase
- StringUtils中 isNotEmpty 和isNotBlank的区别
- 用try...catch对异常代码进行处理
- Java.lang.IllegalStateException Activity has been destroyed
- jquery 无缝轮播
- Spring基础知识整理
- 从0到1优雅的实现PHP多进程管理
- Hadoop伪分布式集群搭建