(
        self,
        score_thresh=0.05,
        nms=0.5,
        detections_per_img=100,
        box_coder=None,
        cls_agnostic_bbox_reg=False
    )
Arguments:
            score_thresh (float)
            nms (float)
            detections_per_img (int)
            box_coder (BoxCoder)
Arguments:
            score_thresh (float)
            nms (float)
            detections_per_img (int)
            box_coder (BoxCoder)
Arguments : score_thresh ( float ) nms ( float ) detections_per_img ( int ) box_coder ( BoxCoder )
def __init__(
        self,
        score_thresh=0.05,
        nms=0.5,
        detections_per_img=100,
        box_coder=None,
        cls_agnostic_bbox_reg=False
    ):
        """
        Arguments:
            score_thresh (float)
            nms (float)
            detections_per_img (int)
            box_coder (BoxCoder)
        """
        super(PostProcessor, self).__init__()
        self.score_thresh = score_thresh
        self.nms = nms
        self.detections_per_img = detections_per_img
        if box_coder is None:
            box_coder = BoxCoder(weights=(10., 10., 5., 5.))
        self.box_coder = box_coder
        self.cls_agnostic_bbox_reg = cls_agnostic_bbox_reg
def __init__ ( self , score_thresh = 0.05 , nms = 0.5 , detections_per_img = 100 , box_coder = None , cls_agnostic_bbox_reg = False ) : super ( PostProcessor , self ) . __init__ ( ) self . score_thresh = score_thresh self . nms = nms self . detections_per_img = detections_per_img if box_coder is None : box_coder = BoxCoder ( weights = ( 10. , 10. , 5. , 5. ) ) self . box_coder = box_coder self . cls_agnostic_bbox_reg = cls_agnostic_bbox_reg