Search Unity

Bug Demonstration Files keep coming in 1KB

Discussion in 'ML-Agents' started by PedroSchulz, Nov 20, 2022.

  1. PedroSchulz

    PedroSchulz

    Joined:
    Aug 16, 2020
    Posts:
    2
    I am using ML-Agents Release 19 and I'm having some issues trying training my AI with imitiation learning. I do not know what is wrong, everything seems to be right, but when I record, my demo files appears with 1kb and it seems to record nothing. Also, when I press play in the editor with Heuristic Only selected, this appears on console:

    Couldn't connect to trainer on port 5004 using API version 1.5.0. Will perform inference instead.
    UnityEngine.Debug:Log (object)
    Unity.MLAgents.Academy:InitializeEnvironment () (at Library/PackageCache/com.unity.ml-agents@2.2.1-exp.1/Runtime/Academy.cs:467)
    Unity.MLAgents.Academy:LazyInitialize () (at Library/PackageCache/com.unity.ml-agents@2.2.1-exp.1/Runtime/Academy.cs:286)
    Unity.MLAgents.Academy:.ctor () (at Library/PackageCache/com.unity.ml-agents@2.2.1-exp.1/Runtime/Academy.cs:255)
    Unity.MLAgents.Academy/<>c:<.cctor>b__86_0 () (at Library/PackageCache/com.unity.ml-agents@2.2.1-exp.1/Runtime/Academy.cs:117)
    System.Lazy`1<Unity.MLAgents.Academy>:get_Value ()
    Unity.MLAgents.Academy:get_Instance () (at Library/PackageCache/com.unity.ml-agents@2.2.1-exp.1/Runtime/Academy.cs:132)
    Unity.MLAgents.DecisionRequester:Awake () (at Library/PackageCache/com.unity.ml-agents@2.2.1-exp.1/Runtime/DecisionRequester.cs:57)


    guilded_image_b8901f2fc1eaced25bfe7e51241c1170.png
    guilded_image_01738e18b252a7dccde9cd7a33ec9a13.png
     
  2. PedroSchulz

    PedroSchulz

    Joined:
    Aug 16, 2020
    Posts:
    2
    I've made a mistake. Inside my Agent, I used a new void Awake() to enable the new input system controls. This mistake makes the Demo Recorder not record your actions.