mirror of
https://github.com/coqui-ai/TTS.git
synced 2026-02-24 12:10:16 +01:00
chore(encoder): remove unused code
This commit is contained in:
@@ -2,7 +2,6 @@ import datetime
|
||||
import glob
|
||||
import os
|
||||
import random
|
||||
import re
|
||||
|
||||
import numpy as np
|
||||
from scipy import signal
|
||||
@@ -118,11 +117,6 @@ class AugmentWAV(object):
|
||||
return self.additive_noise(noise_type, audio)
|
||||
|
||||
|
||||
def to_camel(text):
|
||||
text = text.capitalize()
|
||||
return re.sub(r"(?!^)_([a-zA-Z])", lambda m: m.group(1).upper(), text)
|
||||
|
||||
|
||||
def setup_encoder_model(config: "Coqpit"):
|
||||
if config.model_params["model_name"].lower() == "lstm":
|
||||
model = LSTMSpeakerEncoder(
|
||||
|
||||
Reference in New Issue
Block a user