class_docstr: Generates instance target only for Panoptic-DeepLab.
  Annotation is assumed to have Cityscapes format.
  
  Args:
      rgb2id (function): Function, panoptic label is encoded in a colored image, this function convert color to the
          corresponding panoptic label.
class_docstr_tok: ["Generates","instance","target","only","for","Panoptic-DeepLab",".","Annotation","is","assumed","to","have","Cityscapes","format",".","Args",":","rgb2id","(","function",")",":","Function",",","panoptic","label","is","encoded","in","a","colored","image",",","this","function","convert","color","to","the","corresponding","panoptic","label","."]
code: def __init__(self, rgb2id):
      self.rgb2id = rgb2id
  
file_path: PaddleSeg/contrib/PanopticDeepLab/transforms/target_transforms.py
imports: import numpy
label_desc: Use image node_id 1 to create a new InstanceTargetGenerator object from inherited base classes: object with example: obj = InstanceTargetGenerator(rgb2id)