Reinforcement Learning
ml-agents
TensorBoard
ONNX
Pyramids
deep-reinforcement-learning
ML-Agents-Pyramids
Instructions to use AnnaMats/ppo-Pyramids-Training with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ml-agents
How to use AnnaMats/ppo-Pyramids-Training with ml-agents:
mlagents-load-from-hf --repo-id="AnnaMats/ppo-Pyramids-Training" --local-dir="./download: string[]s"
- Notebooks
- Google Colab
- Kaggle
| using UnityEditor; | |
| using Unity.MLAgents.Sensors; | |
| namespace Unity.MLAgents.Editor | |
| { | |
| [] | |
| [] | |
| internal class CameraSensorComponentEditor : UnityEditor.Editor | |
| { | |
| public override void OnInspectorGUI() | |
| { | |
| var so = serializedObject; | |
| so.Update(); | |
| // Drawing the CameraSensorComponent | |
| EditorGUI.BeginChangeCheck(); | |
| EditorGUILayout.PropertyField(so.FindProperty("m_Camera"), true); | |
| EditorGUI.BeginDisabledGroup(!EditorUtilities.CanUpdateModelProperties()); | |
| { | |
| // These fields affect the sensor order or observation size, | |
| // So can't be changed at runtime. | |
| EditorGUILayout.PropertyField(so.FindProperty("m_SensorName"), true); | |
| EditorGUILayout.PropertyField(so.FindProperty("m_Width"), true); | |
| EditorGUILayout.PropertyField(so.FindProperty("m_Height"), true); | |
| EditorGUILayout.PropertyField(so.FindProperty("m_Grayscale"), true); | |
| EditorGUILayout.PropertyField(so.FindProperty("m_ObservationStacks"), true); | |
| EditorGUILayout.PropertyField(so.FindProperty("m_ObservationType"), true); | |
| } | |
| EditorGUI.EndDisabledGroup(); | |
| EditorGUILayout.PropertyField(so.FindProperty("m_RuntimeCameraEnable"), true); | |
| EditorGUILayout.PropertyField(so.FindProperty("m_Compression"), true); | |
| var requireSensorUpdate = EditorGUI.EndChangeCheck(); | |
| so.ApplyModifiedProperties(); | |
| if (requireSensorUpdate) | |
| { | |
| UpdateSensor(); | |
| } | |
| } | |
| void UpdateSensor() | |
| { | |
| var sensorComponent = serializedObject.targetObject as CameraSensorComponent; | |
| sensorComponent?.UpdateSensor(); | |
| } | |
| } | |
| } | |