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

Passing env number as parameter to executable in parallel training ?

Discussion in 'ML-Agents' started by Aurel33, Jun 8, 2021.

  1. Aurel33

    Aurel33

    Joined:
    Apr 12, 2018
    Posts:
    10
    Hi everyone,

    Is it possible to get the env number as executable parameter when using --env and --num-envs options ?

    So I could parametrize differently each executable instance thanks to this number ?


    Thanks a lot.
     
  2. andrewcoh_unity

    andrewcoh_unity

    Unity Technologies

    Joined:
    Sep 5, 2019
    Posts:
    162
    You can set this in the yaml using

    env_settings:
    num_envs: 3


    Is this what you mean?
     
  3. Aurel33

    Aurel33

    Joined:
    Apr 12, 2018
    Posts:
    10
    Great thanks à lot i ll check that.
    I m not really fluent with new yaml format yet.... sorry about that