(proposal_nums, iou_thrs)
return _proposal_nums, _iou_thrs
Check proposal_nums and iou_thrs and set correct format.
Check proposal_nums and iou_thrs and set correct format.
Check proposal_nums and iou_thrs and set correct format .
def set_recall_param(proposal_nums, iou_thrs):
    """Check proposal_nums and iou_thrs and set correct format.
    """
    if isinstance(proposal_nums, list):
        _proposal_nums = np.array(proposal_nums)
    elif isinstance(proposal_nums, int):
        _proposal_nums = np.array([proposal_nums])
    else:
        _proposal_nums = proposal_nums

    if iou_thrs is None:
        _iou_thrs = np.array([0.5])
    elif isinstance(iou_thrs, list):
        _iou_thrs = np.array(iou_thrs)
    elif isinstance(iou_thrs, float):
        _iou_thrs = np.array([iou_thrs])
    else:
        _iou_thrs = iou_thrs

    return _proposal_nums, _iou_thrs
def set_recall_param ( proposal_nums , iou_thrs ) : if isinstance ( proposal_nums , list ) : _proposal_nums = np . array ( proposal_nums ) elif isinstance ( proposal_nums , int ) : _proposal_nums = np . array ( [ proposal_nums ] ) else : _proposal_nums = proposal_nums if iou_thrs is None : _iou_thrs = np . array ( [ 0.5 ] ) elif isinstance ( iou_thrs , list ) : _iou_thrs = np . array ( iou_thrs ) elif isinstance ( iou_thrs , float ) : _iou_thrs = np . array ( [ iou_thrs ] ) else : _iou_thrs = iou_thrs return _proposal_nums , _iou_thrs