def get_internal_state(self):
    """Returns internal state of the evaluation.

    NOTE: that only evaluation results will be returned
    (e.g. no raw predictions or groundtruth).
    Returns:
      internal state of the evaluation.
    """
    return ObjectDetectionEvaluationState(
        self.num_gt_instances_per_class, self.scores_per_class,
        self.tp_fp_labels_per_class, self.num_gt_imgs_per_class,
        self.num_images_correctly_detected_per_class)
Returns internal state of the evaluation.

    NOTE: that only evaluation results will be returned
    (e.g. no raw predictions or groundtruth).
    Returns:
      internal state of the evaluation.
    
inference_api/src/main/object_detection/utils/object_detection_evaluation.py