浏览代码

[skip ci] fixing argument parser

/trainer-plugin
Anupam Bhatnagar 4 年前
当前提交
0ca5ffcd
共有 2 个文件被更改,包括 5 次插入2 次删除
  1. 6
      ml-agents/mlagents/trainers/cli_utils.py
  2. 1
      ml-agents/mlagents/trainers/settings.py

6
ml-agents/mlagents/trainers/cli_utils.py


argparser.add_argument(
"--plugins",
default="",
nargs="*",
help="Absolute paths of plugins to be added to the trainers.",
type=str,
nargs=3,
help="Absolute paths of plugins to be loaded",
required=False
)
argparser.add_argument(
"--env-args",

1
ml-agents/mlagents/trainers/settings.py


:param args: collection of command-line parameters passed to mlagents-learn
:return: RunOptions representing the passed in arguments, with trainer config, curriculum and sampler
configs loaded from files.
configs loaded from files.
"""
argparse_args = vars(args)
config_path = StoreConfigFile.trainer_config_path

正在加载...
取消
保存