Search Unity

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

Unity not working in SAC

Discussion in 'ML-Agents' started by mateolopezareal, Jun 26, 2020.

  1. mateolopezareal

    mateolopezareal

    Joined:
    Jun 4, 2020
    Posts:
    54
    I have been working with my project using PPO to train my agents, but now, I am trying to train them using SAC to compare the algorithms and every time I run the training the Unity environment get stuck. However, I the training is still doing its job asa I get the summaries, but i can not see what are the agents doing in the environment. Any idea?
     
  2. ervteng_unity

    ervteng_unity

    Unity Technologies

    Joined:
    Dec 6, 2018
    Posts:
    150
    Do the agents move at all, or is the environment completely stuck? Sometimes the training process takes up CPU and Unity will slow down the rendering - but in the backend the agents are still moving and it's still training properly.
     
  3. mateolopezareal

    mateolopezareal

    Joined:
    Jun 4, 2020
    Posts:
    54
    Yeah, they are still training, but I can not see how they are doing wich is kind of important for me. I have to see the transtion of colors that they take.
     
  4. ervteng_unity

    ervteng_unity

    Unity Technologies

    Joined:
    Dec 6, 2018
    Posts:
    150
    Try running with a lower timescale using
    --time-scale=X
    when running mlagents-learn (default is 20).
     
    mateolopezareal likes this.