From fb050a8ac0a7a304cccb198a52b3544a8681edda Mon Sep 17 00:00:00 2001 From: George Sterpu Date: Fri, 18 Nov 2022 15:15:29 +0000 Subject: [PATCH 1/2] Update attention.py --- PyTorch/SpeechSynthesis/FastPitch/fastpitch/attention.py | 1 - 1 file changed, 1 deletion(-) diff --git a/PyTorch/SpeechSynthesis/FastPitch/fastpitch/attention.py b/PyTorch/SpeechSynthesis/FastPitch/fastpitch/attention.py index 59a7397d6..21bdbc3c9 100644 --- a/PyTorch/SpeechSynthesis/FastPitch/fastpitch/attention.py +++ b/PyTorch/SpeechSynthesis/FastPitch/fastpitch/attention.py @@ -90,7 +90,6 @@ def __init__(self, n_mel_channels=80, n_speaker_dim=128, self.softmax = torch.nn.Softmax(dim=3) self.log_softmax = torch.nn.LogSoftmax(dim=3) self.query_proj = Invertible1x1ConvLUS(n_mel_channels) - self.attn_proj = torch.nn.Conv2d(n_att_channels, 1, kernel_size=1) self.align_query_enc_type = align_query_enc_type self.use_query_proj = bool(use_query_proj) From 123fe9806e318367b106e90ee56b99aa0a5501b9 Mon Sep 17 00:00:00 2001 From: George Sterpu Date: Fri, 18 Nov 2022 15:16:07 +0000 Subject: [PATCH 2/2] Update attention.py --- PyTorch/SpeechSynthesis/HiFiGAN/fastpitch/attention.py | 1 - 1 file changed, 1 deletion(-) diff --git a/PyTorch/SpeechSynthesis/HiFiGAN/fastpitch/attention.py b/PyTorch/SpeechSynthesis/HiFiGAN/fastpitch/attention.py index 59a7397d6..21bdbc3c9 100644 --- a/PyTorch/SpeechSynthesis/HiFiGAN/fastpitch/attention.py +++ b/PyTorch/SpeechSynthesis/HiFiGAN/fastpitch/attention.py @@ -90,7 +90,6 @@ def __init__(self, n_mel_channels=80, n_speaker_dim=128, self.softmax = torch.nn.Softmax(dim=3) self.log_softmax = torch.nn.LogSoftmax(dim=3) self.query_proj = Invertible1x1ConvLUS(n_mel_channels) - self.attn_proj = torch.nn.Conv2d(n_att_channels, 1, kernel_size=1) self.align_query_enc_type = align_query_enc_type self.use_query_proj = bool(use_query_proj)