def __init__(self, cocoGt=None, cocoDt=None, iouType='segm'):
        '''
        Initialize CocoEval using coco APIs for gt and dt
        :param cocoGt: coco object with ground truth annotations
        :param cocoDt: coco object with detection results
        :return: None
        '''
        super(COCOevalCustomRanges, self).__init__(cocoGt=cocoGt, cocoDt=cocoDt, iouType=iouType)
        # rewrite params
        self.params = ParamsCostumRanges(iouType=iouType)  # parameters
        if not cocoGt is None:
            self.params.imgIds = sorted(cocoGt.getImgIds())
            self.params.catIds = sorted(cocoGt.getCatIds())

        Initialize CocoEval using coco APIs for gt and dt
        :param cocoGt: coco object with ground truth annotations
        :param cocoDt: coco object with detection results
        :return: None
        
EVA-02/det/detectron2/evaluation/coco_evaluation.py