class_docstr: Phrase Grounding Metric.
class_docstr_tok: ["Phrase","Grounding","Metric","."]
code: def __init__(
      self,
      topk: Sequence[int] = (1, 5, 10, -1),
      iou_thrs: float = 0.5,
      merge_boxes: bool = False,
      collect_device: str = "cpu",
      prefix: Optional[str] = None,
  ) -> None:
      super().__init__(collect_device=collect_device, prefix=prefix)
  
      self.iou_thrs = iou_thrs
      self.topk = topk
      self.merge = merge_boxes
  
file_path: mmdetection/mmdet/evaluation/metrics/flickr30k_metric.py
imports: from collections import defaultdict
  from typing import Dict, List, Optional, Sequence
  import numpy
  from mmengine.evaluator import BaseMetric
  from mmengine.logging import MMLogger
  from mmdet.registry import METRICS
  from ..functional import bbox_overlaps
label_desc: Use image node_id 1 to create a new Flickr30kMetric object from inherited base classes: BaseMetric with example: obj = Flickr30kMetric(topk, iou_thrs, merge_boxes, collect_device, prefix)