Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Hummingbird Tutorial - MLAgents Python to Unity Connection

Discussion in 'ML-Agents' started by martialartistmichael, Jul 21, 2021.

  1. martialartistmichael

    martialartistmichael

    Joined:
    Dec 11, 2017
    Posts:
    15
    Hello,

    On Tutorial - Training and getting a bit stuck with an error when running "mlagents-learn ./trainer_config.yaml --run-id hb_01".

    Receive this message;
    mlagents_envs.exception.UnityTimeOutException: The Unity environment took too long to respond. Make sure that :
    The environment does not need user interaction to launch
    The Agents' Behavior Parameters > Behavior Type is set to "Default"
    The environment and the Python interface have compatible versions.

    After I get the message to run Unity scene this shows up after ~1 minute.

    I have double checked behavior and that a Decision Requester is on the agent.

    Some search showed it may be a Mono issue, but I cannot find enough information on what I could change to test that solution. Any suggestions on solutions would be great. Thank you.
     
  2. ervteng_unity

    ervteng_unity

    Unity Technologies

    Joined:
    Dec 6, 2018
    Posts:
    150
    Are you getting any errors on the Unity side?
     
  3. martialartistmichael

    martialartistmichael

    Joined:
    Dec 11, 2017
    Posts:
    15
    Thanks for responding!

    Here are links to what I am seeing.

    https://ibb.co/Dr4YrJJ
    https://ibb.co/CvKg78t

    I restarted Unity to see if it was just one of those things. The tutorial said I'd see that message originally so I didn't think anything of it when I saw the one in the console view.

    I did switch the .yaml file from the one provided with the tutorial due to the version of ML Agents no longer accepting Default as an argument.