Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
abd57c2
Updating version number (#3366)
anupambhatnagar Feb 6, 2020
d80544f
migration guide (#3375)
Feb 6, 2020
d9e3804
Reduce num steps for walljump (#3377)
Feb 7, 2020
8dbc85d
Fixing the Docs on On Demand Decision (#3378)
vincentpierre Feb 7, 2020
1db1488
adding init to ghost trainer directory (#3381)
andrewcoh Feb 7, 2020
d70fb9d
Clarify curriculum and behavior name (#3380)
Feb 7, 2020
489f7e6
Fix typo in Design Agents docs (#3384)
AcelisWeaven Feb 7, 2020
c54b7da
Update the curiosity mention in Hallway (#3386)
Feb 7, 2020
3b956cb
Release 0.14.0 more doc fixes (#3388)
Feb 7, 2020
7757d06
csharp cleanup (#3392)
Feb 7, 2020
566770f
Checking if the Past action is null before feeding into inference (#3…
vincentpierre Feb 10, 2020
48b2dec
Fix off-by-one error on AgentReset and maxSteps (#3394)
vincentpierre Feb 10, 2020
68792a1
fix BehaviorParametersEditor for m_UseChildSensors (#3404)
Feb 10, 2020
3c940e8
Set logging level to INFO, was overridden by newer TF (#3358)
Feb 11, 2020
348d1d6
Change AgentProcessor logic to fix memory leak (#3383)
Feb 11, 2020
cca1252
add DecisionRequester to FoodCollector prefabs (#3414)
Feb 11, 2020
8bb4953
set Agent.maxSteps for FoodCollector prefabs (#3416)
Feb 12, 2020
6cc32e7
landing page links to latest_release docs (#3415)
Feb 12, 2020
7abe4d4
Adding new food collector model (#3423)
anupambhatnagar Feb 12, 2020
a4acb65
Fixing Gym for single and multi-agent following reset changes on C# (…
vincentpierre Feb 12, 2020
ccd6144
adding new models (#3413)
anupambhatnagar Feb 13, 2020
d230591
Fix clear update buffer when trainer stops training, add test (#3422)
Feb 13, 2020
ce3eaf6
Moving the max step logic
vincentpierre Feb 13, 2020
5d9c73f
second commit : Moving the step counting at the begining. I had to ed…
vincentpierre Feb 14, 2020
7338722
addressing comments
vincentpierre Feb 14, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified Project/Assets/ML-Agents/Examples/3DBall/TFModels/3DBall.nn
Binary file not shown.
Binary file modified Project/Assets/ML-Agents/Examples/3DBall/TFModels/3DBallHard.nn
Binary file not shown.
Binary file modified Project/Assets/ML-Agents/Examples/Basic/TFModels/Basic.nn
Binary file not shown.
Binary file modified Project/Assets/ML-Agents/Examples/Bouncer/TFModels/Bouncer.nn
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2187,7 +2187,7 @@ MonoBehaviour:
m_BehaviorType: 0
m_BehaviorName: FoodCollector
m_TeamID: 0
m_useChildSensors: 1
m_UseChildSensors: 1
--- !u!114 &114176228333253036
MonoBehaviour:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -2436,6 +2436,7 @@ GameObject:
- component: {fileID: 114522573150607728}
- component: {fileID: 114711827726849508}
- component: {fileID: 114443152683847924}
- component: {fileID: 259154752087955944}
m_Layer: 0
m_Name: Agent (1)
m_TagString: agent
Expand Down Expand Up @@ -2511,7 +2512,7 @@ MonoBehaviour:
m_BehaviorType: 0
m_BehaviorName: FoodCollector
m_TeamID: 0
m_useChildSensors: 1
m_UseChildSensors: 1
--- !u!114 &114711827726849508
MonoBehaviour:
m_ObjectHideFlags: 0
Expand All @@ -2524,7 +2525,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66e6845309d241c78a6d77ee2567928, type: 3}
m_Name:
m_EditorClassIdentifier:
maxStep: 0
maxStep: 5000
area: {fileID: 1819751139121548}
turnSpeed: 300
moveSpeed: 2
Expand Down Expand Up @@ -2567,6 +2568,21 @@ MonoBehaviour:
useWorldPositions: 1
startVerticalOffset: 0
endVerticalOffset: 0
--- !u!114 &259154752087955944
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1495617568563208}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3a5c9d521e5ef4759a8246a07d52221e, type: 3}
m_Name:
m_EditorClassIdentifier:
DecisionPeriod: 5
RepeatAction: 1
offsetStep: 0
--- !u!1 &1528397385587768
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -2749,6 +2765,7 @@ GameObject:
- component: {fileID: 114980787530065684}
- component: {fileID: 114542632553128056}
- component: {fileID: 114986980423924774}
- component: {fileID: 5519119940433428255}
m_Layer: 0
m_Name: Agent (2)
m_TagString: agent
Expand Down Expand Up @@ -2824,7 +2841,7 @@ MonoBehaviour:
m_BehaviorType: 0
m_BehaviorName: FoodCollector
m_TeamID: 0
m_useChildSensors: 1
m_UseChildSensors: 1
--- !u!114 &114542632553128056
MonoBehaviour:
m_ObjectHideFlags: 0
Expand All @@ -2837,7 +2854,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66e6845309d241c78a6d77ee2567928, type: 3}
m_Name:
m_EditorClassIdentifier:
maxStep: 0
maxStep: 5000
area: {fileID: 1819751139121548}
turnSpeed: 300
moveSpeed: 2
Expand Down Expand Up @@ -2880,6 +2897,21 @@ MonoBehaviour:
useWorldPositions: 1
startVerticalOffset: 0
endVerticalOffset: 0
--- !u!114 &5519119940433428255
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1601500200010266}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3a5c9d521e5ef4759a8246a07d52221e, type: 3}
m_Name:
m_EditorClassIdentifier:
DecisionPeriod: 5
RepeatAction: 1
offsetStep: 0
--- !u!1 &1617924810425504
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -3325,6 +3357,7 @@ GameObject:
- component: {fileID: 114878550018296316}
- component: {fileID: 114189751434580810}
- component: {fileID: 114644889237473510}
- component: {fileID: 5884750436653390196}
m_Layer: 0
m_Name: Agent (4)
m_TagString: agent
Expand Down Expand Up @@ -3400,7 +3433,7 @@ MonoBehaviour:
m_BehaviorType: 0
m_BehaviorName: FoodCollector
m_TeamID: 0
m_useChildSensors: 1
m_UseChildSensors: 1
--- !u!114 &114189751434580810
MonoBehaviour:
m_ObjectHideFlags: 0
Expand All @@ -3413,7 +3446,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66e6845309d241c78a6d77ee2567928, type: 3}
m_Name:
m_EditorClassIdentifier:
maxStep: 0
maxStep: 5000
area: {fileID: 1819751139121548}
turnSpeed: 300
moveSpeed: 2
Expand Down Expand Up @@ -3456,6 +3489,21 @@ MonoBehaviour:
useWorldPositions: 1
startVerticalOffset: 0
endVerticalOffset: 0
--- !u!114 &5884750436653390196
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1672905243433088}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3a5c9d521e5ef4759a8246a07d52221e, type: 3}
m_Name:
m_EditorClassIdentifier:
DecisionPeriod: 5
RepeatAction: 1
offsetStep: 0
--- !u!1 &1688105343773098
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -3624,6 +3672,7 @@ GameObject:
- component: {fileID: 114035338027591536}
- component: {fileID: 114235147148547996}
- component: {fileID: 114276061479012222}
- component: {fileID: 4768752321433982785}
m_Layer: 0
m_Name: Agent (3)
m_TagString: agent
Expand Down Expand Up @@ -3699,7 +3748,7 @@ MonoBehaviour:
m_BehaviorType: 0
m_BehaviorName: FoodCollector
m_TeamID: 0
m_useChildSensors: 1
m_UseChildSensors: 1
--- !u!114 &114235147148547996
MonoBehaviour:
m_ObjectHideFlags: 0
Expand All @@ -3712,7 +3761,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66e6845309d241c78a6d77ee2567928, type: 3}
m_Name:
m_EditorClassIdentifier:
maxStep: 0
maxStep: 5000
area: {fileID: 1819751139121548}
turnSpeed: 300
moveSpeed: 2
Expand Down Expand Up @@ -3755,6 +3804,21 @@ MonoBehaviour:
useWorldPositions: 1
startVerticalOffset: 0
endVerticalOffset: 0
--- !u!114 &4768752321433982785
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1706274796045088}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3a5c9d521e5ef4759a8246a07d52221e, type: 3}
m_Name:
m_EditorClassIdentifier:
DecisionPeriod: 5
RepeatAction: 1
offsetStep: 0
--- !u!1 &1729825611722018
GameObject:
m_ObjectHideFlags: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@ GameObject:
- component: {fileID: 114724832030926412}
- component: {fileID: 114380897261200276}
- component: {fileID: 114326390494230518}
- component: {fileID: 4034342608499629224}
m_Layer: 0
m_Name: Agent (3)
m_TagString: agent
Expand Down Expand Up @@ -633,7 +634,7 @@ MonoBehaviour:
m_BehaviorType: 0
m_BehaviorName: VisualFoodCollector
m_TeamID: 0
m_useChildSensors: 1
m_UseChildSensors: 1
--- !u!114 &114380897261200276
MonoBehaviour:
m_ObjectHideFlags: 0
Expand All @@ -646,7 +647,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66e6845309d241c78a6d77ee2567928, type: 3}
m_Name:
m_EditorClassIdentifier:
maxStep: 0
maxStep: 5000
area: {fileID: 1145096862361766}
turnSpeed: 300
moveSpeed: 2
Expand Down Expand Up @@ -675,6 +676,21 @@ MonoBehaviour:
height: 84
grayscale: 0
compression: 1
--- !u!114 &4034342608499629224
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1165679820726490}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3a5c9d521e5ef4759a8246a07d52221e, type: 3}
m_Name:
m_EditorClassIdentifier:
DecisionPeriod: 5
RepeatAction: 1
offsetStep: 0
--- !u!1 &1179319070824364
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -1120,6 +1136,7 @@ GameObject:
- component: {fileID: 114942033465821694}
- component: {fileID: 114869844339180154}
- component: {fileID: 114429222608880102}
- component: {fileID: 7234640249101665162}
m_Layer: 0
m_Name: Agent (1)
m_TagString: agent
Expand Down Expand Up @@ -1195,7 +1212,7 @@ MonoBehaviour:
m_BehaviorType: 0
m_BehaviorName: VisualFoodCollector
m_TeamID: 0
m_useChildSensors: 1
m_UseChildSensors: 1
--- !u!114 &114869844339180154
MonoBehaviour:
m_ObjectHideFlags: 0
Expand All @@ -1208,7 +1225,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66e6845309d241c78a6d77ee2567928, type: 3}
m_Name:
m_EditorClassIdentifier:
maxStep: 0
maxStep: 5000
area: {fileID: 1145096862361766}
turnSpeed: 300
moveSpeed: 2
Expand Down Expand Up @@ -1237,6 +1254,21 @@ MonoBehaviour:
height: 84
grayscale: 0
compression: 1
--- !u!114 &7234640249101665162
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1317136368302180}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3a5c9d521e5ef4759a8246a07d52221e, type: 3}
m_Name:
m_EditorClassIdentifier:
DecisionPeriod: 5
RepeatAction: 1
offsetStep: 0
--- !u!1 &1353209702154624
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -1572,7 +1604,7 @@ MonoBehaviour:
m_BehaviorType: 0
m_BehaviorName: VisualFoodCollector
m_TeamID: 0
m_useChildSensors: 1
m_UseChildSensors: 1
--- !u!114 &114484596947519388
MonoBehaviour:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -3308,6 +3340,7 @@ GameObject:
- component: {fileID: 114799611184247278}
- component: {fileID: 114729119221978826}
- component: {fileID: 114322691115031348}
- component: {fileID: 5903164052970896384}
m_Layer: 0
m_Name: Agent (2)
m_TagString: agent
Expand Down Expand Up @@ -3383,7 +3416,7 @@ MonoBehaviour:
m_BehaviorType: 0
m_BehaviorName: VisualFoodCollector
m_TeamID: 0
m_useChildSensors: 1
m_UseChildSensors: 1
--- !u!114 &114729119221978826
MonoBehaviour:
m_ObjectHideFlags: 0
Expand All @@ -3396,7 +3429,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66e6845309d241c78a6d77ee2567928, type: 3}
m_Name:
m_EditorClassIdentifier:
maxStep: 0
maxStep: 5000
area: {fileID: 1145096862361766}
turnSpeed: 300
moveSpeed: 2
Expand Down Expand Up @@ -3425,6 +3458,21 @@ MonoBehaviour:
height: 84
grayscale: 0
compression: 1
--- !u!114 &5903164052970896384
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1939112378710628}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3a5c9d521e5ef4759a8246a07d52221e, type: 3}
m_Name:
m_EditorClassIdentifier:
DecisionPeriod: 5
RepeatAction: 1
offsetStep: 0
--- !u!1 &1971119195936814
GameObject:
m_ObjectHideFlags: 0
Expand Down
Binary file not shown.
Binary file not shown.
Binary file modified Project/Assets/ML-Agents/Examples/Hallway/TFModels/Hallway.nn
Binary file not shown.
Binary file not shown.
Binary file modified Project/Assets/ML-Agents/Examples/Pyramids/TFModels/Pyramids.nn
Binary file not shown.
Binary file modified Project/Assets/ML-Agents/Examples/Reacher/TFModels/Reacher.nn
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void OverrideModel()
var nnModel = GetModelForBehaviorName(bp.behaviorName);
Debug.Log($"Overriding behavior {bp.behaviorName} for agent with model {nnModel?.name}");
// This might give a null model; that's better because we'll fall back to the Heuristic
m_Agent.GiveModel($"Override_{bp.behaviorName}", nnModel, InferenceDevice.CPU);
m_Agent.GiveModel($"Override_{bp.behaviorName}", nnModel);

}
}
Expand Down
10 changes: 3 additions & 7 deletions Project/Assets/ML-Agents/Examples/Soccer/Scripts/AgentSoccer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,14 @@ public enum Team
[HideInInspector]
public Rigidbody agentRb;
SoccerSettings m_SoccerSettings;
Renderer m_AgentRenderer;
BehaviorParameters m_BP;
BehaviorParameters m_BehaviorParameters;
Vector3 m_Transform;

public override void InitializeAgent()
{
base.InitializeAgent();
m_BP = gameObject.GetComponent<BehaviorParameters>();
if (m_BP.m_TeamID == (int)Team.Blue)
m_BehaviorParameters = gameObject.GetComponent<BehaviorParameters>();
if (m_BehaviorParameters.m_TeamID == (int)Team.Blue)
{
team = Team.Blue;
m_Transform = new Vector3(transform.position.x - 4f, .5f, transform.position.z);
Expand All @@ -44,7 +43,6 @@ public override void InitializeAgent()
team = Team.Purple;
m_Transform = new Vector3(transform.position.x + 4f, .5f, transform.position.z);
}
m_AgentRenderer = GetComponentInChildren<Renderer>();
m_SoccerSettings = FindObjectOfType<SoccerSettings>();
agentRb = GetComponent<Rigidbody>();
agentRb.maxAngularVelocity = 500;
Expand All @@ -65,8 +63,6 @@ public void MoveAgent(float[] act)
var dirToGo = Vector3.zero;
var rotateDir = Vector3.zero;

var action = Mathf.FloorToInt(act[0]);

m_KickPower = 0f;

var forwardAxis = (int)act[0];
Expand Down
Loading