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.

Bug The max_steps parameter keeps going to default

Discussion in 'ML-Agents' started by Xikuryas, Nov 28, 2022.

  1. Xikuryas

    Xikuryas

    Joined:
    Nov 27, 2022
    Posts:
    2
    Hello everyone,
    I have a problem that most people encounter.

    I'm trying to change the max_steps parameter in the configuration.yaml file.
    I'm operating in this hierarchy :
    upload_2022-11-28_14-38-47.png

    I changed the behavior name in the 2 configuration.yaml files.
    The max steps set to 10 000 000 as well.

    I tried updating the configuration file in command like this :
    python -m mlagents.trainers.upgrade_config [old yaml file name] [new file name]
    The name of the behavior of each agent in my unity simulation is the same :
    upload_2022-11-28_14-53-24.png
    But every time i launch the learning process i got these message :
    upload_2022-11-28_14-49-54.png
    And the max steps in the configuration file in the ppo get reset to 500 000.

    When i try to initialise from it, i got this error :
    upload_2022-11-28_14-55-19.png

    So yes, i'm stuck and don't know what else to do, can you help me please ?
     
  2. garytrickett

    garytrickett

    Joined:
    Sep 2, 2018
    Posts:
    60
    pass the path to the .yaml file in your command line when you run the training
     
  3. Xikuryas

    Xikuryas

    Joined:
    Nov 27, 2022
    Posts:
    2
    Ok, it's working.
    Thank you !