浏览代码
Merge commit 'f9c05a61d574305497789b5997f1ae3ea1b1ad3b' into develop-splitpolicyoptimizer
/develop/nopreviousactions
Merge commit 'f9c05a61d574305497789b5997f1ae3ea1b1ad3b' into develop-splitpolicyoptimizer
/develop/nopreviousactions
Ervin Teng
5 年前
当前提交
d4ee7346
共有 127 个文件被更改,包括 1003 次插入 和 2394 次删除
-
8.github/ISSUE_TEMPLATE/config.yml
-
4.gitignore
-
3.yamato/standalone-build-test.yml
-
1Project/.gitignore
-
13Project/Assets/ML-Agents/Examples/3DBall/Prefabs/3DBall.prefab
-
4Project/Assets/ML-Agents/Examples/3DBall/Scenes/3DBall.unity
-
2Project/Assets/ML-Agents/Examples/3DBall/Scripts/Ball3DAgent.cs
-
2Project/Assets/ML-Agents/Examples/3DBall/Scripts/Ball3DHardAgent.cs
-
1Project/Assets/ML-Agents/Examples/3DBall/TFModels/3DBall.nn.meta
-
1Project/Assets/ML-Agents/Examples/3DBall/TFModels/3DBallHard.nn.meta
-
4Project/Assets/ML-Agents/Examples/Basic/Scripts/BasicAgent.cs
-
1Project/Assets/ML-Agents/Examples/Basic/TFModels/Basic.nn.meta
-
1Project/Assets/ML-Agents/Examples/Bouncer/TFModels/Bouncer.nn.meta
-
1Project/Assets/ML-Agents/Examples/Crawler/Scripts/CrawlerAgent.cs
-
1Project/Assets/ML-Agents/Examples/Crawler/TFModels/CrawlerDynamic.nn.meta
-
1Project/Assets/ML-Agents/Examples/Crawler/TFModels/CrawlerStatic.nn.meta
-
2Project/Assets/ML-Agents/Examples/FoodCollector/Scripts/FoodCollectorArea.cs
-
1Project/Assets/ML-Agents/Examples/FoodCollector/TFModels/FoodCollector.nn.meta
-
6Project/Assets/ML-Agents/Examples/GridWorld/Scripts/GridAgent.cs
-
1Project/Assets/ML-Agents/Examples/GridWorld/TFModels/GridWorld.nn.meta
-
1Project/Assets/ML-Agents/Examples/Hallway/TFModels/Hallway.nn.meta
-
1Project/Assets/ML-Agents/Examples/PushBlock/TFModels/PushBlock.nn.meta
-
2Project/Assets/ML-Agents/Examples/Pyramids/Scripts/PyramidArea.cs
-
1Project/Assets/ML-Agents/Examples/Pyramids/TFModels/Pyramids.nn.meta
-
1Project/Assets/ML-Agents/Examples/Reacher/TFModels/Reacher.nn.meta
-
2Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/AdjustTrainingTimescale.cs
-
2Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/Area.cs
-
2Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/CameraFollow.cs
-
2Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/FlyCamera.cs
-
3Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/GroundContact.cs
-
3Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/JointDriveController.cs
-
99Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/ProjectSettingsOverrides.cs
-
2Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/TargetContact.cs
-
884Project/Assets/ML-Agents/Examples/Soccer/Prefabs/SoccerFieldTwos.prefab
-
171Project/Assets/ML-Agents/Examples/Soccer/Scripts/AgentSoccer.cs
-
6Project/Assets/ML-Agents/Examples/Soccer/Scripts/SoccerBallController.cs
-
79Project/Assets/ML-Agents/Examples/Soccer/Scripts/SoccerFieldArea.cs
-
6Project/Assets/ML-Agents/Examples/Soccer/Scripts/SoccerSettings.cs
-
12Project/Assets/ML-Agents/Examples/Tennis/Scenes/Tennis.unity
-
1Project/Assets/ML-Agents/Examples/Tennis/TFModels/Tennis.nn.meta
-
1Project/Assets/ML-Agents/Examples/Walker/Scripts/WalkerAgent.cs
-
1Project/Assets/ML-Agents/Examples/Walker/TFModels/Walker.nn.meta
-
2Project/Assets/ML-Agents/Examples/WallJump/Scripts/WallJumpAgent.cs
-
1Project/Assets/ML-Agents/Examples/WallJump/TFModels/BigWallJump.nn.meta
-
1Project/Assets/ML-Agents/Examples/WallJump/TFModels/SmallWallJump.nn.meta
-
10Project/ProjectSettings/TagManager.asset
-
2README.md
-
2com.unity.ml-agents/Editor/BehaviorParametersEditor.cs
-
5com.unity.ml-agents/Editor/Unity.ML-Agents.Editor.asmdef
-
24com.unity.ml-agents/Runtime/Academy.cs
-
4com.unity.ml-agents/Runtime/ActionMasker.cs
-
75com.unity.ml-agents/Runtime/Agent.cs
-
2com.unity.ml-agents/Runtime/Constants.cs
-
1com.unity.ml-agents/Runtime/DecisionRequester.cs
-
2com.unity.ml-agents/Runtime/DemonstrationRecorder.cs
-
2com.unity.ml-agents/Runtime/EpisodeIdCounter.cs
-
24com.unity.ml-agents/Runtime/Grpc/GrpcExtensions.cs
-
93com.unity.ml-agents/Runtime/Grpc/RpcCommunicator.cs
-
21com.unity.ml-agents/Runtime/ICommunicator.cs
-
66com.unity.ml-agents/Runtime/InferenceBrain/ApplierImpl.cs
-
2com.unity.ml-agents/Runtime/InferenceBrain/BarracudaModelParamLoader.cs
-
20com.unity.ml-agents/Runtime/InferenceBrain/GeneratorImpl.cs
-
52com.unity.ml-agents/Runtime/InferenceBrain/ModelRunner.cs
-
15com.unity.ml-agents/Runtime/InferenceBrain/TensorApplier.cs
-
2com.unity.ml-agents/Runtime/InferenceBrain/TensorGenerator.cs
-
2com.unity.ml-agents/Runtime/InferenceBrain/TensorNames.cs
-
6com.unity.ml-agents/Runtime/InferenceBrain/TensorProxy.cs
-
12com.unity.ml-agents/Runtime/Policy/BarracudaPolicy.cs
-
19com.unity.ml-agents/Runtime/Policy/BehaviorParameters.cs
-
16com.unity.ml-agents/Runtime/Policy/HeuristicPolicy.cs
-
6com.unity.ml-agents/Runtime/Policy/IPolicy.cs
-
27com.unity.ml-agents/Runtime/Policy/RemotePolicy.cs
-
2com.unity.ml-agents/Runtime/Sensor/Observation.cs
-
40com.unity.ml-agents/Runtime/Sensor/RayPerceptionSensor.cs
-
4com.unity.ml-agents/Runtime/Sensor/RayPerceptionSensorComponentBase.cs
-
2com.unity.ml-agents/Runtime/Sensor/SensorShapeValidator.cs
-
2com.unity.ml-agents/Runtime/Sensor/StackingSensor.cs
-
71com.unity.ml-agents/Runtime/Timer.cs
-
9com.unity.ml-agents/Runtime/Unity.ML-Agents.asmdef
-
2com.unity.ml-agents/Runtime/Utilities.cs
-
45com.unity.ml-agents/Tests/Editor/EditModeTestInternalBrainTensorApplier.cs
-
4com.unity.ml-agents/Tests/Editor/EditModeTestInternalBrainTensorGenerator.cs
-
50com.unity.ml-agents/Tests/Editor/MLAgentsEditModeTest.cs
-
84com.unity.ml-agents/Tests/Editor/Sensor/RayPerceptionSensorTests.cs
-
8com.unity.ml-agents/Tests/Editor/Unity.ML-Agents.Editor.Tests.asmdef
-
4com.unity.ml-agents/package.json
-
12config/curricula/wall_jump.yaml
-
2config/sac_trainer_config.yaml
-
48config/trainer_config.yaml
-
30docs/Installation.md
-
6docs/Learning-Environment-Create-New.md
-
2docs/Learning-Environment-Design-Agents.md
-
54docs/Learning-Environment-Examples.md
-
40docs/Migrating.md
-
12docs/Training-Curriculum-Learning.md
-
2docs/Training-Generalized-Reinforcement-Learning-Agents.md
-
999docs/images/tennis.png
-
2gym-unity/gym_unity/__init__.py
-
2ml-agents-envs/mlagents_envs/__init__.py
-
3ml-agents-envs/mlagents_envs/environment.py
|
|||
blank_issues_enabled: false |
|||
contact_links: |
|||
- name: Discussion / General Questions |
|||
url: https://forum.unity.com/forums/ml-agents.453/ |
|||
about: Discussion about ML-Agents, RL algorithms, or game integrations. |
|||
- name: Installation / Setup |
|||
url: https://forum.unity.com/forums/ml-agents.453/ |
|||
about: Questions about python installation, initial connection between Unity and training, etc. |
|||
about: Please ask Installation / Setup and Discussion / General Questions in the Unity Forum. |
|||
about: Please ask other questions in the ML-Agents Unity Forum. |
|
|||
using UnityEngine; |
|||
using MLAgents; |
|||
|
|||
public class ProjectSettingsOverrides : MonoBehaviour |
|||
namespace MLAgentsExamples |
|||
// Original values
|
|||
float m_OriginalMonitorVerticalOffset; |
|||
Vector3 m_OriginalGravity; |
|||
float m_OriginalFixedDeltaTime; |
|||
float m_OriginalMaximumDeltaTime; |
|||
int m_OriginalSolverIterations; |
|||
int m_OriginalSolverVelocityIterations; |
|||
public class ProjectSettingsOverrides : MonoBehaviour |
|||
{ |
|||
// Original values
|
|||
float m_OriginalMonitorVerticalOffset; |
|||
Vector3 m_OriginalGravity; |
|||
float m_OriginalFixedDeltaTime; |
|||
float m_OriginalMaximumDeltaTime; |
|||
int m_OriginalSolverIterations; |
|||
int m_OriginalSolverVelocityIterations; |
|||
[Tooltip("Increase or decrease the scene gravity. Use ~3x to make things less floaty")] |
|||
public float gravityMultiplier = 1.0f; |
|||
[Tooltip("Increase or decrease the scene gravity. Use ~3x to make things less floaty")] |
|||
public float gravityMultiplier = 1.0f; |
|||
[Header("Display Settings")] |
|||
public float monitorVerticalOffset; |
|||
[Header("Display Settings")] |
|||
public float monitorVerticalOffset; |
|||
[Header("Advanced physics settings")] |
|||
[Tooltip("The interval in seconds at which physics and other fixed frame rate updates (like MonoBehaviour's FixedUpdate) are performed.")] |
|||
public float fixedDeltaTime = .02f; |
|||
[Tooltip("The maximum time a frame can take. Physics and other fixed frame rate updates (like MonoBehaviour's FixedUpdate) will be performed only for this duration of time per frame.")] |
|||
public float maximumDeltaTime = 1.0f / 3.0f; |
|||
[Tooltip("Determines how accurately Rigidbody joints and collision contacts are resolved. (default 6). Must be positive.")] |
|||
public int solverIterations = 6; |
|||
[Tooltip("Affects how accurately the Rigidbody joints and collision contacts are resolved. (default 1). Must be positive.")] |
|||
public int solverVelocityIterations = 1; |
|||
[Header("Advanced physics settings")] |
|||
[Tooltip("The interval in seconds at which physics and other fixed frame rate updates (like MonoBehaviour's FixedUpdate) are performed.")] |
|||
public float fixedDeltaTime = .02f; |
|||
[Tooltip("The maximum time a frame can take. Physics and other fixed frame rate updates (like MonoBehaviour's FixedUpdate) will be performed only for this duration of time per frame.")] |
|||
public float maximumDeltaTime = 1.0f / 3.0f; |
|||
[Tooltip("Determines how accurately Rigidbody joints and collision contacts are resolved. (default 6). Must be positive.")] |
|||
public int solverIterations = 6; |
|||
[Tooltip("Affects how accurately the Rigidbody joints and collision contacts are resolved. (default 1). Must be positive.")] |
|||
public int solverVelocityIterations = 1; |
|||
public void Awake() |
|||
{ |
|||
// Save the original values
|
|||
m_OriginalMonitorVerticalOffset = Monitor.verticalOffset; |
|||
m_OriginalGravity = Physics.gravity; |
|||
m_OriginalFixedDeltaTime = Time.fixedDeltaTime; |
|||
m_OriginalMaximumDeltaTime = Time.maximumDeltaTime; |
|||
m_OriginalSolverIterations = Physics.defaultSolverIterations; |
|||
m_OriginalSolverVelocityIterations = Physics.defaultSolverVelocityIterations; |
|||
public void Awake() |
|||
{ |
|||
// Save the original values
|
|||
m_OriginalMonitorVerticalOffset = Monitor.verticalOffset; |
|||
m_OriginalGravity = Physics.gravity; |
|||
m_OriginalFixedDeltaTime = Time.fixedDeltaTime; |
|||
m_OriginalMaximumDeltaTime = Time.maximumDeltaTime; |
|||
m_OriginalSolverIterations = Physics.defaultSolverIterations; |
|||
m_OriginalSolverVelocityIterations = Physics.defaultSolverVelocityIterations; |
|||
// Override
|
|||
Monitor.verticalOffset = monitorVerticalOffset; |
|||
Physics.gravity *= gravityMultiplier; |
|||
Time.fixedDeltaTime = fixedDeltaTime; |
|||
Time.maximumDeltaTime = maximumDeltaTime; |
|||
Physics.defaultSolverIterations = solverIterations; |
|||
Physics.defaultSolverVelocityIterations = solverVelocityIterations; |
|||
// Override
|
|||
Monitor.verticalOffset = monitorVerticalOffset; |
|||
Physics.gravity *= gravityMultiplier; |
|||
Time.fixedDeltaTime = fixedDeltaTime; |
|||
Time.maximumDeltaTime = maximumDeltaTime; |
|||
Physics.defaultSolverIterations = solverIterations; |
|||
Physics.defaultSolverVelocityIterations = solverVelocityIterations; |
|||
Academy.Instance.FloatProperties.RegisterCallback("gravity", f => { Physics.gravity = new Vector3(0, -f, 0); }); |
|||
} |
|||
Academy.Instance.FloatProperties.RegisterCallback("gravity", f => { Physics.gravity = new Vector3(0, -f, 0); }); |
|||
} |
|||
public void OnDestroy() |
|||
{ |
|||
Monitor.verticalOffset = m_OriginalMonitorVerticalOffset; |
|||
Physics.gravity = m_OriginalGravity; |
|||
Time.fixedDeltaTime = m_OriginalFixedDeltaTime; |
|||
Time.maximumDeltaTime = m_OriginalMaximumDeltaTime; |
|||
Physics.defaultSolverIterations = m_OriginalSolverIterations; |
|||
Physics.defaultSolverVelocityIterations = m_OriginalSolverVelocityIterations; |
|||
public void OnDestroy() |
|||
{ |
|||
Monitor.verticalOffset = m_OriginalMonitorVerticalOffset; |
|||
Physics.gravity = m_OriginalGravity; |
|||
Time.fixedDeltaTime = m_OriginalFixedDeltaTime; |
|||
Time.maximumDeltaTime = m_OriginalMaximumDeltaTime; |
|||
Physics.defaultSolverIterations = m_OriginalSolverIterations; |
|||
Physics.defaultSolverVelocityIterations = m_OriginalSolverVelocityIterations; |
|||
} |
|||
} |
|||
} |
884
Project/Assets/ML-Agents/Examples/Soccer/Prefabs/SoccerFieldTwos.prefab
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
|
|||
{ |
|||
"name": "Unity.ML-Agents", |
|||
"references": [], |
|||
"references": [ |
|||
"Barracuda" |
|||
], |
|||
"overrideReferences": true, |
|||
"overrideReferences": false, |
|||
"Barracuda.dll", |
|||
} |
|||
} |
999
docs/images/tennis.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
|
|||
__version__ = "0.14.0.dev0" |
|||
__version__ = "0.15.0.dev0" |
|
|||
__version__ = "0.14.0.dev0" |
|||
__version__ = "0.15.0.dev0" |
部分文件因为文件数量过多而无法显示
撰写
预览
正在加载...
取消
保存
Reference in new issue