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

2.1 KiB

Installation & Set-up

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 an experimental Docker set-up.

Install Unity 2017.1 or Later

Download and install Unity.

Clone the ml-agents Repository

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

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

The unity-environment directory in this repository contains the Unity Assets to add to your projects. The python directory contains the training code. Both directories are located at the root of the repository.

Install Python

In order to use ML-Agents, you need Python (2 or 3; 64 bit required) along with the dependencies listed in the requirements file. Some of the primary dependencies include:

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

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

To install dependencies, go into the python subdirectory of the repository, and run (depending on your Python version) from the command line:

pip install .

or

pip3 install .

Docker-based Installation [Experimental]

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

Help

If you run into any problems installing ML-Agents, submit an issue and make sure to cite relevant information on OS, Python version, and exact error message (whenever possible).