class_docstr: ESPnet model for GAN-based singing voice synthesis task.
docstr: Initialize ESPnetGANSVSModel module.
docstr_tok: ["Initialize","ESPnetGANSVSModel","module","."]
code: def __init__(
      self,
      text_extract: Optional[AbsFeatsExtract],
      feats_extract: Optional[AbsFeatsExtract],
      score_feats_extract: Optional[AbsFeatsExtract],
      label_extract: Optional[AbsFeatsExtract],
      pitch_extract: Optional[AbsFeatsExtract],
      ying_extract: Optional[AbsFeatsExtract],
      duration_extract: Optional[AbsFeatsExtract],
      energy_extract: Optional[AbsFeatsExtract],
      normalize: Optional[AbsNormalize and InversibleInterface],
      pitch_normalize: Optional[AbsNormalize and InversibleInterface],
      energy_normalize: Optional[AbsNormalize and InversibleInterface],
      svs: AbsGANSVS,
  ):
      """Initialize ESPnetGANSVSModel module."""
      assert check_argument_types()
      super().__init__()
      self.text_extract = text_extract
      self.feats_extract = feats_extract
      self.score_feats_extract = score_feats_extract
      self.label_extract = label_extract
      self.pitch_extract = pitch_extract
      self.duration_extract = duration_extract
      self.energy_extract = energy_extract
      self.ying_extract = ying_extract
      self.normalize = normalize
      self.pitch_normalize = pitch_normalize
      self.energy_normalize = energy_normalize
      self.svs = svs
      assert hasattr(
          svs, "generator"
      ), "generator module must be registered as svs.generator"
      assert hasattr(
          svs, "discriminator"
      ), "discriminator module must be registered as svs.discriminator"
  
file_path: espnet/espnet2/gan_svs/espnet_model.py
imports: from contextlib import contextmanager
  from typing import Any, Dict, Optional
  import torch
  from packaging.version import parse
  from typeguard import check_argument_types
  from espnet2.gan_svs.abs_gan_svs import AbsGANSVS
  from espnet2.layers.abs_normalize import AbsNormalize
  from espnet2.layers.inversible_interface import InversibleInterface
  from espnet2.svs.feats_extract.score_feats_extract import FrameScoreFeats, SyllableScoreFeats, expand_to_frame
  from espnet2.train.abs_gan_espnet_model import AbsGANESPnetModel
  from espnet2.tts.feats_extract.abs_feats_extract import AbsFeatsExtract
label_desc: Use image node_id 1 to create a new ESPnetGANSVSModel object from inherited base classes: AbsGANESPnetModel with example: obj = ESPnetGANSVSModel(text_extract, feats_extract, score_feats_extract, label_extract, pitch_extract, ying_extract, duration_extract, energy_extract, normalize, pitch_normalize, energy_normalize, svs)