浏览代码
Develop side channels: migrate reset parameters (#2990)
Develop side channels: migrate reset parameters (#2990)
* [WIP] Side Channel initial layout * Working prototype for raw bytes * fixing format mistake * Added some errors and some unit tests in C# * Added the side channel for the Engine Configuration. (#2958) * Added the side channel for the Engine Configuration. Note that this change does not require modifying a lot of files : - Adding a sender in Python - Adding a receiver in C# - subscribe the receiver to the communicator (here is a one liner in the Academy) - Add the side channel to the Python UnityEnvironment (not represented here) Adding the side channel to the environment would look like such : ```python from mlagents.envs.environment import UnityEnvironment from mlagents.envs.side_channel.raw_bytes_channel import RawBytesChannel from mlagents.envs.side_channel.engine_configuration_channel import EngineConfigurationChannel channel0 = RawBytesChannel() channel1 = EngineConfigurationChanne.../develop/tanhsquash
GitHub
5 年前
当前提交
8ec5ab62
共有 70 个文件被更改,包括 429 次插入 和 1630 次删除
-
1UnitySDK/Assets/ML-Agents/Editor/Tests/DemonstrationTests.cs
-
1UnitySDK/Assets/ML-Agents/Editor/Tests/EditModeTestInternalBrainTensorGenerator.cs
-
8UnitySDK/Assets/ML-Agents/Editor/Tests/MLAgentsEditModeTest.cs
-
7UnitySDK/Assets/ML-Agents/Examples/3DBall/Scripts/Ball3DAcademy.cs
-
8UnitySDK/Assets/ML-Agents/Examples/3DBall/Scripts/Ball3DAgent.cs
-
8UnitySDK/Assets/ML-Agents/Examples/3DBall/Scripts/Ball3DHardAgent.cs
-
2UnitySDK/Assets/ML-Agents/Examples/Basic/Scripts/BasicAgent.cs
-
6UnitySDK/Assets/ML-Agents/Examples/Bouncer/Scripts/BouncerAgent.cs
-
5UnitySDK/Assets/ML-Agents/Examples/FoodCollector/Scripts/FoodCollectorAgent.cs
-
12UnitySDK/Assets/ML-Agents/Examples/GridWorld/Scripts/GridAcademy.cs
-
4UnitySDK/Assets/ML-Agents/Examples/GridWorld/Scripts/GridAgent.cs
-
14UnitySDK/Assets/ML-Agents/Examples/GridWorld/Scripts/GridArea.cs
-
13UnitySDK/Assets/ML-Agents/Examples/PushBlock/Scripts/PushAgentBasic.cs
-
3UnitySDK/Assets/ML-Agents/Examples/Reacher/Scripts/ReacherAcademy.cs
-
9UnitySDK/Assets/ML-Agents/Examples/Reacher/Scripts/ReacherAgent.cs
-
4UnitySDK/Assets/ML-Agents/Examples/Soccer/Scripts/SoccerAcademy.cs
-
2UnitySDK/Assets/ML-Agents/Examples/Soccer/Scripts/SoccerFieldArea.cs
-
5UnitySDK/Assets/ML-Agents/Examples/Tennis/Scripts/TennisAcademy.cs
-
8UnitySDK/Assets/ML-Agents/Examples/Tennis/Scripts/TennisAgent.cs
-
6UnitySDK/Assets/ML-Agents/Examples/Walker/Scripts/WalkerAcademy.cs
-
14UnitySDK/Assets/ML-Agents/Examples/Walker/Scripts/WalkerAgent.cs
-
11UnitySDK/Assets/ML-Agents/Examples/WallJump/Scripts/WallJumpAgent.cs
-
200UnitySDK/Assets/ML-Agents/Scripts/Academy.cs
-
52UnitySDK/Assets/ML-Agents/Scripts/Grpc/CommunicatorObjects/UnityRlInitializationOutput.cs
-
92UnitySDK/Assets/ML-Agents/Scripts/Grpc/CommunicatorObjects/UnityRlInput.cs
-
23UnitySDK/Assets/ML-Agents/Scripts/Grpc/GrpcExtensions.cs
-
22UnitySDK/Assets/ML-Agents/Scripts/Grpc/RpcCommunicator.cs
-
27UnitySDK/Assets/ML-Agents/Scripts/ICommunicator.cs
-
2UnitySDK/Assets/ML-Agents/Scripts/SideChannel/EngineConfigurationChannel.cs
-
38docs/Basic-Guide.md
-
12docs/Learning-Environment-Design-Academy.md
-
28docs/Learning-Environment-Examples.md
-
18docs/Learning-Environment-Executable.md
-
13docs/Migrating.md
-
81docs/Python-API.md
-
5docs/Training-Curriculum-Learning.md
-
4docs/Training-Generalized-Reinforcement-Learning-Agents.md
-
17docs/Training-ML-Agents.md
-
14ml-agents-envs/mlagents/envs/base_unity_environment.py
-
17ml-agents-envs/mlagents/envs/communicator_objects/unity_rl_initialization_output_pb2.py
-
14ml-agents-envs/mlagents/envs/communicator_objects/unity_rl_initialization_output_pb2.pyi
-
36ml-agents-envs/mlagents/envs/communicator_objects/unity_rl_input_pb2.py
-
16ml-agents-envs/mlagents/envs/communicator_objects/unity_rl_input_pb2.pyi
-
11ml-agents-envs/mlagents/envs/env_manager.py
-
66ml-agents-envs/mlagents/envs/environment.py
-
25ml-agents-envs/mlagents/envs/side_channel/engine_configuration_channel.py
-
29ml-agents-envs/mlagents/envs/simple_env_manager.py
-
71ml-agents-envs/mlagents/envs/subprocess_env_manager.py
-
35ml-agents-envs/mlagents/envs/tests/test_subprocess_env_manager.py
-
9ml-agents/mlagents/trainers/curriculum.py
-
70ml-agents/mlagents/trainers/learn.py
-
8ml-agents/mlagents/trainers/meta_curriculum.py
-
8ml-agents/mlagents/trainers/tests/test_curriculum.py
-
4ml-agents/mlagents/trainers/tests/test_learn.py
-
9ml-agents/mlagents/trainers/tests/test_meta_curriculum.py
-
4ml-agents/mlagents/trainers/tests/test_simple_rl.py
-
2ml-agents/mlagents/trainers/tests/test_trainer_controller.py
-
4ml-agents/mlagents/trainers/trainer_controller.py
-
3protobuf-definitions/proto/mlagents/envs/communicator_objects/unity_rl_initialization_output.proto
-
5protobuf-definitions/proto/mlagents/envs/communicator_objects/unity_rl_input.proto
-
179UnitySDK/Assets/ML-Agents/Editor/ResetParameterDrawer.cs
-
12UnitySDK/Assets/ML-Agents/Editor/ResetParameterDrawer.cs.meta
-
207UnitySDK/Assets/ML-Agents/Scripts/Grpc/CommunicatorObjects/EnvironmentParameters.cs
-
11UnitySDK/Assets/ML-Agents/Scripts/Grpc/CommunicatorObjects/EnvironmentParameters.cs.meta
-
61UnitySDK/Assets/ML-Agents/Scripts/ResetParameters.cs
-
12UnitySDK/Assets/ML-Agents/Scripts/ResetParameters.cs.meta
-
116docs/images/academy.png
-
130ml-agents-envs/mlagents/envs/communicator_objects/environment_parameters_pb2.py
-
75ml-agents-envs/mlagents/envs/communicator_objects/environment_parameters_pb2.pyi
-
11protobuf-definitions/proto/mlagents/envs/communicator_objects/environment_parameters.proto