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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. 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