def get_iou_th_min_th_dila_from_name(folder, mode='str'):
    """
    This function gets the iou_th, min_th and dila values from the folder name
    :param: folder: The folder name of interest for extraction
    :param: mode: The format of extraction, currently support either 'str' or 'num'
    """
    iou_th = folder[folder.find('iou_th_')+7:].split('_')[0]
    min_th = folder[folder.find('min_th_')+7:].split('_')[0]
    dila = folder[folder.find('dila_')+5:].split('_')[0]
    if mode is not 'num' and mode is not 'str':
        exit('Your mode in get_iout_min_th_dila_from_name should be either str or num!! reset the argument pls!')
    if mode is 'num':
        return float(iou_th), int(min_th), int(dila)
    return iou_th, min_th, dila