class_docstr: Dataset class for the PASCAL VOC 2012 dataset
  
  The structure of PASCAL VOC dataset should be like this: ::
  
      pascal_voc/VOCdevkit/VOC2012/Annotations
      pascal_voc/VOCdevkit/VOC2012/JPEGImages
      pascal_voc/VOCdevkit/VOC2012/SegmentationClass
      pascal_voc/VOCdevkit/VOC2012/SegmentationClassAug_Visualization
      pascal_voc/VOCdevkit/VOC2012/ImageSets
      pascal_voc/VOCdevkit/VOC2012/list
      pascal_voc/VOCdevkit/VOC2012/SegmentationClassAug
      pascal_voc/VOCdevkit/VOC2012/SegmentationObject
  
  Args:
      opts: Command-line arguments
class_docstr_tok: ["Dataset","class","for","the","PASCAL","VOC","2012","dataset","The","structure","of","PASCAL","VOC","dataset","should","be","like","this",":",":",":","pascal_voc\/VOCdevkit\/VOC2012\/Annotations","pascal_voc\/VOCdevkit\/VOC2012\/JPEGImages","pascal_voc\/VOCdevkit\/VOC2012\/SegmentationClass","pascal_voc\/VOCdevkit\/VOC2012\/SegmentationClassAug_Visualization","pascal_voc\/VOCdevkit\/VOC2012\/ImageSets","pascal_voc\/VOCdevkit\/VOC2012\/list","pascal_voc\/VOCdevkit\/VOC2012\/SegmentationClassAug","pascal_voc\/VOCdevkit\/VOC2012\/SegmentationObject","Args",":","opts",":","Command-line","arguments"]
docstr: Class index to RGB color mapping. The list index corresponds to class id.
  Note that the color list is flattened.
docstr_tok: ["Class","index","to","RGB","color","mapping",".","The","list","index","corresponds","to","class","id",".","Note","that","the","color","list","is","flattened","."]
code: def color_palette() -> List[int]:
      """Class index to RGB color mapping. The list index corresponds to class id.
      Note that the color list is flattened."""
      color_codes = [
          [0, 0, 0],
          [128, 0, 0],
          [0, 128, 0],
          [128, 128, 0],
          [0, 0, 128],
          [128, 0, 128],
          [0, 128, 128],
          [128, 128, 128],
          [64, 0, 0],
          [192, 0, 0],
          [64, 128, 0],
          [192, 128, 0],
          [64, 0, 128],
          [192, 0, 128],
          [64, 128, 128],
          [192, 128, 128],
          [0, 64, 0],
          [128, 64, 0],
          [0, 192, 0],
          [128, 192, 0],
          [0, 64, 128],
      ]
  
      color_codes = np.asarray(color_codes).flatten()
      return list(color_codes)
  
file_path: ml-cvnets/data/datasets/segmentation/pascal_voc.py
imports: import argparse
  import os
  from typing import List
  import numpy
  from data.datasets import DATASET_REGISTRY
  from data.datasets.segmentation.base_segmentation import BaseImageSegmentationDataset
label_desc: Use image node_id 3 for calling the PascalVOCDataset obj's underlying member method code with example usage: obj.color_palette() and returns: list