From 19bbff72eceb0aafa06ed5a2d02998503d4d67a6 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Thu, 14 Jul 2022 23:49:03 -0400 Subject: [PATCH] Remove more spurious logging --- tts/hifigan/meldataset.py | 11 +++++++---- tts/vocodes_server.py | 13 ------------- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/tts/hifigan/meldataset.py b/tts/hifigan/meldataset.py index 44b0bf4..a745b9c 100644 --- a/tts/hifigan/meldataset.py +++ b/tts/hifigan/meldataset.py @@ -47,10 +47,13 @@ hann_window = {} def mel_spectrogram(y, n_fft, num_mels, sampling_rate, hop_size, win_size, fmin, fmax, center=False): - if torch.min(y) < -1.: - print('min value is ', torch.min(y)) - if torch.max(y) > 1.: - print('max value is ', torch.max(y)) + # NB(bt,2022-07-14): There was previous debugging being done here. + # Going over the normalization range may have been causing issues? + # It periodically appears in the logs. In any case, it isn't helpful + #if torch.min(y) < -1.: + # print('min value is ', torch.min(y)) + #if torch.max(y) > 1.: + # print('max value is ', torch.max(y)) global mel_basis, hann_window if fmax not in mel_basis: diff --git a/tts/vocodes_server.py b/tts/vocodes_server.py index d6bd403..752df30 100755 --- a/tts/vocodes_server.py +++ b/tts/vocodes_server.py @@ -237,19 +237,6 @@ class ApiHandler(): maybe_clear_synthesizer_checkpoint_path = \ raw_data.get('maybe_clear_synthesizer_checkpoint_path') - print('synthesizer_checkpoint_path: {}'.format(synthesizer_checkpoint_path)) - print('text_pipeline_type: {}'.format(text_pipeline_type)) - print('vocoder_type: {}'.format(vocoder_type)) - print('waveglow_vocoder_checkpoint_path: {}'.format(waveglow_vocoder_checkpoint_path)) - print('hifigan_vocoder_checkpoint_path: {}'.format(hifigan_vocoder_checkpoint_path)) - print('hifigan_superres_vocoder_checkpoint_path: {}'.format(hifigan_superres_vocoder_checkpoint_path)) - print('inference_text: {}'.format(inference_text)) - print('output_audio_filename: {}'.format(output_audio_filename)) - print('output_spectrogram_filename: {}'.format(output_spectrogram_filename)) - print('output_metadata_filename: {}'.format(output_metadata_filename)) - print('maybe_clear_synthesizer_checkpoint_path: {}'.format( - maybe_clear_synthesizer_checkpoint_path)) - pipeline.maybe_load_waveglow_model(waveglow_vocoder_checkpoint_path) pipeline.maybe_load_hifigan(hifigan_vocoder_checkpoint_path) pipeline.maybe_load_hifigan_super_resolution(hifigan_superres_vocoder_checkpoint_path)