2
2
3
3
## Migrating from ML-Agents toolkit v0.5 to v0.6
4
4
5
- ### Important
5
+ ### Important Changes
6
6
7
7
* Brains are now Scriptable Objects instead of MonoBehaviors.
8
8
* You can no longer modify the type of a Brain. If you want to switch
11
11
__ Note:__ You can pass the same Brain to multiple agents in a scene by
12
12
leveraging Unity's prefab system or look for all the agents in a scene
13
13
using the search bar of the ` Hierarchy ` window with the word ` Agent ` .
14
- * To update a scene from v0.5 to v0.6, you must:
15
- * Remove the ` Brain ` GameObjects in the scene. (Delete all of the
16
- Brain GameObjects under Academy in the scene.)
17
- * Create new ` Brain ` Scriptable Objects using `Assets -> Create ->
18
- ML-Agents` for each type of the Brain you plan to use, and put
19
- the created files under a folder called Brains within your project.
20
- * Edit their ` Brain Parameters ` to be the same as the parameters used
21
- in the ` Brain ` GameObjects.
22
- * Agents have a ` Brain ` field in the Inspector, you need to drag the
23
- appropriate Brain ScriptableObject in it.
24
-
25
- __ Note:__ You will need to delete the previous TensorFlowSharp package
26
- and install the new one to do inference. To correctly delete the previous
27
- TensorFlowSharp package, Delete all of the files under ` ML-Agents/Plugins `
28
- folder except the files under ` ML-Agents/Plugins/ProtoBuffer ` .
29
-
14
+
30
15
* We replaced the ** Internal** and ** External** Brain with ** Learning Brain** .
31
16
When you need to train a model, you need to drag it into the ` Training Hub `
32
17
inside the ` Academy ` and check the ` Control ` checkbox.
@@ -42,6 +27,27 @@ using the search bar of the `Hierarchy` window with the word `Agent`.
42
27
[ Inference Engine] ( Inference-Engine.md ) .
43
28
* To use a ` .tf ` model, drag it inside the ` Model ` property of the ` Learning Brain `
44
29
30
+ #### Steps to Migrate
31
+
32
+ * To update a scene from v0.5 to v0.6, you must:
33
+ * Remove the ` Brain ` GameObjects in the scene. (Delete all of the
34
+ Brain GameObjects under Academy in the scene.)
35
+ * Create new ` Brain ` Scriptable Objects using `Assets -> Create ->
36
+ ML-Agents` for each type of the Brain you plan to use, and put
37
+ the created files under a folder called Brains within your project.
38
+ * Edit their ` Brain Parameters ` to be the same as the parameters used
39
+ in the ` Brain ` GameObjects.
40
+ * Agents have a ` Brain ` field in the Inspector, you need to drag the
41
+ appropriate Brain ScriptableObject in it.
42
+ * The Academy has a ` Broadcast Hub ` field in the inspector, which is
43
+ list of brains used in the scene. To train or control your Brain
44
+ from the ` mlagents-learn ` Python script, you need to drag the relevant
45
+ ` LearningBrain ` ScriptableObjects used in your scene into entries
46
+ into this list.
47
+ * You will need to delete the previous TensorFlowSharp package
48
+ and install the new one to do inference. To correctly delete the previous
49
+ TensorFlowSharp package, Delete all of the files under ` ML-Agents/Plugins `
50
+ folder except the files under ` ML-Agents/Plugins/ProtoBuffer ` .
45
51
46
52
47
53
## Migrating from ML-Agents toolkit v0.4 to v0.5
0 commit comments