Skip to content

Commit

Permalink
[TTS] minor fix typos and input_types (NVIDIA#7272)
Browse files Browse the repository at this point in the history
Signed-off-by: Xuesong Yang <[email protected]>
Signed-off-by: dorotat <[email protected]>
  • Loading branch information
XuesongYang authored and dorotat-nv committed Aug 24, 2023
1 parent 95df78d commit a0e7f48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion nemo/collections/tts/models/hifigan.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ def __init__(self, cfg: DictConfig, trainer: 'Trainer' = None):
self.log_audio = cfg.get("log_audio", False)
self.log_config = cfg.get("log_config", None)
self.lr_schedule_interval = None

# Important: this property activates manual optimization.
self.automatic_optimization = False

@property
Expand Down Expand Up @@ -350,7 +352,7 @@ def __setup_dataloader_from_config(self, cfg, shuffle_should_be: bool = True, na
if "dataset" not in cfg or not isinstance(cfg.dataset, DictConfig):
raise ValueError(f"No dataset for {name}")
if "dataloader_params" not in cfg or not isinstance(cfg.dataloader_params, DictConfig):
raise ValueError(f"No dataloder_params for {name}")
raise ValueError(f"No dataloader_params for {name}")
if shuffle_should_be:
if 'shuffle' not in cfg.dataloader_params:
logging.warning(
Expand Down
2 changes: 1 addition & 1 deletion nemo/collections/tts/modules/hifigan_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def __init__(self, debug=False):
)

@property
def output_types(self):
def input_types(self):
return {
"y": NeuralType(('B', 'S', 'T'), AudioSignal()),
"y_hat": NeuralType(('B', 'S', 'T'), AudioSignal()),
Expand Down

0 comments on commit a0e7f48

Please sign in to comment.