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

2.9 KiB

Installation

To install and use ML-Agents, you need install Unity, clone this repository and install Python with additional dependencies. Each of the subsections below overviews each step, in addition to a Docker set-up.

Install Unity 2017.1 or Later

Download and install Unity. If you would like to use our Docker set-up (introduced later), make sure to select the Linux Build Support component when installing Unity.

Linux Build Support

Clone the Ml-Agents Repository

Once installed, you will want to clone the ML-Agents Toolkit GitHub repository.

git clone https://github.com/Unity-Technologies/ml-agents.git

The MLAgentsSDK directory in this repository contains the Unity Assets to add to your projects. The python directory contains python packages which provide trainers, a python API to interface with Unity, and a package to interface with OpenAI Gym.

Install Python (with Dependencies)

In order to use ML-Agents toolkit, you need Python 3.6 along with the dependencies listed in the requirements file. Some of the primary dependencies include:

NOTES

  • We do not currently support Python 3.7 or Python 3.5.
  • If you are using Anaconda and are having trouble with TensorFlow, please see the following note on how to install TensorFlow in an Anaconda environment.

Windows Users

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

Mac and Unix Users

Download and install Python 3 if you do not already have it.

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

To install dependencies, enter the ml-agents/ directory and run from the command line:

pip install .

Docker-based Installation

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

Next Steps

The Basic Guide page contains several short tutorials on setting up the ML-Agents toolkit within Unity, running a pre-trained model, in addition to building and training environments.

Help

If you run into any problems regarding ML-Agents, refer to our FAQ and our Limitations pages. If you can't find anything please submit an issue and make sure to cite relevant information on OS, Python version, and exact error message (whenever possible).