class_docstr: Referring Expression Segmentation Metric.
code: def compute_metrics(self, results: list) -> dict:
      results = tuple(zip(*results))
      assert len(results) == 4
      cum_i = sum(results[0])
      cum_u = sum(results[1])
      iou = sum(results[2])
      seg_total = sum(results[3])
  
      metrics = {}
      if "cIoU" in self.metrics:
          metrics["cIoU"] = cum_i * 100 / cum_u
      if "mIoU" in self.metrics:
          metrics["mIoU"] = iou * 100 / seg_total
      return metrics
  
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 4 for calling the RefSegMetric obj's underlying member method code with example usage: obj.compute_metrics(results) and returns: metrics