code: def __init__(
      self,
      ann_file: Optional[str] = None,
      metric: str = "bbox",
      iou_thrs: float = 0.5,
      thresh_score: float = 0.7,
      thresh_f1: float = 1.0,
      **kwargs,
  ) -> None:
      super().__init__(**kwargs)
      self.metric = metric
      self.iou_thrs = iou_thrs
      self.thresh_score = thresh_score
      self.thresh_f1 = thresh_f1
  
      with get_local_path(ann_file) as local_path:
          self.coco = COCO(local_path)
  
file_path: mmdetection/mmdet/evaluation/metrics/grefcoco_metric.py
imports: from typing import Dict, Optional, Sequence
  import numpy
  import torch
  from mmengine.evaluator import BaseMetric
  from mmengine.fileio import get_local_path
  from mmengine.logging import MMLogger
  from mmdet.datasets.api_wrappers import COCO
  from mmdet.registry import METRICS
  from ..functional import bbox_overlaps
label_desc: Use image node_id 1 to create a new gRefCOCOMetric object from inherited base classes: BaseMetric with example: obj = gRefCOCOMetric(ann_file, metric, iou_thrs, thresh_score, thresh_f1)