Search Unity

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

Environment Reset for Multi-Agent Set Up

Discussion in 'ML-Agents' started by michaeldenzler, Jul 22, 2020.

  1. michaeldenzler

    michaeldenzler

    Joined:
    Apr 3, 2020
    Posts:
    2
    We have a multi-environment set-up with policy sharing.

    We are looking for a way to end the episode and reset the environment from any agent. In the Awake() function of the environment, we achieve this by calling Academy.Instance.OnEnvironmentReset += EnvironmentReset;

    During training, once a termination criterion is met (ex. maxStep), the listener OnEnvironmentReset is not called anymore. Also Academy.Instance.Done() does not exist anymore.

    We would like to start a new episode and reset the environment in the same way as done in Awake().
     
  2. awjuliani

    awjuliani

    Unity Technologies

    Joined:
    Mar 1, 2017
    Posts:
    69
  3. michaeldenzler

    michaeldenzler

    Joined:
    Apr 3, 2020
    Posts:
    2
    Thank you, that solved the problem.