mirror of
https://github.com/wassname/TTS.git
synced 2026-10-28 12:41:20 +08:00
Fixup
This commit is contained in:
1 parent
3818bd0c23
commit
3c6d7f495c
1 file changed
+2
-3
@@ -1,12 +1,11 @@
|
||||
import numpy as np
|
||||
import torch
|
||||
import torchaudio
|
||||
from torch import nn
|
||||
|
||||
from TTS.utils.audio import TorchSTFT
|
||||
from TTS.utils.io import load_fsspec
|
||||
|
||||
import torchaudio
|
||||
|
||||
|
||||
class PreEmphasis(nn.Module):
|
||||
def __init__(self, coefficient=0.97):
|
||||
@@ -134,7 +133,7 @@ class ResNetSpeakerEncoder(nn.Module):
|
||||
hop_length=audio_config["hop_length"],
|
||||
window_fn=torch.hamming_window,
|
||||
n_mels=audio_config["num_mels"],
|
||||
)
|
||||
),
|
||||
)
|
||||
else:
|
||||
self.torch_spec = None
|
||||
|
||||
Reference in new issue
Block a user