()
return parser.parse_args()
Parse all the arguments provided from the CLI.
    Returns:
      A list of parsed arguments.
Parse all the arguments provided from the CLI.
    Returns:
      A list of parsed arguments.
Parse all the arguments provided from the CLI . Returns : A list of parsed arguments .
def get_arguments():
    """Parse all the arguments provided from the CLI.
    Returns:
      A list of parsed arguments.
    """
    parser = argparse.ArgumentParser(description="DeepLabLFOV Network")
    parser.add_argument("--data_dir", type=str, default=DATA_DIRECTORY,
                        help="Path to the directory containing the PASCAL VOC dataset.")
    parser.add_argument("--data_list", type=str, default=DATA_LIST_PATH,
                        help="Path to the file listing the images in the dataset.")
    parser.add_argument("--data_set", type=str, default="cityscapes", help="dataset to train")
    parser.add_argument("--arch",type=str,default="CascadeRelatioNet_res50")
    parser.add_argument("--ignore_label", type=int, default=IGNORE_LABEL,
                        help="The index of the label to ignore during the training.")
    parser.add_argument("--num_classes", type=int, default=19,
                        help="Number of classes to predict (including background).")
    parser.add_argument("--restore_from", type=str, default=RESTORE_FROM,
                        help="Where restore models parameters from.")
    parser.add_argument("--gpu", type=str, default='0',
                        help="choose gpu device.")
    parser.add_argument("--input_size", type=int, default=INPUT_SIZE,
                        help="Comma-separated string with height and width of images.")
    parser.add_argument("--whole", type=bool, default=False,
                        help="use whole input size.")
    parser.add_argument("--output_dir", type=str, default="outputs",
                        help="output dir of prediction")
    parser.add_argument("--rgb", type=str2bool, default='False')
    return parser.parse_args()
def get_arguments ( ) : parser = argparse . ArgumentParser ( description = "DeepLabLFOV Network" ) parser . add_argument ( "--data_dir" , type = str , default = DATA_DIRECTORY , help = "Path to the directory containing the PASCAL VOC dataset." ) parser . add_argument ( "--data_list" , type = str , default = DATA_LIST_PATH , help = "Path to the file listing the images in the dataset." ) parser . add_argument ( "--data_set" , type = str , default = "cityscapes" , help = "dataset to train" ) parser . add_argument ( "--arch" , type = str , default = "CascadeRelatioNet_res50" ) parser . add_argument ( "--ignore_label" , type = int , default = IGNORE_LABEL , help = "The index of the label to ignore during the training." ) parser . add_argument ( "--num_classes" , type = int , default = 19 , help = "Number of classes to predict (including background)." ) parser . add_argument ( "--restore_from" , type = str , default = RESTORE_FROM , help = "Where restore models parameters from." ) parser . add_argument ( "--gpu" , type = str , default = '0' , help = "choose gpu device." ) parser . add_argument ( "--input_size" , type = int , default = INPUT_SIZE , help = "Comma-separated string with height and width of images." ) parser . add_argument ( "--whole" , type = bool , default = False , help = "use whole input size." ) parser . add_argument ( "--output_dir" , type = str , default = "outputs" , help = "output dir of prediction" ) parser . add_argument ( "--rgb" , type = str2bool , default = 'False' ) return parser . parse_args ( )