(
        self,
        pre_nms_top_n,
        post_nms_top_n,
        nms_thresh,
        min_size,
        box_coder=None,
        fpn_post_nms_top_n=None,
    )
Arguments:
            pre_nms_top_n (int)
            post_nms_top_n (int)
            nms_thresh (float)
            min_size (int)
            box_coder (BoxCoder)
            fpn_post_nms_top_n (int)
Arguments:
            pre_nms_top_n (int)
            post_nms_top_n (int)
            nms_thresh (float)
            min_size (int)
            box_coder (BoxCoder)
            fpn_post_nms_top_n (int)
Arguments : pre_nms_top_n ( int ) post_nms_top_n ( int ) nms_thresh ( float ) min_size ( int ) box_coder ( BoxCoder ) fpn_post_nms_top_n ( int )
def __init__(
        self,
        pre_nms_top_n,
        post_nms_top_n,
        nms_thresh,
        min_size,
        box_coder=None,
        fpn_post_nms_top_n=None,
    ):
        """
        Arguments:
            pre_nms_top_n (int)
            post_nms_top_n (int)
            nms_thresh (float)
            min_size (int)
            box_coder (BoxCoder)
            fpn_post_nms_top_n (int)
        """
        super(RPNPostProcessor, self).__init__()
        self.pre_nms_top_n = pre_nms_top_n
        self.post_nms_top_n = post_nms_top_n
        self.nms_thresh = nms_thresh
        self.min_size = min_size

        if box_coder is None:
            box_coder = BoxCoder(weights=(1.0, 1.0, 1.0, 1.0))
        self.box_coder = box_coder

        if fpn_post_nms_top_n is None:
            fpn_post_nms_top_n = post_nms_top_n
        self.fpn_post_nms_top_n = fpn_post_nms_top_n
def __init__ ( self , pre_nms_top_n , post_nms_top_n , nms_thresh , min_size , box_coder = None , fpn_post_nms_top_n = None , ) : super ( RPNPostProcessor , self ) . __init__ ( ) self . pre_nms_top_n = pre_nms_top_n self . post_nms_top_n = post_nms_top_n self . nms_thresh = nms_thresh self . min_size = min_size if box_coder is None : box_coder = BoxCoder ( weights = ( 1.0 , 1.0 , 1.0 , 1.0 ) ) self . box_coder = box_coder if fpn_post_nms_top_n is None : fpn_post_nms_top_n = post_nms_top_n self . fpn_post_nms_top_n = fpn_post_nms_top_n