Skip to content

Commit 6061c05

Browse files
authored
update to ML-A trainer code
1 parent 02798f3 commit 6061c05

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

Documentation~/README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,35 +19,37 @@ Please note that this package is available as a preview, so it is not ready for
1919

2020

2121

22-
### Install Python code
22+
### Install ML-Agents DOTS Python code
2323
* Clone this repository in a new folder
2424
* Checkout release-0.2.0
2525
```
2626
git clone --branch release-0.2.0 https://github.com/Unity-Technologies/ml-agents-dots.git
2727
```
28-
* Run the following command inside the repository:
28+
* Run the following command inside the cloned repository:
2929
```
3030
pip3 install -e ./ml-agents-envs~
3131
```
3232

33-
### Install trainer code
34-
* 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
35-
* Run these commands at its root.
33+
### Install ML-Agents Trainer code
34+
* 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).
35+
* Checkout the ml-agents repository on version 0.15.1
36+
```
37+
git clone --branch release-0.15.1 https://github.com/Unity-Technologies/ml-agents
38+
```
39+
* Run the following command inside the cloned repository:
3640
```
3741
pip3 install -e ./ml-agents-envs
3842
pip3 install -e ./ml-agents
3943
```
40-
* Modify `./ml-agents/mlagents/trainers/learn.py` :
41-
Replace line 24:
44+
* Modify `./ml-agents/mlagents/trainers/learn.py` by replacing line 24:
4245
```python
4346
from mlagents_envs.environment import UnityEnvironment
4447
```
4548
with
4649
```python
4750
from mlagents_dots_envs.unity_environment import UnityEnvironment
4851
```
49-
* Similarly, modify `./ml-agents/mlagents/trainers/subprocess_env_manager.py` :
50-
Replace line 4:
52+
* Similarly, modify `./ml-agents/mlagents/trainers/subprocess_env_manager.py` by replacing line 4:
5153
```python
5254
from mlagents_envs.environment import UnityEnvironment
5355
```

0 commit comments

Comments
 (0)