class_docstr: Referring Expression Segmentation Metric.
code: def __init__(self, metric: Sequence = ("cIoU", "mIoU"), **kwargs):
      super().__init__(**kwargs)
      assert set(metric).issubset(
          ["cIoU", "mIoU"]
      ), f"Only support cIoU and mIoU, but got {metric}"
      assert len(metric) > 0, "metrics should not be empty"
      self.metrics = metric
  
file_path: mmdetection/mmdet/evaluation/metrics/refseg_metric.py
imports: from typing import Sequence
  import torch
  from mmengine.evaluator import BaseMetric
  from mmdet.registry import METRICS
label_desc: Use image node_id 1 to create a new RefSegMetric object from inherited base classes: BaseMetric with example: obj = RefSegMetric(metric)