in source/train.py [0:0]
def _custom_argument_parser(config_file, opts, resume):
"""
Create a parser with some common arguments for Detectron2 training script.
Returns:
argparse.NameSpace:
"""
parser = argparse.ArgumentParser(description="Detectron2 Training")
parser.add_argument("--config-file", default=None, metavar="FILE", help="path to config file")
parser.add_argument("--opts",default=None ,help="Modify config options using the command-line")
parser.add_argument("--resume", type=str, default="True", help="whether to attempt to resume from the checkpoint directory",)
args = parser.parse_args(["--config-file", config_file,
"--resume", resume,
"--opts", opts])
return args