本文整理汇总了Python中cfgs.config_vision_baseline.get_args_for_config方法的典型用法代码示例。如果您正苦于以下问题:Python config_vision_baseline.get_args_for_config方法的具体用法?Python config_vision_baseline.get_args_for_config怎么用?Python config_vision_baseline.get_args_for_config使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cfgs.config_vision_baseline
的用法示例。
在下文中一共展示了config_vision_baseline.get_args_for_config方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get_args_for_config
# 需要导入模块: from cfgs import config_vision_baseline [as 别名]
# 或者: from cfgs.config_vision_baseline import get_args_for_config [as 别名]
def get_args_for_config(config_name):
configs = config_name.split('.')
type = configs[0]
config_name = '.'.join(configs[1:])
if type == 'cmp':
args = config_cmp.get_args_for_config(config_name)
args.setup_to_run = cmp.setup_to_run
args.setup_train_step_kwargs = cmp.setup_train_step_kwargs
elif type == 'bl':
args = config_vision_baseline.get_args_for_config(config_name)
args.setup_to_run = vision_baseline_lstm.setup_to_run
args.setup_train_step_kwargs = vision_baseline_lstm.setup_train_step_kwargs
else:
logging.fatal('Unknown type: {:s}'.format(type))
return args
示例2: _setup_args
# 需要导入模块: from cfgs import config_vision_baseline [as 别名]
# 或者: from cfgs.config_vision_baseline import get_args_for_config [as 别名]
def _setup_args(config_name, logdir):
args = get_args_for_config(config_name)
args.solver.num_workers = FLAGS.num_workers
args.solver.task = FLAGS.task
args.solver.ps_tasks = FLAGS.ps_tasks
args.solver.master = FLAGS.master
args.solver.seed = FLAGS.solver_seed
args.logdir = logdir
args.navtask.logdir = None
return args