Unity
From Robin
(Difference between revisions)
(→Using Unity ML-Agents) |
(→Using Unity ML-Agents) |
||
Line 16: | Line 16: | ||
== Using Unity ML-Agents == | == Using Unity ML-Agents == | ||
- | === Running ML-Agents through the Python API | + | === Running ML-Agents through the Python API === |
You can run a Unity ML-Agents example in (1) editor mode, or you can (2) build a light weight executable of the your simulation. When starting to connect Python to Unity, make sure to open Unity by calling ''env = UnityEnvironment(filename=None, side_channels=[])'' in your python script. | You can run a Unity ML-Agents example in (1) editor mode, or you can (2) build a light weight executable of the your simulation. When starting to connect Python to Unity, make sure to open Unity by calling ''env = UnityEnvironment(filename=None, side_channels=[])'' in your python script. |
Revision as of 14:37, 27 October 2022
Contents |
Installation
Download and install Unity
Installing Unity ML-Agents
In the Unity editor, go to window->package manager. Inside the package manager search for ML agents in the Unity Registry. Install the most recent ML Agents package. ML-Agents examples can be downloaded from the ML-Agents Github: website
Setting up the Python API
pip install mlagents
Using Unity ML-Agents
Running ML-Agents through the Python API
You can run a Unity ML-Agents example in (1) editor mode, or you can (2) build a light weight executable of the your simulation. When starting to connect Python to Unity, make sure to open Unity by calling env = UnityEnvironment(filename=None, side_channels=[]) in your python script.
Documentation
Unity ML-Agents Github Page Unity Documentation