From d1f7c1c9d7f561902603f11742fad494311b9afd Mon Sep 17 00:00:00 2001 From: "lyuxiang.lx" Date: Fri, 18 Oct 2024 16:00:14 +0800 Subject: [PATCH] remove unnecessary code --- cosyvoice/hifigan/hifigan.py | 1 - 1 file changed, 1 deletion(-) diff --git a/cosyvoice/hifigan/hifigan.py b/cosyvoice/hifigan/hifigan.py index 2dadc44..de623cc 100644 --- a/cosyvoice/hifigan/hifigan.py +++ b/cosyvoice/hifigan/hifigan.py @@ -52,7 +52,6 @@ class HiFiGan(nn.Module): def forward_discriminator(self, batch, device): real_speech = batch['speech'].to(device) - pitch_feat = batch['pitch_feat'].to(device) # 1. calculate generator outputs with torch.no_grad(): generated_speech, generated_f0 = self.generator(batch, device)