(
        self,
        pre_nms_thresh,
        pre_nms_top_n,
        nms_thresh,
        fpn_post_nms_top_n,
        min_size,
        num_classes,
        box_coder=None,
    )
Arguments:
            pre_nms_thresh (float)
            pre_nms_top_n (int)
            nms_thresh (float)
            fpn_post_nms_top_n (int)
            min_size (int)
            num_classes (int)
            box_coder (BoxCoder)
Arguments:
            pre_nms_thresh (float)
            pre_nms_top_n (int)
            nms_thresh (float)
            fpn_post_nms_top_n (int)
            min_size (int)
            num_classes (int)
            box_coder (BoxCoder)
Arguments : pre_nms_thresh ( float ) pre_nms_top_n ( int ) nms_thresh ( float ) fpn_post_nms_top_n ( int ) min_size ( int ) num_classes ( int ) box_coder ( BoxCoder )
def __init__(
        self,
        pre_nms_thresh,
        pre_nms_top_n,
        nms_thresh,
        fpn_post_nms_top_n,
        min_size,
        num_classes,
        box_coder=None,
    ):
        """
        Arguments:
            pre_nms_thresh (float)
            pre_nms_top_n (int)
            nms_thresh (float)
            fpn_post_nms_top_n (int)
            min_size (int)
            num_classes (int)
            box_coder (BoxCoder)
        """
        super(RetinaNetPostProcessor, self).__init__(
            pre_nms_thresh, 0, nms_thresh, min_size
        )
        self.pre_nms_thresh = pre_nms_thresh
        self.pre_nms_top_n = pre_nms_top_n
        self.nms_thresh = nms_thresh
        self.fpn_post_nms_top_n = fpn_post_nms_top_n
        self.min_size = min_size
        self.num_classes = num_classes

        if box_coder is None:
            box_coder = BoxCoder(weights=(10., 10., 5., 5.))
        self.box_coder = box_coder
def __init__ ( self , pre_nms_thresh , pre_nms_top_n , nms_thresh , fpn_post_nms_top_n , min_size , num_classes , box_coder = None , ) : super ( RetinaNetPostProcessor , self ) . __init__ ( pre_nms_thresh , 0 , nms_thresh , min_size ) self . pre_nms_thresh = pre_nms_thresh self . pre_nms_top_n = pre_nms_top_n self . nms_thresh = nms_thresh self . fpn_post_nms_top_n = fpn_post_nms_top_n self . min_size = min_size self . num_classes = num_classes if box_coder is None : box_coder = BoxCoder ( weights = ( 10. , 10. , 5. , 5. ) ) self . box_coder = box_coder