- Home /
Hi Mlagents not working.
I have installed the below packages ml-agents: 0.23.0, ml-agents-envs: 0.23.0, Communicator API: 1.3.0, Pytorch: 1.7.0+cu110 com.unity.ml-agents 1.72 preview
When I started training ,I am getting below warning
Fewer observations (0) made than vector observation size (1). The observations will be padded. UnityEngine.Debug:LogWarningFormat(String, Object[]) Unity.MLAgents.Sensors.VectorSensor:Write(ObservationWriter) (at Library/PackageCache/com.unity.ml-agents@1.7.2-preview/Runtime/Sensors/VectorSensor.cs:51) Unity.MLAgents.Policies.HeuristicPolicy:StepSensors(List`1) (at Library/PackageCache/com.unity.ml-agents@1.7.2-preview/Runtime/Policies/HeuristicPolicy.cs:134) Unity.MLAgents.Policies.HeuristicPolicy:RequestDecision(AgentInfo, List`1) (at Library/PackageCache/com.unity.ml-agents@1.7.2-preview/Runtime/Policies/HeuristicPolicy.cs:40) Unity.MLAgents.Agent:SendInfoToBrain() (at Library/PackageCache/com.unity.ml-agents@1.7.2-preview/Runtime/Agent.cs:1064) Unity.MLAgents.Agent:SendInfo() (at Library/PackageCache/com.unity.ml-agents@1.7.2-preview/Runtime/Agent.cs:1320) Unity.MLAgents.Academy:EnvironmentStep() (at Library/PackageCache/com.unity.ml-agents@1.7.2-preview/Runtime/Academy.cs:557) Unity.MLAgents.AcademyFixedUpdateStepper:FixedUpdate() (at Library/PackageCache/com.unity.ml-agents@1.7.2-preview/Runtime/Academy.cs:43)
My behaviour Parameters :
and training screen froze
My agent script:
public class PlayerMovementTowardsGoal : Agent { public override void OnActionReceived(ActionBuffers bufferactions) {
Debug.Log(bufferactions.ContinuousActions[0]);
}
}
But I am not getting any output in console. Any help would be appreciated.