Update loss.py

This commit is contained in:
zr_jin 2024-10-22 21:33:14 +08:00
parent 442a745d8e
commit 15f2f7190f

View File

@ -309,10 +309,10 @@ class SpectrogramReconstructionLoss(torch.nn.Module):
s = 2**i // 8 s = 2**i // 8
self.wav_to_specs.append( self.wav_to_specs.append(
Spectrogram( Spectrogram(
sample_rate=sampling_rate,
n_fft=s, n_fft=s,
win_length=s, win_length=s,
hop_length=s // 4, hop_length=s // 4,
window_fn=torch.hann_window,
normalized=True, normalized=True,
center=False, center=False,
pad_mode=None, pad_mode=None,