您的位置:首页 > 产品设计 > 产品经理

deepmind_lab相关的解答

2017-11-15 17:56 204 查看


deepmind_lab相关的解答

如何在windows下面安装编译deepmind_lab这个东西,

下面是官网的说明,如何在linux下面编译和安装deepmind_lab


How to build DeepMind Lab

DeepMind Lab uses Bazel as its build system. Its main 
BUILD
 file
defines a number of build targets and their dependencies. The build rules should work out of the box on Debian (Jessie or newer) and Ubuntu (version 14.04 or newer), provided the required packages are installed. DeepMind
Lab also builds on other Linux systems, but some changes to the build files might be required, see below.

DeepMind Lab is written in C99 and C++11, and you will need a sufficiently modern compiler. GCC 4.8 should suffice.


Step-by-step
instructions for Debian or Ubuntu

Tested on Debian 8.6 (Jessie) and Ubuntu 14.04 (Trusty) and newer.

Install Bazel by adding a custom APT repository, as described on
the Bazel homepage or using an installer. This should also install GCC and zip.

Install DeepMind Lab's dependencies:

$ sudo apt-get install lua5.1 liblua5.1-0-dev libffi-dev gettext \
freeglut3-dev libsdl2-dev libosmesa6-dev python-dev python-numpy realpath


Clone or download DeepMind Lab.

Build DeepMind Lab and run a random agent:

$ cd lab
# Build the Python interface to DeepMind Lab with OpenGL
lab$ bazel build :deepmind_lab.so --define headless=glx
# Build and run the tests for it
lab$ bazel run :python_module_test --define headless=glx
# Rebuild the Python interface in non-headless mode and run a random agent
lab$ bazel run :random_agent --define headless=false


The Bazel target 
:deepmind_lab.so
 builds the Python module that interfaces DeepMind Lab.
It can be build in headless hardware rendering mode (
--define headless=glx
), headless software rendering mode
(
--define headless=osmesa
) or non-headless mode (
--define
headless=false
).

The random agent target 
:random_agent
 has a number of optional command line arguments. Run

lab$ bazel run :random_agent -- --help


to see those.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  deepmind lab