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.

What controls Time.timeScale during training?

Discussion in 'ML-Agents' started by Claytonious, Apr 24, 2020.

  1. Claytonious

    Claytonious

    Joined:
    Feb 16, 2009
    Posts:
    865
    While training, the game under test is apparently set to a high Time.timeScale so that training is faster. But how do we control this value? Some games break at too high of a time scale.

    I've seen the mysterious hints here https://github.com/Unity-Technologi...docs/Python-API.md#engineconfigurationchannel but I've no idea which file(s) in release 15.1 are actually driving that.

    How is an end user supposed to set this value?

    Thanks.
     
  2. ChrissCrass

    ChrissCrass

    Joined:
    Mar 19, 2020
    Posts:
    31
    That's for the low-level python API I think. If you're using the terminal to launch training, try out this command:

    mlagents-learn --help

    Time scale can be set as a command line argument when you launch training.

    like this : mlagents-learn trainer_config.yaml --train --time-scale 1
     
  3. Claytonious

    Claytonious

    Joined:
    Feb 16, 2009
    Posts:
    865
    Thank you!