You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* In the Package Manager window, select DOTS ML-Agents and import the Samples you need.
21
18
19
+
### Install Python code
20
+
* Clone this repository in a new folder
21
+
* Checkout release-0.2.0
22
+
* run the following command inside the repository:
23
+
```
24
+
pip3 install -e ./ml-agents-envs~
25
+
```
26
+
27
+
### Install trainer code
28
+
* ML-Agents on DOTS is compatible with version 0.15.1 of the [ml-agents packages](https://github.com/Unity-Technologies/ml-agents/blob/0.15.1). Checkout the ml-agents repository on version 0.15.1
from mlagents_envs.environment import UnityEnvironment
47
+
```
48
+
with
49
+
```python
50
+
from mlagents_dots_envs.unity_environment import UnityEnvironment
51
+
```
52
+
53
+
54
+
## Train a sample
55
+
* In Unity, open the 3DBall scene in the Samples
56
+
* From the ml-agents repository root, call
57
+
```
58
+
mlagents-learn --train config/trainer_config.yaml
59
+
```
60
+
and press play in the Editor.
61
+
If the installation was successful, you should see in the `Ball_DOTS` training results.
62
+
63
+
22
64
## API
23
65
One approach to designing ml-agents to be compativle with DOTS would be to use typical API used for example in [Unity.Physics](https://github.com/Unity-Technologies/Unity.Physics) where a "MLAgents World" holds data, processes it and the data can then be retrieved.
24
66
The user would access the `MLAgentsWorld` in the main thread :
0 commit comments