(recalls, iou_thrs)
Plot IoU-Recalls curve.

    Args:
        recalls(ndarray or list): shape (k,)
        iou_thrs(ndarray or list): same shape as `recalls`
Plot IoU-Recalls curve.
Plot IoU - Recalls curve .
def plot_iou_recall(recalls, iou_thrs):
    """Plot IoU-Recalls curve.

    Args:
        recalls(ndarray or list): shape (k,)
        iou_thrs(ndarray or list): same shape as `recalls`
    """
    if isinstance(iou_thrs, np.ndarray):
        _iou_thrs = iou_thrs.tolist()
    else:
        _iou_thrs = iou_thrs
    if isinstance(recalls, np.ndarray):
        _recalls = recalls.tolist()
    else:
        _recalls = recalls

    import matplotlib.pyplot as plt
    f = plt.figure()
    plt.plot(_iou_thrs + [1.0], _recalls + [0.])
    plt.xlabel('IoU')
    plt.ylabel('Recall')
    plt.axis([iou_thrs.min(), 1, 0, 1])
    f.show()
def plot_iou_recall ( recalls , iou_thrs ) : if isinstance ( iou_thrs , np . ndarray ) : _iou_thrs = iou_thrs . tolist ( ) else : _iou_thrs = iou_thrs if isinstance ( recalls , np . ndarray ) : _recalls = recalls . tolist ( ) else : _recalls = recalls import matplotlib . pyplot as plt f = plt . figure ( ) plt . plot ( _iou_thrs + [ 1.0 ] , _recalls + [ 0. ] ) plt . xlabel ( 'IoU' ) plt . ylabel ( 'Recall' ) plt . axis ( [ iou_thrs . min ( ) , 1 , 0 , 1 ] ) f . show ( )