(recalls,
                         proposal_nums,
                         iou_thrs,
                         row_idxs=None,
                         col_idxs=None)
Print recalls in a table.

    Args:
        recalls(ndarray): calculated from `bbox_recalls`
        proposal_nums(ndarray or list): top N proposals
        iou_thrs(ndarray or list): iou thresholds
        row_idxs(ndarray): which rows(proposal nums) to print
        col_idxs(ndarray): which cols(iou thresholds) to print
Print recalls in a table.
Print recalls in a table .
def print_recall_summary(recalls,
                         proposal_nums,
                         iou_thrs,
                         row_idxs=None,
                         col_idxs=None):
    """Print recalls in a table.

    Args:
        recalls(ndarray): calculated from `bbox_recalls`
        proposal_nums(ndarray or list): top N proposals
        iou_thrs(ndarray or list): iou thresholds
        row_idxs(ndarray): which rows(proposal nums) to print
        col_idxs(ndarray): which cols(iou thresholds) to print
    """
    proposal_nums = np.array(proposal_nums, dtype=np.int32)
    iou_thrs = np.array(iou_thrs)
    if row_idxs is None:
        row_idxs = np.arange(proposal_nums.size)
    if col_idxs is None:
        col_idxs = np.arange(iou_thrs.size)
    row_header = [''] + iou_thrs[col_idxs].tolist()
    table_data = [row_header]
    for i, num in enumerate(proposal_nums[row_idxs]):
        row = [
            '{:.3f}'.format(val)
            for val in recalls[row_idxs[i], col_idxs].tolist()
        ]
        row.insert(0, num)
        table_data.append(row)
    table = AsciiTable(table_data)
    print(table.table)
def print_recall_summary ( recalls , proposal_nums , iou_thrs , row_idxs = None , col_idxs = None ) : proposal_nums = np . array ( proposal_nums , dtype = np . int32 ) iou_thrs = np . array ( iou_thrs ) if row_idxs is None : row_idxs = np . arange ( proposal_nums . size ) if col_idxs is None : col_idxs = np . arange ( iou_thrs . size ) row_header = [ '' ] + iou_thrs [ col_idxs ] . tolist ( ) table_data = [ row_header ] for i , num in enumerate ( proposal_nums [ row_idxs ] ) : row = [ '{:.3f}' . format ( val ) for val in recalls [ row_idxs [ i ] , col_idxs ] . tolist ( ) ] row . insert ( 0 , num ) table_data . append ( row ) table = AsciiTable ( table_data ) print ( table . table )