Search Unity

Question Speed of the Training

Discussion in 'ML-Agents' started by ilaydanil, Jun 7, 2020.

  1. ilaydanil

    ilaydanil

    Joined:
    May 17, 2020
    Posts:
    20
    I'm currently training an agents but it moves too fast. How can I configure the speed of a training?
     
  2. MrWetsnow

    MrWetsnow

    Joined:
    Jan 5, 2020
    Posts:
    60
    Code (csharp):
    1. mlagents-learn --time-scale=1
     
    radiantboy likes this.
  3. seboz123

    seboz123

    Joined:
    Mar 7, 2020
    Posts:
    24
    Is there any information on how high the time-scale parameter can be set without a problem?
    Is 5 ok? 50? I mean, it has a big impact on the training speed
     
  4. andrzej_

    andrzej_

    Joined:
    Dec 2, 2016
    Posts:
    81
    The main issue is physics. If you don't have any trouble with undetected collisions or something similar then it shouldn't be a problem to crank it up.
     
    Last edited: Jun 13, 2020
  5. Zephus

    Zephus

    Joined:
    May 25, 2015
    Posts:
    356
    Depends on the scene. If you're learning Pong you can safely set it to 50. If you have a 3D navigation task the game will probably start lagging at 10 already. Default is 20, and most of the time I just leave it there.
     
  6. mbaske

    mbaske

    Joined:
    Dec 31, 2017
    Posts:
    473
    Are you guys sure a high time-scale can cause issues? Does ML-Agents enforce a higher framerate at the expense of possible physics dropouts? Or will Unity slow code execution down in order to wait for the physics engine?
     
    DeshanGunarathna and kpalko like this.