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

Question The option beta_schedule was specified in your YAML file for PPOSettings, but is invalid.

Discussion in 'ML-Agents' started by lanyerking, Nov 10, 2021.

  1. lanyerking

    lanyerking

    Joined:
    Oct 10, 2021
    Posts:
    1
    Hello Everyone, I am stuck . please help
    I was following the Making a New Learning Environment
    on https://github.com/Unity-Technologi...eate-New.md#making-a-new-learning-environment

    and at the point where i have to start training, when i type the command
    mlagents-learn config/rollerball_config.yaml --run-id=RollerBall
    in anaconda prompt

    I receive the following error

    Traceback (most recent call last):
    File "C:\Users\Lanyerking\anaconda3\envs\ml-agents\Scripts\mlagents-learn-script.py", line 33, in <module>
    sys.exit(load_entry_point('mlagents', 'console_scripts', 'mlagents-learn')())
    File "c:\users\lanyerking\ml_agents\ml-agents-release_18\ml-agents\mlagents\trainers\learn.py", line 250, in main
    run_cli(parse_command_line())
    File "c:\users\lanyerking\ml_agents\ml-agents-release_18\ml-agents\mlagents\trainers\learn.py", line 49, in parse_command_line
    return RunOptions.from_argparse(args)
    File "c:\users\lanyerking\ml_agents\ml-agents-release_18\ml-agents\mlagents\trainers\settings.py", line 890, in from_argparse
    final_runoptions = RunOptions.from_dict(configured_dict)
    File "c:\users\lanyerking\ml_agents\ml-agents-release_18\ml-agents\mlagents\trainers\settings.py", line 907, in from_dict
    return cattr.structure(options_dict, RunOptions)
    File "C:\Users\Lanyerking\anaconda3\envs\ml-agents\lib\site-packages\cattr\converters.py", line 222, in structure
    return self._structure_func.dispatch(cl)(obj, cl)
    File "C:\Users\Lanyerking\anaconda3\envs\ml-agents\lib\site-packages\cattr\converters.py", line 359, in structure_attrs_fromdict
    dispatch(type_)(val, type_) if type_ is not None else val
    File "c:\users\lanyerking\ml_agents\ml-agents-release_18\ml-agents\mlagents\trainers\settings.py", line 667, in dict_to_trainerdict
    cattr.structure(d, Dict[str, TrainerSettings])
    File "C:\Users\Lanyerking\anaconda3\envs\ml-agents\lib\site-packages\cattr\converters.py", line 222, in structure
    return self._structure_func.dispatch(cl)(obj, cl)
    File "C:\Users\Lanyerking\anaconda3\envs\ml-agents\lib\site-packages\cattr\converters.py", line 410, in _structure_dict
    return {
    File "C:\Users\Lanyerking\anaconda3\envs\ml-agents\lib\site-packages\cattr\converters.py", line 411, in <dictcomp>
    key_conv(k, key_type): val_conv(v, val_type)
    File "c:\users\lanyerking\ml_agents\ml-agents-release_18\ml-agents\mlagents\trainers\settings.py", line 703, in structure
    d_copy[key] = strict_to_cls(
    File "c:\users\lanyerking\ml_agents\ml-agents-release_18\ml-agents\mlagents\trainers\settings.py", line 53, in strict_to_cls
    d_copy[key] = check_and_structure(key, val, t)
    File "c:\users\lanyerking\ml_agents\ml-agents-release_18\ml-agents\mlagents\trainers\settings.py", line 40, in check_and_structure
    raise TrainerConfigError(
    mlagents.trainers.exception.TrainerConfigError: The option beta_schedule was specified in your YAML file for PPOSettings, but is invalid.
     
  2. EternalMe

    EternalMe

    Joined:
    Sep 12, 2014
    Posts:
    181
    Same here. Did you solve it?
     
  3. namuh

    namuh

    Joined:
    Nov 20, 2016
    Posts:
    23
    Find the config YAML file in the ml-agents directory and remove any hyperparameter named beta_schedule.
     
  4. jrupert-unity

    jrupert-unity

    Unity Technologies

    Joined:
    Oct 20, 2021
    Posts:
    12
    If you set the version to Release_18 tag then the example will match python mlagents version 0.27.0.

    upload_2021-12-21_17-11-19.png