chore(encoder): remove unused code

This commit is contained in:
Enno Hermann 2023-11-16 23:40:21 +01:00
parent 7e4375da2b
commit fdf0c8b10a
1 changed files with 0 additions and 6 deletions

View File

@ -2,7 +2,6 @@ import datetime
import glob import glob
import os import os
import random import random
import re
import numpy as np import numpy as np
from scipy import signal from scipy import signal
@ -118,11 +117,6 @@ class AugmentWAV(object):
return self.additive_noise(noise_type, audio) 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"): def setup_encoder_model(config: "Coqpit"):
if config.model_params["model_name"].lower() == "lstm": if config.model_params["model_name"].lower() == "lstm":
model = LSTMSpeakerEncoder( model = LSTMSpeakerEncoder(