class_docstr: This class defines the segmentation head in `DeepLabv3 architecture <https://arxiv.org/abs/1706.05587>`_
  Args:
      opts: command-line arguments
      enc_conf (Dict): Encoder input-output configuration at each spatial level
      use_l5_exp (Optional[bool]): Use features from expansion layer in Level5 in the encoder
class_docstr_tok: ["This","class","defines","the","segmentation","head","in","`","DeepLabv3","architecture","<","https",":","\/\/arxiv.org\/abs\/1706.05587",">","`","_","Args",":","opts",":","command-line","arguments","enc_conf","(","Dict",")",":","Encoder","input-output","configuration","at","each","spatial","level","use_l5_exp","(","Optional","[","bool","]",")",":","Use","features","from","expansion","layer","in","Level5","in","the","encoder"]
docstr: DeepLabv3 specific arguments
docstr_tok: ["DeepLabv3","specific","arguments"]
code: def add_arguments(
      cls, parser: argparse.ArgumentParser
  ) -> argparse.ArgumentParser:
      """DeepLabv3 specific arguments"""
      group = parser.add_argument_group(title=cls.__name__)
      group.add_argument(
          "--model.segmentation.deeplabv3.aspp-rates",
          type=JsonValidator(Tuple[int, int, int]),
          default=(6, 12, 18),
          help="Atrous rates in DeepLabV3+ model",
      )
      group.add_argument(
          "--model.segmentation.deeplabv3.aspp-out-channels",
          type=int,
          default=256,
          help="Output channels of ASPP module",
      )
      group.add_argument(
          "--model.segmentation.deeplabv3.aspp-sep-conv",
          action="store_true",
          help="Separable conv in ASPP module",
      )
      group.add_argument(
          "--model.segmentation.deeplabv3.aspp-dropout",
          type=float,
          default=0.1,
          help="Dropout in ASPP module",
      )
      return parser
  
file_path: ml-cvnets/cvnets/models/segmentation/heads/deeplabv3.py
imports: import argparse
  from typing import Dict, Optional, Tuple
  from torch import Tensor, nn
  from cvnets.layers import ConvLayer2d
  from cvnets.misc.init_utils import initialize_weights
  from cvnets.models import MODEL_REGISTRY
  from cvnets.models.segmentation.heads.base_seg_head import BaseSegHead
  from cvnets.modules import ASPP
  from options.parse_args import JsonValidator
label_desc: Use image node_id 3 for calling the DeeplabV3 obj's underlying member method code with example usage: obj.add_arguments(cls, parser) and returns: parser