Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

ML-agents command line environment doesn't sync with Unity environment.

Discussion in 'ML-Agents' started by yachty66, Feb 1, 2022.

  1. yachty66

    yachty66

    Joined:
    Jan 17, 2022
    Posts:
    4
    I try to start training my model with

    mlagents-learn


    in the my command line with an Python 3.8.6 conda virtual environment. Unity is already listening to the port (see image) but if I start training in Unity I don't get any messages in the terminal how I expect.
    Screen Shot 2022-02-01 at 5.47.03 PM.png

    Instead I get an error after a while.
    Screen Shot 2022-02-01 at 5.47.03 PM.png Screen Shot 2022-02-01 at 5.53.33 PM.png
     
  2. ChillX

    ChillX

    Joined:
    Jun 16, 2016
    Posts:
    145
    Start Python mlagents-learn first

    Then hit play in Unity

    Not the other way around
     
  3. yachty66

    yachty66

    Joined:
    Jan 17, 2022
    Posts:
    4
    @ChillX I am already doing that.
     
  4. ChillX

    ChillX

    Joined:
    Jun 16, 2016
    Posts:
    145
    In that case do you:
    • Have an agent in the scene with name matching a name in the config ?
    • If yes then Is request decision being called on agent either manually or by adding a decision requester component to it ?
    • Have you disabled auto stepping of the academy ?
    • if yes then are you manually stepping the academy ?