class_docstr: Avocodo Discriminator module
class_docstr_tok: ["Avocodo","Discriminator","module"]
code: def __init__(
      self,
      combd: Dict[str, Any] = {
          "combd_h_u": [
              [16, 64, 256, 1024, 1024, 1024],
              [16, 64, 256, 1024, 1024, 1024],
              [16, 64, 256, 1024, 1024, 1024],
          ],
          "combd_d_k": [
              [7, 11, 11, 11, 11, 5],
              [11, 21, 21, 21, 21, 5],
              [15, 41, 41, 41, 41, 5],
          ],
          "combd_d_s": [
              [1, 1, 4, 4, 4, 1],
              [1, 1, 4, 4, 4, 1],
              [1, 1, 4, 4, 4, 1],
          ],
          "combd_d_d": [
              [1, 1, 1, 1, 1, 1],
              [1, 1, 1, 1, 1, 1],
              [1, 1, 1, 1, 1, 1],
          ],
          "combd_d_g": [
              [1, 4, 16, 64, 256, 1],
              [1, 4, 16, 64, 256, 1],
              [1, 4, 16, 64, 256, 1],
          ],
          "combd_d_p": [
              [3, 5, 5, 5, 5, 2],
              [5, 10, 10, 10, 10, 2],
              [7, 20, 20, 20, 20, 2],
          ],
          "combd_op_f": [1, 1, 1],
          "combd_op_k": [3, 3, 3],
          "combd_op_g": [1, 1, 1],
      },
      sbd: Dict[str, Any] = {
          "use_sbd": True,
          "sbd_filters": [
              [64, 128, 256, 256, 256],
              [64, 128, 256, 256, 256],
              [64, 128, 256, 256, 256],
              [32, 64, 128, 128, 128],
          ],
          "sbd_strides": [
              [1, 1, 3, 3, 1],
              [1, 1, 3, 3, 1],
              [1, 1, 3, 3, 1],
              [1, 1, 3, 3, 1],
          ],
          "sbd_kernel_sizes": [
              [[7, 7, 7], [7, 7, 7], [7, 7, 7], [7, 7, 7], [7, 7, 7]],
              [[5, 5, 5], [5, 5, 5], [5, 5, 5], [5, 5, 5], [5, 5, 5]],
              [[3, 3, 3], [3, 3, 3], [3, 3, 3], [3, 3, 3], [3, 3, 3]],
              [[5, 5, 5], [5, 5, 5], [5, 5, 5], [5, 5, 5], [5, 5, 5]],
          ],
          "sbd_dilations": [
              [
                  [5, 7, 11],
                  [5, 7, 11],
                  [5, 7, 11],
                  [5, 7, 11],
                  [5, 7, 11],
              ],
              [[3, 5, 7], [3, 5, 7], [3, 5, 7], [3, 5, 7], [3, 5, 7]],
              [[1, 2, 3], [1, 2, 3], [1, 2, 3], [1, 2, 3], [1, 2, 3]],
              [[1, 2, 3], [1, 2, 3], [1, 2, 3], [2, 3, 5], [2, 3, 5]],
          ],
          "sbd_band_ranges": [[0, 6], [0, 11], [0, 16], [0, 64]],
          "sbd_transpose": [False, False, False, True],
          "pqmf_config": {
              "sbd": [16, 256, 0.03, 10.0],
              "fsbd": [64, 256, 0.1, 9.0],
          },
          "segment_size": 8192,
      },
      pqmf_config: Dict[str, Any] = {
          "lv1": [2, 256, 0.25, 10.0],
          "lv2": [4, 192, 0.13, 10.0],
      },
      projection_filters: List[int] = [0, 1, 1, 1],
  ):
      super(AvocodoDiscriminator, self).__init__()
  
      self.pqmf_lv2 = PQMF(*pqmf_config["lv2"])
      self.pqmf_lv1 = PQMF(*pqmf_config["lv1"])
      self.combd = CoMBD(
          combd,
          [self.pqmf_lv2, self.pqmf_lv1],
          use_spectral_norm=combd["use_spectral_norm"],
      )
      self.sbd = SBD(
          sbd,
          use_spectral_norm=sbd["use_spectral_norm"],
      )
      self.projection_filters = projection_filters
  
imports: import logging
  from typing import Any, Dict, List, Optional
  import torch
  import torch.nn.functional
  from torch.nn import Conv1d
  from torch.nn.utils import spectral_norm, weight_norm
  from espnet2.gan_svs.visinger2.visinger2_vocoder import MultiFrequencyDiscriminator
  from espnet2.gan_tts.hifigan.residual_block import ResidualBlock
  from espnet2.gan_tts.melgan.pqmf import PQMF
label_desc: Use image node_id 1 to create a new AvocodoDiscriminator object from inherited base classes: torch.nn with example: obj = AvocodoDiscriminator(combd, sbd, pqmf_config, projection_filters)