modelzoo.common.run_utils.cli_parser.get_params_from_args#
- modelzoo.common.run_utils.cli_parser.get_params_from_args(run_dir: Optional[str] = None, argv: Optional[List] = None, extra_args_parser_fn: Optional[Callable[[], List[argparse.ArgumentParser]]] = None) dict [source]#
Parse the arguments and get the params dict from the resulting args
- Parameters
run_dir – The path to the run.py file
argv – The args to be parse. Defaults to sys.argv if not provided