class_docstr: Fusion Head with Heuristic method.
class_docstr_tok: ["Fusion","Head","with","Heuristic","method","."]
docstr: Predict results by fusing the results of instance and semantic
  segmentations.
  
  Args:
      mask_results_list (list[:obj:`InstanceData`]): Instance
          segmentation results, each contains ``bboxes``, ``labels``,
          ``scores`` and ``masks``.
      seg_preds_list (Tensor): List of semantic segmentation results.
  
  Returns:
      List[PixelData]: Panoptic segmentation result.
docstr_tok: ["Predict","results","by","fusing","the","results","of","instance","and","semantic","segmentations",".","Args",":","mask_results_list","(","list","[",":","obj",":","`","InstanceData","`","]",")",":","Instance","segmentation","results",",","each","contains","``","bboxes","``",",","``","labels","``",",","``","scores","``","and","``","masks","``",".","seg_preds_list","(","Tensor",")",":","List","of","semantic","segmentation","results",".","Returns",":","List","[","PixelData","]",":","Panoptic","segmentation","result","."]
code: def predict(
      self,
      mask_results_list: InstanceList,
      seg_preds_list: List[Tensor],
      **kwargs,
  ) -> PixelList:
      """Predict results by fusing the results of instance and semantic
      segmentations.
  
      Args:
          mask_results_list (list[:obj:`InstanceData`]): Instance
              segmentation results, each contains ``bboxes``, ``labels``,
              ``scores`` and ``masks``.
          seg_preds_list (Tensor): List of semantic segmentation results.
  
      Returns:
          List[PixelData]: Panoptic segmentation result.
      """
      results_list = [
          self._predict_single(mask_results_list[i], seg_preds_list[i])
          for i in range(len(mask_results_list))
      ]
  
      return results_list
  
file_path: mmdetection/mmdet/models/seg_heads/panoptic_fusion_heads/heuristic_fusion_head.py
imports: from typing import List
  import torch
  from mmengine.structures import InstanceData, PixelData
  from torch import Tensor
  from mmdet.evaluation.functional import INSTANCE_OFFSET
  from mmdet.registry import MODELS
  from mmdet.utils import InstanceList, OptConfigType, OptMultiConfig, PixelList
  from .base_panoptic_fusion_head import BasePanopticFusionHead
label_desc: Use image node_id 5 for calling the HeuristicFusionHead obj's underlying member method code with example usage: obj.predict(mask_results_list, seg_preds_list) and returns: results_list