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"]
code: def add_arguments(
      cls, parser: argparse.ArgumentParser
  ) -> argparse.ArgumentParser:
      if cls != PascalVOCDataset:
          # Don't re-register arguments in subclasses that don't override `add_arguments()`.
          return parser
  
      group = parser.add_argument_group(title=cls.__name__)
      group.add_argument(
          "--dataset.pascal.use-coco-data",
          action="store_true",
          default=False,
          help="Use MS-COCO data for training with PASCAL VOC dataset. Defaults to False.",
      )
      group.add_argument(
          "--dataset.pascal.coco-root-dir",
          type=str,
          default=None,
          help="Location of MS-COCO data. Defaults to None.",
      )
      return parser
  
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 2 for calling the PascalVOCDataset obj's underlying member method code with example usage: obj.add_arguments(cls, parser) and returns: parser, parser