Unity 机器学习代理工具包 (ML-Agents) 是一个开源项目,它使游戏和模拟能够作为训练智能代理的环境。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

2.3 KiB

Installation & Set-up

Install Unity 2017.1 or later (required)

Download link available here.

Clone the repository

Once installed, you will want to clone the Agents GitHub repository. References will be made throughout to unity-environment and python directories. Both are located at the root of the repository.

Installing Python API

In order to train an agent within the framework, you will need to install Python 2 or 3, and the dependencies described below.

Windows Users

If you are a Windows user who is new to Python/TensorFlow, follow this guide to set up your Python environment.

Requirements

  • Jupyter
  • Matplotlib
  • numpy
  • Pillow
  • Python (2 or 3; 64bit required)
  • docopt (Training)
  • TensorFlow (1.0+) (Training)

Docker-based Installation (experimental)

If you’d like to use Docker for ML Agents, please follow this guide.

Installing Dependencies

To install dependencies, go into the python sub-directory of the repositroy, and run (depending on your python version) from the command line:

pip install .

or

pip3 install .

If your Python environment doesn't include pip, see these instructions on installing it.

Once the requirements are successfully installed, the next step is to check out the Getting Started guide.

Installation Help

Using Jupyter Notebook

For a walkthrough of how to use Jupyter notebook, see here.

General Issues

If you run into issues while attempting to install and run Unity ML Agents, see here for a list of common issues and solutions.

If you have an issue that isn't covered here, feel free to contact us at ml-agents@unity3d.com. Alternatively, feel free to create an issue on the repository. Be sure to include relevant information on OS, Python version, and exact error message if possible.