Unity

From Robin

(Difference between revisions)
Jump to: navigation, search
(Installation)
Line 12: Line 12:
''pip install mlagents''
''pip install mlagents''
 +
 +
 +
== Using Unity ML-Agents ==
 +
 +
* Running your Unity Executable
 +
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 ==
== Documentation ==
Line 18: Line 25:
[https://docs.unity3d.com/Manual/index.html Unity Documentation]
[https://docs.unity3d.com/Manual/index.html Unity Documentation]
-
== Using Unity ML-Agents ==
 
-
* Running your Unity Executable
 
-
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.
 
== Notes on deterministic behavior ==
== Notes on deterministic behavior ==
[[Unity-Timing-David | David's tips on getting deterministic timing]]
[[Unity-Timing-David | David's tips on getting deterministic timing]]

Revision as of 14:31, 27 October 2022

Contents

Installation

Download and install Unity

website

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 your Unity Executable

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


Notes on deterministic behavior

David's tips on getting deterministic timing

Personal tools
Front page