modelzoo.common.run_utils.cli_parser.add_general_arguments#
- modelzoo.common.run_utils.cli_parser.add_general_arguments(parser: argparse.ArgumentParser, default_model_dir: str, first_parse: bool = True)[source]#
Injects general parser arguments.
- Parameters
parser – Parser into which the arguments are being added.
default_model_dir – String containing model directory path.
first_parse – Boolean indicating whether this is the first time processing the arguments. If True, the “params” arg is required to get additional parameters, if False then the params file has already been read and is not required.