3
3
## Migrating from ML-Agents toolkit v0.7 to v0.8
4
4
5
5
### Important Changes
6
- * We have split the Python packges into two seperate packages ` ml-agents ` and ` ml-agents-envs `
6
+ * We have split the Python packges into two seperate packages ` ml-agents ` and ` ml-agents-envs ` .
7
+ * ` --worker-id ` option of ` learn.py ` has been removed, use ` --base-port ` instead if you'd like to run multiple instances of ` learn.py ` .
7
8
8
9
#### Steps to Migrate
9
10
* If you are installing via PyPI, there is no change.
21
22
22
23
### Important Changes
23
24
24
- * Brains are now Scriptable Objects instead of MonoBehaviors.
25
+ * Brains are now Scriptable Objects instead of MonoBehaviors.
25
26
* You can no longer modify the type of a Brain. If you want to switch
26
27
between ` PlayerBrain ` and ` LearningBrain ` for multiple agents,
27
28
you will need to assign a new Brain to each agent separately.
28
- __ Note:__ You can pass the same Brain to multiple agents in a scene by
29
+ __ Note:__ You can pass the same Brain to multiple agents in a scene by
29
30
leveraging Unity's prefab system or look for all the agents in a scene
30
31
using the search bar of the ` Hierarchy ` window with the word ` Agent ` .
31
32
32
33
* We replaced the ** Internal** and ** External** Brain with ** Learning Brain** .
33
34
When you need to train a model, you need to drag it into the ` Broadcast Hub `
34
35
inside the ` Academy ` and check the ` Control ` checkbox.
35
- * We removed the ` Broadcast ` checkbox of the Brain, to use the broadcast
36
+ * We removed the ` Broadcast ` checkbox of the Brain, to use the broadcast
36
37
functionality, you need to drag the Brain into the ` Broadcast Hub ` .
37
- * When training multiple Brains at the same time, each model is now stored
38
+ * When training multiple Brains at the same time, each model is now stored
38
39
into a separate model file rather than in the same file under different
39
- graph scopes.
40
+ graph scopes.
40
41
* The ** Learning Brain** graph scope, placeholder names, output names and custom
41
42
placeholders can no longer be modified.
42
43
@@ -53,9 +54,9 @@ using the search bar of the `Hierarchy` window with the word `Agent`.
53
54
* Agents have a ` Brain ` field in the Inspector, you need to drag the
54
55
appropriate Brain ScriptableObject in it.
55
56
* The Academy has a ` Broadcast Hub ` field in the inspector, which is
56
- list of brains used in the scene. To train or control your Brain
57
- from the ` mlagents-learn ` Python script, you need to drag the relevant
58
- ` LearningBrain ` ScriptableObjects used in your scene into entries
57
+ list of brains used in the scene. To train or control your Brain
58
+ from the ` mlagents-learn ` Python script, you need to drag the relevant
59
+ ` LearningBrain ` ScriptableObjects used in your scene into entries
59
60
into this list.
60
61
61
62
## Migrating from ML-Agents toolkit v0.4 to v0.5
0 commit comments