class_docstr: Evaluate semantic segmentation
class_docstr_tok: ["Evaluate","semantic","segmentation"]
code: def __init__(
      self,
      num_classes,
      thing_list,
      ignore_index=255,
      label_divisor=1000,
  ):
      self.pq_stat = PQStat(num_classes)
      self.num_classes = num_classes
      self.thing_list = thing_list
      self.ignore_index = ignore_index
      self.label_divisor = label_divisor
  
file_path: PaddleSeg/contrib/PanopticDeepLab/utils/evaluation/panoptic.py
imports: from collections import defaultdict, OrderedDict
  import numpy
label_desc: Use image node_id 1 to create a new PanopticEvaluator object  with example: obj = PanopticEvaluator(num_classes, thing_list, ignore_index, label_divisor)