Andrew Cohen
5 年前
当前提交
de73baa9
共有 74 个文件被更改,包括 1404 次插入 和 374 次删除
-
50.circleci/config.yml
-
8.github/PULL_REQUEST_TEMPLATE.md
-
4.pre-commit-config.yaml
-
1.yamato/com.unity.ml-agents-test.yml
-
9Project/Assets/ML-Agents/Examples/WallJump/Scripts/WallJumpAgent.cs
-
3com.unity.ml-agents/CHANGELOG.md
-
4com.unity.ml-agents/Editor/BrainParametersDrawer.cs
-
10com.unity.ml-agents/Editor/Unity.ML-Agents.Editor.asmdef
-
12com.unity.ml-agents/Runtime/Academy.cs
-
13com.unity.ml-agents/Runtime/ActionMasker.cs
-
29com.unity.ml-agents/Runtime/DecisionRequester.cs
-
20com.unity.ml-agents/Runtime/Demonstrations/DemonstrationRecorder.cs
-
16com.unity.ml-agents/Runtime/Demonstrations/DemonstrationWriter.cs
-
4com.unity.ml-agents/Runtime/InferenceBrain/BarracudaModelParamLoader.cs
-
12com.unity.ml-agents/Runtime/InferenceBrain/TensorGenerator.cs
-
4com.unity.ml-agents/Runtime/InferenceBrain/Utils/RandomNormal.cs
-
12com.unity.ml-agents/Runtime/Policy/BarracudaPolicy.cs
-
21com.unity.ml-agents/Runtime/Policy/BehaviorParameters.cs
-
34com.unity.ml-agents/Runtime/Policy/BrainParameters.cs
-
54com.unity.ml-agents/Runtime/Sensor/CameraSensor.cs
-
37com.unity.ml-agents/Runtime/Sensor/CameraSensorComponent.cs
-
63com.unity.ml-agents/Runtime/Sensor/ISensor.cs
-
2com.unity.ml-agents/Runtime/Sensor/Observation.cs
-
44com.unity.ml-agents/Runtime/Sensor/RayPerceptionSensor.cs
-
7com.unity.ml-agents/Runtime/Sensor/RayPerceptionSensorComponent2D.cs
-
37com.unity.ml-agents/Runtime/Sensor/RayPerceptionSensorComponent3D.cs
-
279com.unity.ml-agents/Runtime/Sensor/RayPerceptionSensorComponentBase.cs
-
21com.unity.ml-agents/Runtime/Sensor/RenderTextureSensor.cs
-
22com.unity.ml-agents/Runtime/Sensor/RenderTextureSensorComponent.cs
-
19com.unity.ml-agents/Runtime/Sensor/SensorBase.cs
-
17com.unity.ml-agents/Runtime/Sensor/SensorComponent.cs
-
4com.unity.ml-agents/Runtime/Sensor/StackingSensor.cs
-
23com.unity.ml-agents/Runtime/Sensor/VectorSensor.cs
-
8com.unity.ml-agents/Runtime/Sensor/WriteAdapter.cs
-
8com.unity.ml-agents/Runtime/SideChannel/EngineConfigurationChannel.cs
-
16com.unity.ml-agents/Runtime/SideChannel/FloatPropertiesChannel.cs
-
5com.unity.ml-agents/Runtime/SideChannel/RawBytesChannel.cs
-
7com.unity.ml-agents/Runtime/SideChannel/SideChannel.cs
-
18com.unity.ml-agents/Runtime/Timer.cs
-
5com.unity.ml-agents/Runtime/Unity.ML-Agents.asmdef
-
9com.unity.ml-agents/Runtime/UnityAgentsException.cs
-
82com.unity.ml-agents/Runtime/Utilities.cs
-
4com.unity.ml-agents/Tests/Editor/DemonstrationTests.cs
-
5com.unity.ml-agents/Tests/Editor/Unity.ML-Agents.Editor.Tests.asmdef
-
15gym-unity/gym_unity/envs/__init__.py
-
9ml-agents/mlagents/trainers/common/nn_policy.py
-
4ml-agents/mlagents/trainers/components/reward_signals/curiosity/signal.py
-
4ml-agents/mlagents/trainers/components/reward_signals/gail/signal.py
-
6ml-agents/mlagents/trainers/ppo/optimizer.py
-
8ml-agents/mlagents/trainers/sac/network.py
-
7ml-agents/mlagents/trainers/sac/optimizer.py
-
4ml-agents/mlagents/trainers/tests/test_meta_curriculum.py
-
9ml-agents/mlagents/trainers/tests/test_simple_rl.py
-
1ml-agents/mlagents/trainers/tf_policy.py
-
34notebooks/getting-started-gym.ipynb
-
27notebooks/getting-started.ipynb
-
8com.unity.ml-agents/Runtime/Communicator/ICommunicator.cs
-
40.yamato/protobuf-generation-test.yml
-
94com.unity.ml-agents/Editor/RayPerceptionSensorComponentBaseEditor.cs
-
11com.unity.ml-agents/Editor/RayPerceptionSensorComponentBaseEditor.cs.meta
-
8com.unity.ml-agents/Runtime/Communicator.meta
-
5com.unity.ml-agents/Runtime/Grpc/AssemblyInfo.cs
-
11com.unity.ml-agents/Runtime/Grpc/AssemblyInfo.cs.meta
-
16com.unity.ml-agents/Runtime/Grpc/Unity.ML-Agents.CommunicatorObjects.asmdef
-
7com.unity.ml-agents/Runtime/Grpc/Unity.ML-Agents.CommunicatorObjects.asmdef.meta
-
381com.unity.ml-agents/Third Party Notices.md
-
7com.unity.ml-agents/Third Party Notices.md.meta
-
0/com.unity.ml-agents/Runtime/Communicator/GrpcExtensions.cs.meta
-
0/com.unity.ml-agents/Runtime/Communicator/RpcCommunicator.cs.meta
-
0/com.unity.ml-agents/Runtime/Communicator/GrpcExtensions.cs
-
0/com.unity.ml-agents/Runtime/Communicator/RpcCommunicator.cs
-
0/com.unity.ml-agents/Runtime/Communicator/ICommunicator.cs.meta
-
0/com.unity.ml-agents/Runtime/Communicator/ICommunicator.cs
|
|||
using System; |
|||
/// <summary>
|
|||
/// A SensorComponent that creates a <see cref="CameraSensor"/>.
|
|||
/// </summary>
|
|||
/// <summary>
|
|||
/// Camera object that provides the data to the sensor.
|
|||
/// </summary>
|
|||
|
|||
/// <summary>
|
|||
/// Name of the generated <see cref="CameraSensor"/> object.
|
|||
/// </summary>
|
|||
|
|||
/// <summary>
|
|||
/// Width of the generated image.
|
|||
/// </summary>
|
|||
|
|||
/// <summary>
|
|||
/// Height of the generated image.
|
|||
/// </summary>
|
|||
|
|||
/// <summary>
|
|||
/// Whether to generate grayscale images or color.
|
|||
/// </summary>
|
|||
|
|||
/// <summary>
|
|||
/// The compression type to use for the sensor.
|
|||
/// </summary>
|
|||
/// <summary>
|
|||
/// Creates the <see cref="CameraSensor"/>
|
|||
/// </summary>
|
|||
/// <returns>The created <see cref="CameraSensor"/> object for this component.</returns>
|
|||
/// <summary>
|
|||
/// Computes the observation shape of the sensor.
|
|||
/// </summary>
|
|||
/// <returns>The observation shape of the associated <see cref="CameraSensor"/> object.</returns>
|
|||
return new[] { height, width, grayscale ? 1 : 3 }; |
|||
return CameraSensor.GenerateShape(width, height, grayscale); |
|||
} |
|||
} |
|||
} |